bebeboutik/modules/giftvoucher/giftvoucher_customization.tpl
Srv Bebeboutik 6c0978166c add modules
2016-01-04 12:49:26 +01:00

29 lines
1.9 KiB
Smarty

{if $giftvouchers}
{assign var='no' value=1}
{foreach from=$giftvouchers item=giftvoucher}
<div class="gv_customization">
<div class="gv_product_name">{$no}&nbsp;-&nbsp;{$giftvoucher.product_name}</div>
<input type="hidden" id="gv_no_{$giftvoucher.id_gift_voucher}" name="gv_no_{$giftvoucher.id_gift_voucher}" value="{$no}" />
<div class="gv_param">
<label for="gv_no_customize_{$giftvoucher.id_gift_voucher}">{l s='don\'t customize' mod='giftvoucher'}</label>
<input type="checkbox" name="gv_no_customize_{$giftvoucher.id_gift_voucher}" id="gv_no_customize_{$giftvoucher.id_gift_voucher}" value="1" onclick="return giftvoucher.updateDivCustomization({$giftvoucher.id_gift_voucher});" {if ($giftvoucher.customize == 0)}checked{/if} />
</div>
<div id="gv_customization_{$giftvoucher.id_gift_voucher}" style="{if ($giftvoucher.customize == 0)}display:none;{/if}">
<div class="gv_param">
<label for="gv_name_{$giftvoucher.id_gift_voucher}">{l s='name' mod='giftvoucher'}&nbsp;:&nbsp;</label>
<input type="text" name="gv_name_{$giftvoucher.id_gift_voucher}" id="gv_name_{$giftvoucher.id_gift_voucher}" value="{$giftvoucher.name}" maxlength="64" />
</div>
<div class="gv_param">
<label for="gv_email_{$giftvoucher.id_gift_voucher}">{l s='email' mod='giftvoucher'}&nbsp;:&nbsp;</label>
<input type="text" name="gv_email_{$giftvoucher.id_gift_voucher}" id="gv_email_{$giftvoucher.id_gift_voucher}" value="{$giftvoucher.email}" maxlength="128" />
</div>
<div class="gv_param">
<label for="gv_comment_{$giftvoucher.id_gift_voucher}">{l s='comment' mod='giftvoucher'}&nbsp;:&nbsp;</label>
<textarea style="width: 337px; height: 88px;" name="gv_comment_{$giftvoucher.id_gift_voucher}" id="gv_comment_{$giftvoucher.id_gift_voucher}">{$giftvoucher.comment|escape:'htmlall':'UTF-8'}</textarea>
</div>
</div>
</div>
{assign var='no' value=$no+1}
{/foreach}
{else}0{/if}