<h2><em>{$i.masterdatamanagement_master_data_documentation}</em> - {$i.masterdatamanagement_form_types}

    <span class="dialog_make_text_btn ui-corner-all" onclick="$(this).hide(); masterdatamanagement.view('form_types');">
        <span class="dialog_make_btn16 update ui-corner-all"></span>
        {$i.basic_update}
    </span>
</h2>

{if $have_old_secure_docx_xlsx}
    <div class="warning warningborder ui-corner-all" style="margin: 5vh;">
        {$i.pages_have_old_secure_docx_xlsx|markdown}
        <a href="{site_url url="start/open/masterdatamanagement_form_types/types_new_security_mode/$xjxcookie"}" 
           onclick="md_form_types.types_new_security_mode(this); return false;"
           class="dialog_make_text_btn ui-corner-all">{$i.masterdatamanagement_types_new_security_mode}</a>
    </div>
{/if}

<form action="" method="post" class="ui-corner-all" style="clear:both;" id="masterdatamanagement_content_filter">
    <fieldset class="ui-widget-header ui-corner-all noborder">
        {include file='r/checkbox.tpl' name="active_only" title="masterdatamanagement_active_only" collapse='' default=TRUE
            filter_extra="onchange='md_form_types.tree.toggle_active(null, this);'" collapse='formcoll3'}
    </fieldset>
    <fieldset class="ui-widget-header ui-corner-all noborder formcheckboxes">
        {include file='r/checkbox.tpl' name="filter_is_offer" title="masterdatamanagement_type_is_offer" labelclass="label2"
            filter_extra='onchange="md_form_types.tree.toggle_active(null, this);"' class="special_type" collapse='formcoll3 orange'}
        
        {include file='r/checkbox.tpl' name="filter_is_collective_offer" title="masterdatamanagement_type_is_collective_offer" labelclass="label2"
            filter_extra='onchange="md_form_types.tree.toggle_active(null, this);"' class="special_type" collapse='formcoll3 orange'}

        {include file='r/checkbox.tpl' name="filter_is_offer_component" title="masterdatamanagement_type_is_offer_component" labelclass="label2"
            filter_extra='onchange="md_form_types.tree.toggle_active(null, this);"' class="special_type" collapse='formcoll3 orange'}
        
        {include file='r/checkbox.tpl' name="filter_is_delivery_note" title="masterdatamanagement_type_is_delivery_note" labelclass="label2"
            filter_extra='onchange="md_form_types.tree.toggle_active(null, this);"' class="special_type" collapse='formcoll3 green'}

        {include file='r/checkbox.tpl' name="filter_is_fee" title="masterdatamanagement_type_is_fee" labelclass="label2"
            filter_extra='onchange="md_form_types.tree.toggle_active(null, this);"' class="special_type" collapse='formcoll3 yellow'}    

        {include file='r/checkbox.tpl' name="filter_is_payment_installment" title="masterdatamanagement_type_is_payment_installment" labelclass="label2"
            filter_extra='onchange="md_form_types.tree.toggle_active(null, this);"' class="special_type" collapse='formcoll3 yellow'}

        {include file='r/checkbox.tpl' name="filter_is_payment_final" title="masterdatamanagement_type_is_payment_final" labelclass="label2"
            filter_extra='onchange="md_form_types.tree.toggle_active(null, this);"' class="special_type" collapse='formcoll3 yellow'}

        {include file='r/checkbox.tpl' name="filter_is_collective_bill" title="masterdatamanagement_type_is_collective_bill" labelclass="label2"
            filter_extra='onchange="md_form_types.tree.toggle_active(null, this);"' class="special_type" collapse='formcoll3 yellow'}

        {include file='r/checkbox.tpl' name="filter_is_payment_component" title="masterdatamanagement_type_is_payment_component" labelclass="label2"
            filter_extra='onchange="md_form_types.tree.toggle_active(null, this);"' class="special_type" collapse='formcoll3 yellow'}

        {include file='r/checkbox.tpl' name="filter_is_expenses" title="masterdatamanagement_type_is_expenses" labelclass="label2"
            filter_extra='onchange="md_form_types.tree.toggle_active(null, this);"' class="special_type" collapse='formcoll3 yellow'}

        {* include file='r/checkbox.tpl' name="filter_is_f2g_report" title="masterdatamanagement_type_is_f2g_report" labelclass="label2"
            filter_extra='onchange="md_form_types.tree.toggle_active(null, this);"' class="special_type" collapse='formcoll3 violet' *}
    </fieldset>
</form>

<!-- BUILD TREE WITHIN THIS DIV -->    
<div id="form_types_tree" style="margin-top:20px">
</div>
   
<!-- POPFORM FOR FOLDERS -->  
{include file='r_forms/editable_popform.tpl' id="form_types_folder" js_object="md_form_types.folder"}
        {include file='Masterdatamanagement/form_types/edit_popform_folder.tpl'}
    </div>
</form>

<!-- POPFORM FOR TYPES --> 
{include file='r_forms/editable_popform.tpl' id="form_types_type" js_object="md_form_types.type"}
        {include file='Masterdatamanagement/form_types/edit_popform_type.tpl'}
    </div>
</form>
