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

188 lines
9.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: 50%;">{osb f=tf field=name}</td>
<td style="width: 50%;"><input type="text" name="checkout_name" value="{$VAR.checkout_name}" {if $checkout_name == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 50%;">{osb f=tf field=description}</td>
<td style="width: 50%;"><textarea name="checkout_description" cols="40" rows="2">{$VAR.checkout_description}</textarea></td>
</tr>
<tr valign="top">
<td style="width: 50%;">{osb f=tf field=active}</td>
<td style="width: 50%;">
{if $VAR.checkout_active != ''}
{$list->bool('checkout_active',$VAR.checkout_active,'form_menu')}
{else}
{$list->bool('checkout_active','1','form_menu')}
{/if}
</td>
</tr>
<tr valign="top">
<td style="width: 50%;">{osb f=tf field=graphic_url}</td>
<td style="width: 50%;"><input type="text" name="checkout_graphic_url" value="{$VAR.checkout_graphic_url}" {if $checkout_grapic_url == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 50%;">{osb f=tf field=checkout_plugin}</td>
<td style="width: 50%;">{$list->menu_files('','checkout_checkout_plugin',$VAR.checkout_checkout_plugin,'checkout_plugin','','.php','form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
<tr valign="top" class="row2">
<td style="width: 33%;">{osb f=tf field=allow_new}</td>
<td style="width: 33%;">{osb f=tf field=allow_recurring}</td>
<td style="width: 33%;">{osb f=tf field=allow_trial}</td>
</tr>
<tr valign="top">
<td style="width: 33%;">{$list->bool('checkout_allow_new',$VAR.checkout_allow_new,'form_menu')}</td>
<td style="width: 33%;">{$list->bool('checkout_allow_recurring',$VAR.checkout_allow_recurring,'form_menu')}</td>
<td style="width: 33%;">{$list->bool('checkout_allow_trial',$VAR.checkout_allow_trial,'form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
<tr valign="top" class="row2">
<td style="width: 33%;">{osb f=tf field=total_minimum}</td>
<td style="width: 33%;">{osb f=tf field=total_maximum}</td>
<td style="width: 33%;">{osb f=tf field=max_decline_attempts}</td>
</tr>
<tr valign="top">
<td style="width: 33%;"><input type="text" name="checkout_total_minimum" value="{$VAR.checkout_total_minimum}" {if $checkout_total_minimum == true}class="form_field_error"{/if} size="5"/> {$list->currency_iso('')}</td>
<td style="width: 33%;"><input type="text" name="checkout_total_maximum" value="{$VAR.checkout_total_maximum}" {if $checkout_total_maximum == true}class="form_field_error"{/if} size="5"/> {$list->currency_iso('')}</td>
<td style="width: 33%;"><input type="text" name="checkout_max_decline_attempts" value="{$VAR.checkout_max_decline_attempts}" {if $checkout_max_decline_attempts == true}class="form_field_error"{/if} size="5"/> {$list->currency_iso('')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
<tr valign="top" class="row2">
<td style="width: 33%;">{osb f=tf field=required_groups}</td>
<td style="width: 33%;">{osb f=tf field=excluded_products}</td>
</tr>
<tr valign="top">
<td style="width: 33%;">{$list->menu_multi($VAR.checkout_required_groups,'checkout_required_groups','group','name','5','5','form_menu')}</td>
<td style="width: 33%;">{$list->menu_multi($VAR.checkout_excluded_products,'checkout_excluded_products','product','sku','5','5','form_menu')}</td>
</tr>
</table>
</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: 50%;">{osb f=tf field=manual_approval_all}</td>
<td style="width: 50%;">{osb f=tf field=manual_approval_recur}</td>
</tr>
<tr valign="top">
<td style="width: 50%;">{$list->bool('checkout_manual_approval_all',$VAR.checkout_manual_approval_all,'form_menu')}</td>
<td style="width: 50%;">{$list->bool('checkout_manual_approval_recur',$VAR.manual_approval_recur,'form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td style="width: 50%;">{osb f=tf field=manual_approval_amount}</td>
<td style="width: 50%;">{osb f=tf field=manual_approval_currency}</td>
</tr>
<tr valign="top">
<td style="width: 50%;"><input type="text" name="checkout_manual_approval_amount" value="{$VAR.checkout_manual_approval_amount}" {if $checkout_manual_approval_amount == true}class="form_field_error"{/if} size="5"/> {$list->currency_iso('')}</td>
<td style="width: 50%;">{$list->menu_multi($VAR.checkout_manual_approval_currency,'checkout_manual_approval_currency','currency','name','5','5','form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td style="width: 50%;">{osb f=tf field=manual_approval_country}</td>
<td style="width: 50%;">{osb f=tf field=manual_approval_group}</td>
</tr>
<tr valign="top">
<td style="width: 50%;">{$list->menu_multi($VAR.checkout_manual_approval_country,'checkout_manual_approval_country','country','name','5','5','form_menu')}</td>
<td style="width: 50%;">{$list->menu_multi($VAR.checkout_manual_approval_group,'checkout_manual_approval_group','group','name','5','5','form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td style="width: 50%;">{osb f=tf field=default_when_amount}</td>
<td style="width: 50%;">{osb f=tf field=default_when_currency}</td>
</tr>
<tr valign="top">
<td style="width: 50%;"><input type="text" name="checkout_default_when_amount" value="{$VAR.checkout_default_when_amount}" {if $checkout_default_when_amount == true}class="form_field_error"{/if} size="5"/> {$list->currency_iso('')}</td>
<td style="width: 50%;">{$list->menu_multi($VAR.checkout_default_when_currency,'checkout_default_when_currency','currency','name','5','5','form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td style="width: 50%;">{osb f=tf field=default_when_country}</td>
<td style="width: 50%;">{osb f=tf field=default_when_group}</td>
</tr>
<tr valign="top">
<td style="width: 50%;">{$list->menu_multi($VAR.checkout_default_when_country,'checkout_default_when_country','country','name','5','5','form_menu')}</td>
<td style="width: 50%;">{$list->menu_multi($VAR.checkout_default_when_group,'checkout_default_when_group','group','name','5','5','form_menu')}</td>
</tr>
</table>
</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: 50%;">{osb f=tf field=allowed_currencies}</td>
<td style="width: 50%;">{osb f=tf field=email_template}</td>
</tr>
<tr valign="top">
<td style="width: 50%;">{$list->menu_multi($VAR.checkout_allowed_currencies,'checkout_allowed_currencies','currency','name','5','5','form_menu')}</td>
<td style="width: 50%;"><textarea name="checkout_email" cols="40" rows="4">{$VAR.checkout_email_template}</textarea></td>
</tr>
{include file='file:../core/add_tr_submit.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>