This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/themes/default/blocks/checkout_plugin/plugin_tr_fee.tpl
2011-05-03 09:49:01 +10:00

29 lines
995 B
Smarty

<tr valign="top">
<td style="width: 50%;">{translate module=checkout}Payment Fee Type{/translate}</td>
<td style="width: 50%;">
{$list->menu_staticlist('commissiontype','checkout_plugin_data_feetype','checkout_plugin_data[feetype]',$plugin_data.feetype,'form_menu" onchange="setFee(this.value)')}
<script type="text/javascript">
{literal}
function setFee(value) {
<!--
feefield = document.getElementById('checkout_plugin_data_fee');
if (value == 0) {
feefield.disabled = true;
if (feefield.value)
feefield.value = '';
} else {
feefield.disabled = false;
}
}
{/literal}
//-->
</script>
</td>
</tr>
<tr valign="top">
<td style="width: 50%;">{translate module=checkout}Payment Fee{/translate}{$plugin_data.fee}</td>
<td style="width: 50%;"><input type="text" id="checkout_plugin_data_fee" name="checkout_plugin_data[fee]" value="{$plugin_data.fee}" class="form_menu" {if ! $plugin_data.feetype}disabled="disabled"{/if}/></td>
</tr>