{assign var=meth value=':'|explode:$VAR._page} {$method->exe($meth.0,$meth.1)} {if ($method->result == false)} {$block->display('core:method_error')} {else} {include file='file:../core/view_pre.tpl'} {if $form_validation} {$block->display('core:alert_fields')} {/if}
{include file='file:../core/view_tr_submit_delete.tpl'}
{osb f=tt}
{osb f=tf field=date_orig} {$list->date_time($record.date_orig)}
{osb f=tf field=date_start} {$list->calender_view('discount_date_start',$record.date_start,'form_field')}
{osb f=tf field=date_expire} {$list->calender_view('discount_date_expire',$record.date_expire,'form_field')}
{osb f=tf field=status} {$list->bool('discount_status',$record.status,'" onchange="submit()')}
{osb f=tf field=name}
{osb f=tf field=notes}
{t}Discount Restrictions & Limitations{/t}
{if $list->is_installed('host_tld')} {/if}
{osb f=tf field=max_usage_account}
{osb f=tf field=max_usage_global}
{osb f=tf field=avail_account_id} {osb f=autoselect module=account return=id field=discount_avail_account_id default=$record.avail_account_id}
{osb f=tf field=avail_product_id} {$list->menu_multi($record.avail_product_id,'discount_avail_product_id','product','sku','','10','form_menu')}
{osb f=tf field=avail_tld_id} {$list->menu_multi($record.avail_tld_id,'discount_avail_tld_id','host_tld','name','','10','form_menu')}
{osb f=tf field=avail_group_id} {$list->menu_multi($record.avail_group_id,'discount_avail_group_id','group','name','','10','form_menu')}
{t}Settings for new Charges & Orders{/t}
{osb f=tf field=new_status} {$list->bool('discount_new_status',$record.new_status)}
{osb f=tf field=new_type} {$list->menu_staticlist('discounttype','discount_new_type','discount_new_type',$record.new_type,'form_menu')}
{osb f=tf field=new_rate}
{osb f=tf field=new_max_discount}
{osb f=tf field=new_min_cost}
{t}Settings for Recurring Charges{/t}
{osb f=tf field=recurr_status} {$list->bool('discount_recurr_status',$record.recurr_status)}
{osb f=tf field=recurr_type} {$list->menu_staticlist('discounttype','discount_recurr_type','discount_recurr_type',$VAR.recurr_type,'form_menu')}
{osb f=tf field=recurr_rate}
{osb f=tf field=recurr_max_discount}
{osb f=tf field=recurr_min_cost}
{include file='file:../core/view_post.tpl'}
{/if}