{*
* 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="panel-heading" style="border-top: solid 1px #eee;">
	<i class="icon-ticket"></i>
	{l s='Vouchers' mod='askforaquotemodul'}
</div>
<div class="form-group quote-search-vourcher-box">
	<label class="col-lg-3 control-label">
		{l s='Search for a voucher' mod='askforaquotemodul'}
	</label>
	<div class="input-group col-lg-5" style="float:left;">
		<input type="text" value="" onpaste="search_voucher()" onkeyup="searchV()" class="td_seach_voucher" style="float:left;">
		<div class="input-group-addon searchV" onClick="searchV()">
		<i id="searchLoader" class="icon-refresh icon-spin" style=""></i>
			<i class="icon-search"></i>
		</div>
		<div class="td_show_search_voucher">
		
		</div>
	</div>
</div>
{if !empty($datacoupon)}
<div class="row td_voucher">
	<table class="table">
		<thead>
			<tr>
				<th><span class="title_box">{l s='Name' mod='askforaquotemodul'}</span></th>
				<th><span class="title_box">{l s='Description' mod='askforaquotemodul'}</span></th>
				<th><span class="title_box">{l s='Value (Tax excl.)' mod='askforaquotemodul'}</span></th>
				<th></th>
			</tr>
		</thead>
		<tbody class="td_list_voucher">
			
				{foreach from=$datacoupon key=key_datacoupon item=item_datacoupon}
					<tr data-voucher="{$item_datacoupon['id_cart_rule']|escape:'htmlall':'UTF-8'}" class="bacoupon_{$item_datacoupon['id_cart_rule']|escape:'htmlall':'UTF-8'}">
						<td>
							<span>{$item_datacoupon['name']|escape:'htmlall':'UTF-8'}</span>
						</td>
						<td>
							<span>{$item_datacoupon['description']|escape:'htmlall':'UTF-8'}</span>
						</td>
						<td>
							<input type = "hidden" value="{$item_datacoupon['value_tax_exc']|escape:'htmlall':'UTF-8'}" class="discount_amount">
							<input type="hidden" class="td_id_coupon_order" name="td_id_coupon_order[]" value="{$item_datacoupon['id_cart_rule']|escape:'htmlall':'UTF-8'}">
							<span>-{displayPrice price=$item_datacoupon['value_tax_exc'] currency=$id_currency}</span>
						</td>
						<td>
							<a onclick="deletevoucher(this,{$item_datacoupon['id_cart_rule']|escape:'htmlall':'UTF-8'})" class="btn btn-default"><i class="icon-remove text-danger"></i> {l s='Delete' mod='askforaquotemodul'}</a>
						</td>
					</tr>
				{/foreach}
		</tbody>
	</table>
</div>
{/if}