57 lines
3.4 KiB
Smarty
57 lines
3.4 KiB
Smarty
<table cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td style="width:50%">
|
|
<label>{l s='Name'}</label>
|
|
<div class="margin-form">
|
|
<div class="translatable">
|
|
{foreach from=$languages item=language}
|
|
<div class="lang_{$language.id_lang}" style="display:{if $language.id_lang == $defaultLanguage}block{else}none{/if};float:left">
|
|
<input type="text" id="name_{$language.id_lang}" name="name_{$language.id_lang}" value="{$currentTab->getFieldValue($currentObject, 'name', $language.id_lang)}" style="width:300px" />
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
<p class="clear">{l s='Will be displayed in the cart summary as well as on the invoice.'}</p>
|
|
</div>
|
|
<label>{l s='Code'}</label>
|
|
<div class="margin-form">
|
|
<input type="text" id="code" name="code" value="{$currentTab->getFieldValue($currentObject, 'code')}" />
|
|
<img src="../img/admin/news-new.gif" onclick="gencode(8);" style="cursor:pointer" />
|
|
<p>{l s='Optional, the rule will automatically be applied if you leave this field blank.'}</p>
|
|
</div>
|
|
<label>{l s='Partial use'}</label>
|
|
<div class="margin-form">
|
|
|
|
<input type="radio" name="partial_use" id="partial_use_on" value="1" {if $currentTab->getFieldValue($currentObject, 'partial_use')|intval}checked="checked"{/if} />
|
|
<label class="t" for="partial_use_on"> <img src="../img/admin/enabled.gif" alt="{l s='Allowed'}" title="{l s='Allowed'}" style="cursor:pointer" /></label>
|
|
|
|
<input type="radio" name="partial_use" id="partial_use_off" value="0" {if !$currentTab->getFieldValue($currentObject, 'partial_use')|intval}checked="checked"{/if} />
|
|
<label class="t" for="partial_use_off"> <img src="../img/admin/disabled.gif" alt="{l s='Not allowed'}" title="{l s='Not allowed'}" style="cursor:pointer" /></label>
|
|
<p>
|
|
{l s='Only applicable if the voucher value is greater than the cart total.'}<br />
|
|
{l s='If you do not allow partial use, the voucher value will be lowered to the total order amount, but if you do, a new voucher will be created with the remainder.'}
|
|
</p>
|
|
</div>
|
|
<label>{l s='Priority'}</label>
|
|
<div class="margin-form">
|
|
<input type="text" name="priority" value="{$currentTab->getFieldValue($currentObject, 'priority')|intval}" />
|
|
<p>{l s='Cart rules are applied to the cart by priority. A cart rule with priority of "1" will be processed before a cart rule with a priority of "2".'}</p>
|
|
</div>
|
|
<label>{l s='Status'}</label>
|
|
<div class="margin-form">
|
|
|
|
<input type="radio" name="active" id="active_on" value="1" {if $currentTab->getFieldValue($currentObject, 'active')|intval}checked="checked"{/if} />
|
|
<label class="t" for="active_on"> <img src="../img/admin/enabled.gif" alt="{l s='Enabled'}" title="{l s='Enabled'}" style="cursor:pointer" /></label>
|
|
|
|
<input type="radio" name="active" id="active_off" value="0" {if !$currentTab->getFieldValue($currentObject, 'active')|intval}checked="checked"{/if} />
|
|
<label class="t" for="active_off"> <img src="../img/admin/disabled.gif" alt="{l s='Disabled'}" title="{l s='Disabled'}" style="cursor:pointer" /></label>
|
|
</div>
|
|
</td>
|
|
<td style="width:50%">
|
|
<label>{l s='Description'}</label>
|
|
<div class="margin-form">
|
|
<textarea name="description" style="width:90%;height:200px">{$currentTab->getFieldValue($currentObject, 'description')}</textarea>
|
|
<p>{l s='For you only, never displayed to the customer.'}</p>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table> |