<div id="set_done_dialog" style="display:none">
    <form onsubmit="$(this).blur();return false;" action="" id="set_done_dialog_form" class="bigform">
        <fieldset class="borderbottom">
            {include file='r/hidden.tpl' name="sdd_edit"}
            {include file='r/hidden.tpl' name="sdd_remited_default"}
            
            {include file='r/date.tpl' name="sdd_done_date" title="fees_sdd_done_date" class="required dateUS" collapse='formcoll'}
            {include file='r/date.tpl' name="sdd_due_date" title="fees_sdd_due_date" class="required dateUS" collapse='formcoll' labelclass="label2"}
        </fieldset>
        <fieldset id="sdd_withholding" class="borderbottom" hidden>
            {include file='r/input.tpl' name='sdd_withholded' title="fees_sdd_withholding" class="numberi18n calculator"
                collapse='formcoll' readonly=true}
            {include file='r/input.tpl' name='sdd_remited_minus_withholding' title="fees_sdd_remited_minus_withholding" class="numberi18n calculator"
                collapse='formcoll' readonly=true}
        </fieldset>
        <fieldset class="borderbottom">
            {if !$project_use_currency}
                {include file='r/input.tpl' name='sdd_remited' title="fees_sdd_remited" class="numberi18n calculator" 
                    collapse='formcoll'}
                {include file='r/input-deduction.tpl' 
                    list=$is_percentage_list id="id" text="name" 
                    class="required"  collapse='formcoll' labelclass='label2'
                    name="sdd_is_percentage" title="fees_deduction" 
                    filter_extra="onchange=\"feeadmin.set_done_dialog.onchange_is_percentage();\""
                    input_name='sdd_deduction' input_class="t-small numberi18n calculator"
                    input_filter_extra="onchange=\"feeadmin.set_done_dialog.onchange_deduction(this);\""}
            {else}{* $$$$$$$$$$$$$ *}
                {include file='r/hidden.tpl' name="sdd_currency_id"}
                
                {include file='r/input.tpl' name="sdd_exchange_rate" title="fees_exchange_rate" class="required numberi18n"
                    add_icons_file="currencies_online_update" online_update_currency="sdd_currency_id" online_update_date="sdd_done_date"
                    filter_extra="onchange=\"feeadmin.set_done_dialog.calc_onchange_otcurr();\""}
                    
                {include file='r/view.tpl' name="sdd_remited_internal" title="fees_sdd_remited" collapse='formcoll' class="numberi18n" default='0'
                    add_icons_file='warning' past_span_text=$project_global_currency}
                {include file='r/input.tpl' name='sdd_remited' title="fees_sdd_remited_otcurr" class="numberi18n calculator" 
                    collapse='formcoll'}
                    
                </fieldset>
                <fieldset class="borderbottom">
                    
                {include file='r/radio.tpl' name="sdd_is_percentage" title="fees_deduction_mode" list=$is_percentage_list id="id" text="name" 
                    class="required"
                    filter_extra="onchange=\"feeadmin.set_done_dialog.onchange_is_percentage();\""}
                {include file='r/view.tpl' name="sdd_deduction_internal" title="fees_deduction" collapse='formcoll' class="numberi18n" default='0'
                    add_icons_file='warning' past_span_text=$project_global_currency}
                {include file='r/input.tpl' name='sdd_deduction' title="fees_deduction_otcurr" class="numberi18n calculator"
                    collapse='formcoll' filter_extra="onchange=\"feeadmin.set_done_dialog.onchange_deduction(this);\""}
            {/if}
        </fieldset>
                
        <fieldset id="fee_work_packages_done" class="noborder"></fieldset>
        
        <fieldset class="noborder">
            {include file='r/textarea.tpl' name="sdd_remit_purpose" title="fees_sdd_remit_purpose" class="t-long" labelclass="label2"}
        </fieldset>
    </form>
</div>