<fieldset class="noborder">
    {include file='r/hidden.tpl' name="form_types_type_edit"}{* What entry do we edit - If empty = add *}
    {include file='r/input.tpl' name="form_types_type_name" title="masterdatamanagement_designation" class="required t-mid"}
    {include file='r/radio_form_types.tpl' name="form_types_type_type" title="masterdatamanagement_type"
        list=$type_list class="required" filter_extra = 'onchange="md_form_types.type.on_type_changed();"'}
    {include file='r/checkbox.tpl' name="form_types_type_is_valid" title="masterdatamanagement_active" labelclass="label1"}
</fieldset>
<fieldset class="bordertop">

    {include file='r/checkbox.tpl' name="form_types_type_is_offer" title="masterdatamanagement_type_is_offer" labelclass="label2 labelext"
        filter_extra='onchange="md_form_types.type.on_type_changed(this);"' class="special_type" collapse='orange'}
        
    {include file='r/checkbox.tpl' name="form_types_type_is_collective_offer" title="masterdatamanagement_type_is_collective_offer" labelclass="label2 labelext"
        filter_extra='onchange="md_form_types.type.on_type_changed(this);"' class="special_type" collapse='orange'}

    {include file='r/checkbox.tpl' name="form_types_type_is_offer_component" title="masterdatamanagement_type_is_offer_component" labelclass="label2 labelext"
        filter_extra='onchange="md_form_types.type.on_type_changed(this);"' class="special_type" collapse='orange'}
    <p class="formstyle" style="height: 10px;">&nbsp;</p>

    {include file='r/checkbox.tpl' name="form_types_type_is_delivery_note" title="masterdatamanagement_type_is_delivery_note" labelclass="label2 labelext"
        filter_extra='onchange="md_form_types.type.on_type_changed(this);"' class="special_type" collapse='green'}
    
    {include file='r/checkbox.tpl' name="form_types_type_is_fee" title="masterdatamanagement_type_is_fee" labelclass="label2 labelext"
        filter_extra='onchange="md_form_types.type.on_type_changed(this);"' class="special_type" collapse='yellow'}    
    {if $us_major_version>=15}
        {include file='r/checkbox.tpl' name="form_types_type_is_fee_reminder" title="masterdatamanagement_type_is_fee_reminder" labelclass="label2 labelext"
            filter_extra='onchange="md_form_types.type.on_type_changed(this);"' class="special_type" collapse='yellow'}    
    {/if}
    <p class="formstyle" style="height: 10px;">&nbsp;</p>    
        
    {include file='r/checkbox.tpl' name="form_types_type_is_payment_installment" title="masterdatamanagement_type_is_payment_installment" labelclass="label2 labelext"
        filter_extra='onchange="md_form_types.type.on_type_changed(this);"' class="special_type" collapse='yellow'}
        
    {include file='r/checkbox.tpl' name="form_types_type_is_payment_final" title="masterdatamanagement_type_is_payment_final" labelclass="label2 labelext"
        filter_extra='onchange="md_form_types.type.on_type_changed(this);"' class="special_type" collapse='yellow'}
    
    <p class="formstyle" style="height: 10px;">&nbsp;</p>
        
    {include file='r/checkbox.tpl' name="form_types_type_is_collective_bill" title="masterdatamanagement_type_is_collective_bill" labelclass="label2 labelext"
        filter_extra='onchange="md_form_types.type.on_type_changed(this);"' class="special_type" collapse='yellow'}

    {include file='r/checkbox.tpl' name="form_types_type_is_payment_component" title="masterdatamanagement_type_is_payment_component" labelclass="label2 labelext"
        filter_extra='onchange="md_form_types.type.on_type_changed(this);"' class="special_type" collapse='yellow'}
    <p class="formstyle" style="height: 10px;">&nbsp;</p>

    {include file='r/checkbox.tpl' name="form_types_type_is_expenses" title="masterdatamanagement_type_is_expenses" labelclass="label2 labelext"
        filter_extra='onchange="md_form_types.type.on_type_changed(this);"' class="special_type" collapse='yellow'}
    <p class="formstyle" style="height: 10px;">&nbsp;</p>
        
    {include file='r/checkbox.tpl' name="form_types_type_is_f2g_report" title="masterdatamanagement_type_is_f2g_report" labelclass="label2 labelext"
        filter_extra='onchange="md_form_types.type.on_type_changed(this);"' class="special_type" collapse='violet'}        
</fieldset>
<fieldset class="bordertop">
    {include file='r/select.tpl' name="form_types_preset" labelclass="label2 labelext"
        title="masterdatamanagement_type_preset" collapse='formcoll' noempty=TRUE
        list=$presets id="id" text="name" mapclass="classes"
        filter_extra='onchange="if($(\'#form_types_type_name\').val() === \'\') $(\'#form_types_type_name\').val($(\'#form_types_preset > option:selected\').attr(\'title\'));"'}        
</fieldset>    
<fieldset class="noborder">
    {include file='r/file.tpl' name="form_types_type_template_file" title="masterdatamanagement_form_document"
        allow_delete=TRUE targettype="files" targetdata="temp_form_type_all" labelclass="label1 labelext"
        allow_info=TRUE}
</fieldset>    
<fieldset class="bordertop" id="form_types_type_infofields">
    {include file='r/input.tpl' name="form_types_type_file" title="masterdatamanagement_file" readonly="readonly"}
    {include file='r/datetime.tpl' name="form_types_type_created_date" title="basic_created_date" readonly="readonly" collapse='formcoll'}
    {include file='r/input.tpl' name="form_types_type_created_by_name" title="basic_created_by" readonly="readonly" collapse='formcoll'}
    {include file='r/datetime.tpl' name="form_types_type_change_date" title="basic_change_date" readonly="readonly" collapse='formcoll'}
    {include file='r/input.tpl' name="form_types_type_changed_by_name" title="basic_changed_by" readonly="readonly" collapse='formcoll'}
</fieldset>
