{*
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@buy-addons.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author    Buy-addons    <contact@buy-addons.com>
* @copyright 2007-2020 Buy-addons
* @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}

<div class="alert alert-success show_message" >
        {l s='Delete' mod='askforaquotemodul'}<strong>{l s='Success!' mod='askforaquotemodul'}</strong>.
</div>
<form method="POST" action="" >
	<div class = "form-horizontal clearfix bootstrap panel" style = "z-index:1">
		<div class = "panel-heading">
			 <i class = "icon-cogs"></i> <label>{l s='Settings' mod='askforaquotemodul'}</label>
		</div>
        <div class="form-group">
            <label class="control-label col-lg-3 required">
                <span class="label-tooltip" title="">
                    {l s='Email Admin' mod='askforaquotemodul'}
                </span>
            </label>
            <div class="col-lg-4">
                <input type="text" id="email_adm_id" class="email_adm_class" name="email_adm_name" value = "{$email_admin_setting|escape:'htmlall':'UTF-8'}">
            </div>
        </div>
        <div class="form-group">    
            <label class="control-label col-lg-3 required">
                <span class="label-tooltip" title="">
                    {l s='Email From' mod='askforaquotemodul'}
                </span>
            </label>
            <div class="col-lg-4">
                <input type="text" id="email_from_id" class="email_from_class" name="email_from_name" value = "{$email_from_setting|escape:'htmlall':'UTF-8'}">
            </div>
        </div>    
        <div class="form-group">    
            <label class="control-label col-lg-3 required">
                <span class="label-tooltip" title="">
                    {l s='Name From' mod='askforaquotemodul'}
                </span>
            </label>
            <div class="col-lg-4">
                <input type="text" id="name_adm_id" class="name_adm_class" name="name_adm_name" value = "{$name_from_setting|escape:'htmlall':'UTF-8'}">
            </div>
        </div>    
        <div class="col-lg-12" style = "margin-bottom: 16px;">
            <label class="control-label col-lg-3" style="text-align: right;padding-right: 10px;">
                {l s='Send email to Admin when has new quote' mod='askforaquotemodul'}
            </label>
            <div class="col-lg-7" style="padding-left:0px;">
                <span class="switch prestashop-switch fixed-width-lg" >
                    {if $check_email_newquote_adm|escape:'htmlall':'UTF-8' == 1}
                        <input type="radio" name="choice1" id="choice1_on" value="1" checked="checked">
                        <label for="choice1_on">{l s='Yes' mod='askforaquotemodul'}</label>
                        <input type="radio" name="choice1" id="choice1_off" value="0">
                        <label for="choice1_off">{l s='No' mod='askforaquotemodul'}</label>
                        <a class="btn"></a>
                        {else}
                            <input type="radio" name="choice1" id="choice1_on" value="1" >
                            <label for="choice1_on">{l s='Yes' mod='askforaquotemodul'}</label>
                            <input type="radio" name="choice1" id="choice1_off" value="0" checked="checked">
                            <label for="choice1_off">{l s='No' mod='askforaquotemodul'}</label>
                            <a class="btn"></a>
                    {/if}
                </span>                                                        
            </div>
        </div>
        
        <div class="col-lg-12" style = "padding-bottom: 16px;">
            <label class="control-label col-lg-3" style="text-align: right;padding-right: 10px;">
                {l s='Send email to Customer when has new quote' mod='askforaquotemodul'}
            </label>
            <div class="col-lg-7" style="padding-left:0px;">
                <span class="switch prestashop-switch fixed-width-lg" >
                    {if $check_email_newquote_cus|escape:'htmlall':'UTF-8' == 1 }
                        <input type="radio" name="choice2" id="choice2_on" value="1" checked="checked">
                        <label for="choice2_on">{l s='Yes' mod='askforaquotemodul'}</label>
                        <input type="radio" name="choice2" id="choice2_off" value="0">
                        <label for="choice2_off">{l s='No' mod='askforaquotemodul'}</label>
                        <a class="btn"></a>
                        {else}
                            <input type="radio" name="choice2" id="choice2_on" value="1" >
                            <label for="choice2_on">{l s='Yes' mod='askforaquotemodul'}</label>
                            <input type="radio" name="choice2" id="choice2_off" value="0" checked="checked">
                            <label for="choice2_off">{l s='No' mod='askforaquotemodul'}</label>
                            <a class="btn"></a>
                    {/if}
                </span>                                                        
            </div>
        </div>
        
        <div class="col-lg-12" style = "padding-bottom: 16px;">
            <label class="control-label col-lg-3" style="text-align: right;padding-right: 10px;">
                {l s='Send email to Admin when has new notes quote' mod='askforaquotemodul'}
            </label>
            <div class="col-lg-7" style="padding-left:0px;">
                <span class="switch prestashop-switch fixed-width-lg" >
                    {if $check_email_noticequote_adm|escape:'htmlall':'UTF-8' == 1}
                        <input type="radio" name="choice3" id="choice3_on" value="1" checked="checked">
                        <label for="choice3_on">{l s='Yes' mod='askforaquotemodul'}</label>
                        <input type="radio" name="choice3" id="choice3_off" value="0">
                        <label for="choice3_off">{l s='No' mod='askforaquotemodul'}</label>
                        <a class="btn"></a>
                        {else}
                            <input type="radio" name="choice3" id="choice3_on" value="1">
                            <label for="choice3_on">{l s='Yes' mod='askforaquotemodul'}</label>
                            <input type="radio" name="choice3" id="choice3_off" value="0" checked="checked">
                            <label for="choice3_off">{l s='No' mod='askforaquotemodul'}</label>
                            <a class="btn"></a>
                    {/if}
                </span>                                                        
            </div>
        </div>
        
        <div class="col-lg-12" style = "padding-bottom: 16px;">
            <label class="control-label col-lg-3" style="text-align: right;padding-right: 10px;">
                {l s='Send email to Customer when has new notes quote' mod='askforaquotemodul'}
            </label>
            <div class="col-lg-7" style="padding-left:0px;">
                <span class="switch prestashop-switch fixed-width-lg" >
                    {if $check_email_noticequote_cus|escape:'htmlall':'UTF-8' == 1}
                        <input type="radio" name="choice4" id="choice4_on" value="1" checked="checked">
                        <label for="choice4_on">{l s='Yes' mod='askforaquotemodul'}</label>
                        <input type="radio" name="choice4" id="choice4_off" value="0">
                        <label for="choice4_off">{l s='No' mod='askforaquotemodul'}</label>
                        <a class="btn"></a>
                        {else}
                            <input type="radio" name="choice4" id="choice4_on" value="1">
                            <label for="choice4_on">{l s='Yes' mod='askforaquotemodul'}</label>
                            <input type="radio" name="choice4" id="choice4_off" value="0" checked="checked">
                            <label for="choice4_off">{l s='No' mod='askforaquotemodul'}</label>
                            <a class="btn"></a>
                    {/if}
                </span>                                                        
            </div>
        </div>
        
        <div class="col-lg-12" style = "padding-bottom: 32px;">
            <label class="control-label col-lg-3" style="text-align: right;padding-right: 10px;">
                {l s='Show price in quote' mod='askforaquotemodul'}
            </label>
            <div class="col-lg-7" style="padding-left:0px;">
                <span class="switch prestashop-switch fixed-width-lg" >
                    {if $option_price_total|escape:'htmlall':'UTF-8' == 1}
                        <input type="radio" name="choice5" id="choice5_on" value="1" checked="checked">
                        <label for="choice5_on">{l s='Yes' mod='askforaquotemodul'}</label>
                        <input type="radio" name="choice5" id="choice5_off" value="0" >
                        <label for="choice5_off">{l s='No' mod='askforaquotemodul'}</label>
                        <a class="btn"></a>
                        {else}
                            <input type="radio" name="choice5" id="choice5_on" value="1" >
                            <label for="choice5_on">{l s='Yes' mod='askforaquotemodul'}</label>
                            <input type="radio" name="choice5" id="choice5_off" value="0" checked="checked">
                            <label for="choice5_off">{l s='No' mod='askforaquotemodul'}</label>
                            <a class="btn"></a>
                    {/if}
                </span>                                                        
            </div>
        </div>
        
        <div class="col-lg-12" style = "padding-bottom: 16px;">
            <label class="control-label col-lg-3" style="text-align: right;padding-right: 10px;">
                {l s='Hide button Add to cart while button Ask quote display' mod='askforaquotemodul'}
            </label>
            <div class="col-lg-7" style="padding-left:0px;">
                <span class="switch prestashop-switch fixed-width-lg" >
                    {if $option_addtocart|escape:'htmlall':'UTF-8' == 1}
                        <input type="radio" name="choice6" id="choice6_on" value="1" checked="checked">
                        <label for="choice6_on">{l s='Yes' mod='askforaquotemodul'}</label>
                        <input type="radio" name="choice6" id="choice6_off" value="0" >
                        <label for="choice6_off">{l s='No' mod='askforaquotemodul'}</label>
                        <a class="btn"></a>
                        {else}
                            <input type="radio" name="choice6" id="choice6_on" value="1" >
                            <label for="choice6_on">{l s='Yes' mod='askforaquotemodul'}</label>
                            <input type="radio" name="choice6" id="choice6_off" value="0" checked="checked">
                            <label for="choice6_off">{l s='No' mod='askforaquotemodul'}</label>
                            <a class="btn"></a>
                    {/if}
                </span>                                                        
            </div>
        </div>
        
        <div class="col-lg-12" style = "padding-bottom: 16px;">
            <label class="control-label col-lg-3" style="text-align: right;padding-right: 10px;">
                {l s='Only display button Ask quote when the product is out of stock' mod='askforaquotemodul'}
            </label>
            <div class="col-lg-7" style="padding-left:0px;">
                <span class="switch prestashop-switch fixed-width-lg" >
                    {if $option_product_out_of_stock|escape:'htmlall':'UTF-8' == 1}
                        <input type="radio" name="choice7" id="choice7_on" value="1" checked="checked">
                        <label for="choice7_on">{l s='Yes' mod='askforaquotemodul'}</label>
                        <input type="radio" name="choice7" id="choice7_off" value="0" >
                        <label for="choice7_off">{l s='No' mod='askforaquotemodul'}</label>
                        <a class="btn"></a>
                        {else}
                            <input type="radio" name="choice7" id="choice7_on" value="1" >
                            <label for="choice7_on">{l s='Yes' mod='askforaquotemodul'}</label>
                            <input type="radio" name="choice7" id="choice7_off" value="0" checked="checked">
                            <label for="choice7_off">{l s='No' mod='askforaquotemodul'}</label>
                            <a class="btn"></a>
                    {/if}

                </span>                                                        
            </div>
        </div>
        
        <div class="col-lg-12" style = "padding-bottom: 16px;">
            <label class="control-label col-lg-3" style="text-align: right;padding-right: 10px;">
                {l s='Only display button Ask quote when the product is priced at = 0' mod='askforaquotemodul'}
            </label>
            <div class="col-lg-7" style="padding-left:0px;">
                <span class="switch prestashop-switch fixed-width-lg" >
                    {if $option_product_priced_0|escape:'htmlall':'UTF-8' == 1}
                        <input type="radio" name="choice8" id="choice8_on" value="1" checked="checked">
                        <label for="choice8_on">{l s='Yes' mod='askforaquotemodul'}</label>
                        <input type="radio" name="choice8" id="choice8_off" value="0" >
                        <label for="choice8_off">{l s='No' mod='askforaquotemodul'}</label>
                        <a class="btn"></a>
                        {else}
                            <input type="radio" name="choice8" id="choice8_on" value="1" >
                            <label for="choice8_on">{l s='Yes' mod='askforaquotemodul'}</label>
                            <input type="radio" name="choice8" id="choice8_off" value="0" checked="checked">
                            <label for="choice8_off">{l s='No' mod='askforaquotemodul'}</label>
                            <a class="btn"></a>
                    {/if}

                </span>                                                        
            </div>
        </div>
        
        <div class="col-lg-12" style = "padding-bottom: 16px;">
            <label class="control-label col-lg-3" style="text-align: right;padding-right: 10px;">
                {l s='Customer must login  to submit quote request' mod='askforaquotemodul'}
            </label>
            <div class="col-lg-7" style="padding-left:0px;">
                <span class="switch prestashop-switch fixed-width-lg" >
                    {if $option_login_customer|escape:'htmlall':'UTF-8' == 1}
                        <input type="radio" name="choice9" id="choice9_on" value="1" checked="checked">
                        <label for="choice9_on">{l s='Yes' mod='askforaquotemodul'}</label>
                        <input type="radio" name="choice9" id="choice9_off" value="0" >
                        <label for="choice9_off">{l s='No' mod='askforaquotemodul'}</label>
                        <a class="btn"></a>
                        {else}
                            <input type="radio" name="choice9" id="choice9_on" value="1" >
                            <label for="choice9_on">{l s='Yes' mod='askforaquotemodul'}</label>
                            <input type="radio" name="choice9" id="choice9_off" value="0" checked="checked">
                            <label for="choice9_off">{l s='No' mod='askforaquotemodul'}</label>
                            <a class="btn"></a>
                    {/if}

                </span>                                                        
            </div>
        </div>
        
        <div class="col-lg-12" style = "padding-bottom: 32px;">
            <label class="control-label col-lg-3" style="text-align: right;padding-right: 10px;">
                {l s='Show captcha' mod='askforaquotemodul'}
            </label>
            <div class="col-lg-7" style="padding-left:0px;">
                <span class="switch prestashop-switch fixed-width-lg" >
                    {if $option_show_captcha|escape:'htmlall':'UTF-8' == 1}
                        <input type="radio" name="choice10" id="choice10_on" value="1" checked="checked">
                        <label for="choice10_on">{l s='Yes' mod='askforaquotemodul'}</label>
                        <input type="radio" name="choice10" id="choice10_off" value="0" >
                        <label for="choice10_off">{l s='No' mod='askforaquotemodul'}</label>
                        <a class="btn"></a>
                        {else}
                            <input type="radio" name="choice10" id="choice10_on" value="1" >
                            <label for="choice10_on">{l s='Yes' mod='askforaquotemodul'}</label>
                            <input type="radio" name="choice10" id="choice10_off" value="0" checked="checked">
                            <label for="choice10_off">{l s='No' mod='askforaquotemodul'}</label>
                            <a class="btn"></a>
                    {/if}

                </span>                                                        
            </div>
        </div>
        
        <div class="col-lg-12" style = "padding-bottom: 32px;">
            <label class="control-label col-lg-3" style="text-align: right;padding-right: 10px;">
                {l s='Show company name' mod='askforaquotemodul'}
            </label>
            <div class="col-lg-7" style="padding-left:0px;">
                <span class="switch prestashop-switch fixed-width-lg" >
                    {if $option_company_name|escape:'htmlall':'UTF-8' == 1}
                        <input type="radio" name="choice12" id="choice12_on" value="1" checked="checked">
                        <label for="choice12_on">{l s='Yes' mod='askforaquotemodul'}</label>
                        <input type="radio" name="choice12" id="choice12_off" value="0" >
                        <label for="choice12_off">{l s='No' mod='askforaquotemodul'}</label>
                        <a class="btn"></a>
                        {else}
                            <input type="radio" name="choice12" id="choice12_on" value="1" >
                            <label for="choice12_on">{l s='Yes' mod='askforaquotemodul'}</label>
                            <input type="radio" name="choice12" id="choice12_off" value="0" checked="checked">
                            <label for="choice12_off">{l s='No' mod='askforaquotemodul'}</label>
                            <a class="btn"></a>
                    {/if}

                </span>                                                        
            </div>
        </div>
        
        <div class="col-lg-12" style = "padding-bottom: 32px;">
            <label class="control-label col-lg-3" style="text-align: right;padding-right: 10px;">
                {l s='Display button Ask quote in Category' mod='askforaquotemodul'}
            </label>
            <div class="col-lg-7" style="padding-left:0px;">
                <span class="switch prestashop-switch fixed-width-lg" >
                    {if $option_button_category|escape:'htmlall':'UTF-8' == 1}
                        <input type="radio" name="choice11" id="choice11_on" value="1" checked="checked">
                        <label for="choice11_on">{l s='Yes' mod='askforaquotemodul'}</label>
                        <input type="radio" name="choice11" id="choice11_off" value="0" >
                        <label for="choice11_off">{l s='No' mod='askforaquotemodul'}</label>
                        <a class="btn"></a>
                        {else}
                            <input type="radio" name="choice11" id="choice11_on" value="1" >
                            <label for="choice11_on">{l s='Yes' mod='askforaquotemodul'}</label>
                            <input type="radio" name="choice11" id="choice11_off" value="0" checked="checked">
                            <label for="choice11_off">{l s='No' mod='askforaquotemodul'}</label>
                            <a class="btn"></a>
                    {/if}

                </span>                                                        
            </div>
        </div>
        <div class="col-lg-12" style = "padding-bottom: 32px;">
            <label class="control-label col-lg-3" style="text-align: right;padding-right: 10px;">
                {l s='Attach PDF Quotation to Email' mod='askforaquotemodul'}
            </label>
            <div class="col-lg-7" style="padding-left:0px;">
                <span class="switch prestashop-switch fixed-width-lg" >
                    {if $option_button_pdf|escape:'htmlall':'UTF-8' == 1}
                        <input type="radio" name="choice_pdf" id="choice_pdf_on" value="1" checked="checked">
                        <label for="choice_pdf_on">{l s='Yes' mod='askforaquotemodul'}</label>
                        <input type="radio" name="choice_pdf" id="choice_pdf_off" value="0" >
                        <label for="choice_pdf_off">{l s='No' mod='askforaquotemodul'}</label>
                        <a class="btn"></a>
                        {else}
                            <input type="radio" name="choice_pdf" id="choice_pdf_on" value="1" >
                            <label for="choice_pdf_on">{l s='Yes' mod='askforaquotemodul'}</label>
                            <input type="radio" name="choice_pdf" id="choice_pdf_off" value="0" checked="checked">
                            <label for="choice_pdf_off">{l s='No' mod='askforaquotemodul'}</label>
                            <a class="btn"></a>
                    {/if}

                </span>                                                        
            </div>
        </div>
		<div class="col-lg-12" style = "padding-bottom: 32px;">
            <label class="control-label col-lg-3" style="text-align: right;padding-right: 10px;">
                {l s='Use Price exclude Tax when add to Quote on website' mod='askforaquotemodul'}
            </label>
            <div class="col-lg-7" style="padding-left:0px;">
                <span class="switch prestashop-switch fixed-width-lg" >
                    {if $option_price_excl_tax|escape:'htmlall':'UTF-8' == 1}
                        <input type="radio" name="option_price_excl_tax" id="option_price_excl_tax_on" value="1" checked="checked">
                        <label for="option_price_excl_tax_on">{l s='Yes' mod='askforaquotemodul'}</label>
                        <input type="radio" name="option_price_excl_tax" id="option_price_excl_tax_off" value="0" >
                        <label for="option_price_excl_tax_off">{l s='No' mod='askforaquotemodul'}</label>
                        <a class="btn"></a>
                    {else}
                            <input type="radio" name="option_price_excl_tax" id="option_price_excl_tax_on" value="1" >
                            <label for="option_price_excl_tax_on">{l s='Yes' mod='askforaquotemodul'}</label>
                            <input type="radio" name="option_price_excl_tax" id="option_price_excl_tax_off" value="0" checked="checked">
                            <label for="option_price_excl_tax_off">{l s='No' mod='askforaquotemodul'}</label>
                            <a class="btn"></a>
                    {/if}

                </span>                                                        
            </div>
        </div>
		<div class="col-lg-12" style = "padding-bottom: 32px;">
            <label class="control-label col-lg-3" style="text-align: right;padding-right: 10px;">
                {l s='Display Convert Cart button into a Quote in Cart page' mod='askforaquotemodul'}
            </label>
            <div class="col-lg-7" style="padding-left:0px;">
                <span class="switch prestashop-switch fixed-width-lg" >
                        <input type="radio" name="option_convert_cart" id="option_convert_cart_on" value="1" {if $option_convert_cart == 1} checked="checked" {/if}/>
                        <label for="option_convert_cart_on">{l s='Yes' mod='askforaquotemodul'}</label>
                        <input type="radio" name="option_convert_cart" id="option_convert_cart_off" value="0" {if $option_convert_cart != 1} checked="checked" {/if}/>
                        <label for="option_convert_cart_off">{l s='No' mod='askforaquotemodul'}</label>
                        <a class="btn"></a>
                </span>                                                        
            </div>
        </div>
        <div class="col-lg-12" style = "padding-bottom: 32px;">
            <label class="control-label col-lg-3" style="text-align: right;padding-right: 10px;">
                <span class="label-tooltip" title="">
                    {l s='Quotation expired after' mod='askforaquotemodul'}
                </span>
            </label>
            <div class="input-group col-lg-4">
                <input type="text" id="order_date" class="order_date_class" name="order_date" value = "{$option_order_date|escape:'htmlall':'UTF-8'}" style="width: 20%;border-bottom-right-radius: 3px;border-top-right-radius: 3px;" onkeypress="return event.charCode >= 48 && event.charCode <= 57"></input>
                <span>
                    <p style="padding-left: 74px;padding-top: 4px;">{l s='days' mod='askforaquotemodul'}</p>
                </span>
            </div>
        </div>
        
        <div class="col-lg-12" style = "padding-bottom: 32px;">
            <label class="control-label col-lg-3" style="text-align: right;padding-right: 10px;">
                <span class="label-tooltip" title="" data-original-title="To turn off the autohide function enter 0">
                    {l s='Notice displaying time ' mod='askforaquotemodul'}
                </span>
            </label>
            <div class="input-group col-lg-4">
                <input type="text" id="num_display" class="order_date_class" name="num_display" value = "{$option_num_display|escape:'htmlall':'UTF-8'}" style="width: 20%;border-bottom-right-radius: 3px;border-top-right-radius: 3px;" onkeypress="return event.charCode >= 48 && event.charCode <= 57"></input>
                <span>
                    <p style="padding-left: 74px;padding-top: 4px;">{l s='seconds' mod='askforaquotemodul'}</p>
                </span>
            </div>
        </div>
        
        <div class="form-group format_currency-element" style="display:none;">
            <label class="control-label col-lg-3 required">
                <span class="label-tooltip" title="">
                    {l s='Currency format' mod='askforaquotemodul'}
                </span>
            </label>
            <div class="input-group col-lg-4" style="padding-left: 5px;width: 21%">
                <select name="format_currency" >
                    <option value="1" {if $format_currency =='1' }selected{/if}>{l s='X0,000.00 (Such as with Dollars)' mod='askforaquotemodul'}</option>
                    <option value="2" {if $format_currency =='2' }selected{/if}>{l s='0 000,00X (Such as with Euros)' mod='askforaquotemodul'}</option>
                    <option value="3" {if $format_currency =='3'}selected{/if}>{l s='X0.000,00' mod='askforaquotemodul'}</option>
					<option value="4" {if $format_currency =='4'}selected{/if}>0'000.00X</option>
                </select>
            </div>
        </div>
        
        <div class="col-lg-12" style = "padding-bottom: 32px;">
            <label class="control-label col-lg-3" style="text-align: right;padding-right: 10px;">
                <span class="label-tooltip" title="">
                    {l s='File Extension' mod='askforaquotemodul'}
                </span>
            </label>
            <div class="input-group col-lg-4">
                <input type="text" id="file_extension" class="file_extension_class" name="file_extension" value = "{$option_file_extension|escape:'htmlall':'UTF-8'}" style="width: 100%;border-radius: 3px;"></input>
            </div>
        </div>
        
        <div class="form-group">
            <label class="control-label col-lg-3">
                <span class="label-tooltip" title="">
                    {l s='Include product' mod='askforaquotemodul'}
                </span>
            </label>
            <div class="input-group col-lg-4 name_product" style="padding-left: 5px;">
				<div class="input-group">
					<input type="text" id="search_include_product" name="0" autocomplete="off" onkeyup="seach_product()" class="search_include_product_class">
					<span class="input-group-addon">
						<span class="loadicon" style="display: none;"><i class="icon-refresh icon-spin"></i></span>
						<i class="icon-search"></i>
					</span>
				</div>
				<div class="ac_results dp_include_product" style="display: none;">
					<ul class = 'list_product'>
					</ul>
				</div>
				<ul class="list_product_show_button">
                    {foreach from=$include_product key=key item=item}
                        <li>
                            <a onclick="del_product_to_include({$include_product[$key]['id_product']|escape:'htmlall':'UTF-8'})" type="submit" class="btn btn-default" id="{$include_product[$key]['id_product']|escape:'htmlall':'UTF-8'}" name="del_product_include" href="javascript:void(0);">
                                <i class="icon-trash text-danger"></i>
                            </a>
                            {$include_product[$key]['name_product']|escape:'htmlall':'UTF-8'} (id:{$include_product[$key]['id_product']|escape:'htmlall':'UTF-8'})
                        </li>
                    {/foreach}
                </ul>
            </div>
        </div>
 
        <div class="form-group">
            <label class="control-label col-lg-3">
                <span class="label-tooltip" title="">
                    {l s='Category' mod='askforaquotemodul'}
                </span>
            </label>

            <div class="col-lg-7" style="padding-left: 5px;">
                {$tree nofilter} {* no escape necessary *}
            </div>
        </div>
		<div class="col-lg-12 form-group">
            <label class="control-label col-lg-3" style="text-align: right;padding-right: 10px;">
                <span class="label-tooltip" title="Mark all of the customer groups you would like allow to use this Quote module in website">
                    {l s='Group access' mod='askforaquotemodul'}
                </span>
            </label>
            <div class="col-lg-4">
                <table class="table table-bordered">
					<thead>
						<tr>
							<th class="fixed-width-xs">
								<span class="title_box">
									<input type="checkbox" name="checkme" id="checkme" onclick="checkDelBoxes(this.form, 'groupBox[]', this.checked)" />
								</span>
							</th>
							<th class="fixed-width-xs"><span class="title_box">{l s='ID' mod='askforaquotemodul'}</span></th>
							<th>
								<span class="title_box">
									{l s='Group name' mod='askforaquotemodul'}
								</span>
							</th>
						</tr>
					</thead>
					<tbody>
					{foreach $groups as $key => $group}
						<tr>
							<td>
								{assign var=id_checkbox value=groupBox|cat:'_'|cat:$group['id_group']}
								<input type="checkbox" name="groupBox[]" class="groupBox" id="{$id_checkbox|escape:'htmlall':'UTF-8'}" value="{$group['id_group']|escape:'htmlall':'UTF-8'}" {if in_array($group['id_group'], $groups_checked) }checked="checked"{/if} />
							</td>
							<td>{$group['id_group']|escape:'htmlall':'UTF-8'}</td>
							<td>
								<label for="{$id_checkbox|escape:'htmlall':'UTF-8'}">{$group['name']|escape:'htmlall':'UTF-8'}</label>
							</td>
						</tr>
					{/foreach}
					</tbody>
				</table>
            </div>
        </div>
        <div class="form-group" style = "padding-bottom: 32px;">
            <label class="control-label col-lg-3" style="text-align: right;padding-right: 10px;">
                {l s='Using SMTP' mod='askforaquotemodul'}
            </label>
            <div class="col-lg-7" style="padding-left:0px;">
                <span class="switch prestashop-switch fixed-width-lg" >
                    {if $option_button_smtp|escape:'htmlall':'UTF-8' == 1}
                        <input type="radio" name="choice_smtp" id="choice_smtp_on" value="1" checked="checked">
                        <label for="choice_smtp_on">{l s='Yes' mod='askforaquotemodul'}</label>
                        <input type="radio" name="choice_smtp" id="choice_smtp_off" value="0" >
                        <label for="choice_smtp_off">{l s='No' mod='askforaquotemodul'}</label>
                        <a class="btn"></a>
                        {else}
                            <input type="radio" name="choice_smtp" id="choice_smtp_on" value="1" >
                            <label for="choice_smtp_on">{l s='Yes' mod='askforaquotemodul'}</label>
                            <input type="radio" name="choice_smtp" id="choice_smtp_off" value="0" checked="checked">
                            <label for="choice_smtp_off">{l s='No' mod='askforaquotemodul'}</label>
                            <a class="btn"></a>
                    {/if}

                </span>                                                        
            </div>
        </div>
        {if $option_button_smtp|escape:'htmlall':'UTF-8' == 1}
            <div class="td_using_smtp">
                <div class="form-group">
                    <label class="control-label col-lg-3">
                        <span class="label-tooltip" title="">
                            {l s='Host ' mod='askforaquotemodul'}
                        </span>
                    </label>
                    <div class="input-group col-lg-4 " style="padding-left: 5px;">
                        <input type="text" value="{$sever_smpt|escape:'htmlall':'UTF-8'}" name="sever_smpt" autocomplete="off" class="">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-lg-3">
                        <span class="label-tooltip" title="">
                            {l s='Port ' mod='askforaquotemodul'}
                        </span>
                    </label>
                    <div class="input-group col-lg-4 " style="padding-left: 5px;">
                        <input type="text" value="{$port_smtp|escape:'htmlall':'UTF-8'}" name="port_smtp" autocomplete="off" class="">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-lg-3">
                        <span class="label-tooltip" title="">
                            {l s='Encryption' mod='askforaquotemodul'}
                        </span>
                    </label>
                    <div class="input-group col-lg-4 " style="padding-left: 5px;width: 7%">
                        <select name="secure_smtp" >
                            <option value="">{l s='None' mod='askforaquotemodul'}</option>
                            <option value="ssl" {if $secure_smtp =='ssl' }selected{/if}>{l s='SSL' mod='askforaquotemodul'}</option>
                            <option value="tls" {if $secure_smtp =='tls'}selected{/if}>{l s='TLS' mod='askforaquotemodul'}</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-lg-3">
                        <span class="label-tooltip" title="">
                            {l s='Username ' mod='askforaquotemodul'}
                        </span>
                    </label>
                    <div class="input-group col-lg-4 " style="padding-left: 5px;">
                        <input type="text" value="{$user_smpt|escape:'htmlall':'UTF-8'}" name="user_smpt" autocomplete="off" class="">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-lg-3">
                        <span class="label-tooltip" title="">
                            {l s='Password ' mod='askforaquotemodul'}
                        </span>
                    </label>
                    <div class="input-group col-lg-4 " style="padding-left: 5px;">
                        <input type="password" value="{$pass_smtp|escape:'htmlall':'UTF-8'}" name="pass_smtp" autocomplete="off" class="">
                    </div>
                </div>
            </div>
        {else}
            <div class="td_using_smtp td_smtp_off">
                <div class="form-group">
                    <label class="control-label col-lg-3">
                        <span class="label-tooltip" title="">
                            {l s='Host ' mod='askforaquotemodul'}
                        </span>
                    </label>
                    <div class="input-group col-lg-4 " style="padding-left: 5px;">
                        <input type="text" value="{$sever_smpt|escape:'htmlall':'UTF-8'}" name="sever_smpt" autocomplete="off" class="">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-lg-3">
                        <span class="label-tooltip" title="">
                            {l s='Port ' mod='askforaquotemodul'}
                        </span>
                    </label>
                    <div class="input-group col-lg-4 " style="padding-left: 5px;">
                        <input type="text" value="{$port_smtp|escape:'htmlall':'UTF-8'}" name="port_smtp" autocomplete="off" class="">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-lg-3">
                        <span class="label-tooltip" title="">
                            {l s='Encryption' mod='askforaquotemodul'}
                        </span>
                    </label>
                    <div class="input-group col-lg-4 " style="padding-left: 5px;width: 7%">
                        <select name="secure_smtp" >
                            <option selected="" value="">{l s='None' mod='askforaquotemodul'}</option>
                            <option value="ssl" {if $secure_smtp =='ssl' }selected{/if}>{l s='SSL' mod='askforaquotemodul'}</option>
                            <option value="tls" {if $secure_smtp =='tls'}selected{/if}>{l s='TLS' mod='askforaquotemodul'}</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-lg-3">
                        <span class="label-tooltip" title="">
                            {l s='Username ' mod='askforaquotemodul'}
                        </span>
                    </label>
                    <div class="input-group col-lg-4 " style="padding-left: 5px;">
                        <input type="text" value="{$user_smpt|escape:'htmlall':'UTF-8'}" name="user_smpt" autocomplete="off" class="">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-lg-3">
                        <span class="label-tooltip" title="">
                            {l s='Password ' mod='askforaquotemodul'}
                        </span>
                    </label>
                    <div class="input-group col-lg-4 " style="padding-left: 5px;">
                        <input type="password" value="{$pass_smtp|escape:'htmlall':'UTF-8'}" name="pass_smtp" autocomplete="off" class="">
                    </div>
                </div>
            </div>
        {/if}
    <div class="panel-footer">
        <a href="{$bamodul|escape:'htmlall':'UTF-8'}&token={$token_adm|escape:'htmlall':'UTF-8'}&configure=askforaquotemodul&tab_module=shipping_logistics&module_name=askforaquotemodul" class="btn btn-default"><i class="process-icon-cancel"></i> {l s='Cancel' mod='askforaquotemodul'}</a>
        <a onclick="return save_setting()">
            <button type="submit" name="save_option" class="btn btn-default pull-right"><i class="process-icon-save save_option_class"></i> {l s='Save' mod='askforaquotemodul'} </button>
        </a>    
    </div>    
</div>    
</form>
                                    