<form method="post" action="" id="edit_all_fee_allocations_form" class="noprint biggerform" onsubmit="return false;">
    <fieldset class="borderbottom">
        {include file='r/checkbox.tpl' name="edit_all_fee_allocations_ignore_empty" 
            title="offers_management_edit_all_phases_ignore_empty" text="name" collapse="formcoll"}
    </fieldset>

    {if $offer_is_quantity}
        <fieldset class="borderbottom">
            <h3>{$i.offers_management_edit_all_phases_quantity_title}</h3>
            {include file='r/checkbox.tpl' name="edit_all_fee_allocations_quantity_yn" class="yn_checkbox"
                title="offers_management_edit_all_phases_quantity" text="name" collapse="formcoll"}
            {include file='r/input.tpl' name="edit_all_fee_allocations_quantity"
                text="name" class="t-midsmall numberi18n calculator" collapse="formcoll"
                default={islongfloat value=0} add_icons_file='warning' past_span_text="€"}

            {include file='r/checkbox.tpl' name="edit_all_fee_allocations_unit_yn" class="yn_checkbox"
                title="offers_management_edit_all_phases_quantity_unit" text="name" collapse="formcoll"}
            {include file='r/select-only.tpl' name="edit_all_fee_allocations_unit"
                list=$quantities_list default=$quantities_default id="id" text="name"
                class="t-midsmall" noempty=true}
        </fieldset>
    {else}
        {include file='r/hidden.tpl' name="edit_all_fee_allocations_quantity" default="0"}
        {include file='r/hidden.tpl' name="edit_all_fee_allocations_unit" default="0"}
    {/if}

    <fieldset class="borderbottom">
        <h3>{$i.offers_management_edit_all_phases_values_title}</h3>
        {if !$offer_is_quantity}
            {include file='r/checkbox.tpl' name="edit_all_fee_allocations_fee_yn" class="yn_checkbox"
                title="offers_management_edit_all_phases_values" text="name" collapse="formcoll"}
            {if $offer_is_calcexp}
                <a id="edit_all_fee_allocations_fee_details" onclick='offers_management.fee_allocation.open_skill_grp_calcexp(this);' class="dialog_make_text_btn ui-corner-all"
                    title="{$i.offers_management_edit_phase_skill_grp}">
                    <span class="dialog_make_btn16 edit ui-corner-all"></span>
                </a>
            {/if}
            {include file='r/input.tpl' name="edit_all_fee_allocations_fee"
                text="name" class="t-midsmall numberi18n calculator" collapse="formcoll"
                default={islongfloat value=0} add_icons_file='warning' past_span_text="€"
                readonly="{if $offer_is_calcexp}readonly{/if}"}
        {else}
            {include file='r/hidden.tpl' name="edit_all_fee_allocations_fee" default="0"}
        {/if}
        
        {include file='r/checkbox.tpl' name="edit_all_fee_allocations_supplement_yn" class="yn_checkbox"
            title="offers_management_edit_all_phases_supplement" text="name" collapse="formcoll"}
        {include file='r/input.tpl' name="edit_all_fee_allocations_supplement"
            text="name" class="t-midsmall numberi18n calculator" collapse="formcoll"
            default={islongfloat value=0} add_icons_file='warning' past_span_text="€"}
        
        {if $extras_type === 2}
            {include file='r/checkbox.tpl' name="edit_all_fee_allocations_extras_yn" class="yn_checkbox"
                title="offers_management_edit_all_phases_extras" text="name" collapse="formcoll"}
            <a id="edit_all_fee_allocations_extras_details" onclick='offers_management.fee_allocation.open_extras_calcexp(this);' class="dialog_make_text_btn ui-corner-all"
                title="{$i.offers_management_edit_phase_extras}">
                <span class="dialog_make_btn16 edit ui-corner-all"></span>
            </a>
            {include file='r/input.tpl' name="edit_all_fee_allocations_extras"
                text="name" class="t-midsmall numberi18n calculator" collapse="formcoll"
                default={islongfloat value=0} readonly=true
                add_icons_file='warning' past_span_text="€"}
        {else}
            {include file='r/checkbox.tpl' name="edit_all_fee_allocations_extras_yn" class="yn_checkbox"
                title="offers_management_edit_all_phases_extras" text="name" collapse="formcoll"}
            {include file='r/input.tpl' name="edit_all_fee_allocations_extras"
                text="name" class="t-midsmall numberi18n calculator" collapse="formcoll"
                default={islongfloat value=0} add_icons_file='warning' past_span_text="{if $extras_type === 1}%{else}€{/if}"}
        {/if}
        
        {include file='r/checkbox.tpl' name="edit_all_fee_allocations_rebate_yn" class="yn_checkbox"
            title="offers_management_edit_all_phases_rebate" text="name" collapse="formcoll"}
        {include file='r/input.tpl' name="edit_all_fee_allocations_rebate"
            text="name" class="t-midsmall numberi18n calculator" collapse="formcoll"
            default={islongfloat value=0} add_icons_file='warning' past_span_text="{if $rebate_type}%{else}€{/if}"}
    </fieldset>
</form>