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/tax/add.tpl
2011-05-03 09:49:01 +10:00

83 lines
3.3 KiB
Smarty

{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Display the form validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- Display the form to collect the input values -->
<form id="add" method="post" action="" enctype="multipart/form-data">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=country_id}</td>
<td style="width: 65%;">
{if $VAR.tax_country_id != ''}
{$list->menu('','tax_country_id','country','name',$VAR.tax_country_id,'form_menu')}
{else}
{$list->menu('','tax_country_id','country','name',$smarty.const.DEFAULT_COUNTRY,'form_menu')}
{/if}
</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=zone}</td>
<td style="width: 65%;"><input type="text" name="tax_zone" value="{$VAR.tax_zone}" {if $tax_zone == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=description}</td>
<td style="width: 65%;"><input type="text" name="tax_description" value="{$VAR.tax_description}" {if $tax_description == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=rate}</td>
<td style="width: 65%;"><input type="text" name="tax_rate" value="{$VAR.tax_rate}" {if $tax_rate == true}class="form_field_error"{/if} size="5"/></td>
</tr>
<tr valign="top">
<td>{osb f=tf field=tax_id_collect}</td>
<td>{$list->bool('tax_tax_id_collect',$VAR.tax_id_collect,'" onchange="if (this.value==1) document.getElementById(\'tax_id\').style.display=\'block\'; else document.getElementById(\'tax_id\').style.display=\'none\';')}</td>
</tr>
<tr valign="top">
<td colspan="2">
<div id="tax_id" {osb f=style_hide}>
<table width="100%" class="row1">
<tr valign="middle">
<td style="width: 35%;">{osb f=tf field=tax_id_name}</td>
<td style="width: 65%;"><input type="text" name="tax_tax_id_name" value="{$VAR.tax_id_name}" size="32"/></td>
</tr>
<!-- <tr valign="middle">
<td>{osb f=tf field=tax_id_exempt}</td>
<td>{$list->bool('tax_tax_id_exempt',$VAR.tax_id_exempt)}</td>
</tr> -->
<tr valign="middle">
<td>{osb f=tf field=tax_id_req}</td>
<td>{$list->bool('tax_tax_id_req',$VAR.tax_id_req)}</td>
</tr>
<tr valign="middle">
<td>{osb f=tf field=tax_id_regex}</td>
<td><input type="text" name="tax_tax_id_regex" value="{$VAR.tax_id_regex}" size="32"/></td>
</tr>
</table>
</div>
</td>
</tr>
{include file='file:../core/add_tr_submit.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>