<fieldset class="borderbottom">
    {include file='r/hidden.tpl' name="staffadmin_edit"}{* What entry do we edit - If empty = add *}
    {include file='r/input.tpl' name="staffadmin_staff_name" title="staffadmin_staff_name" collapse='formcoll' class="required" filter_extra="onchange='staffadmin.autogen_username();'" maxlength=50}
    {include file='r/input.tpl' name="staffadmin_username" title="staffadmin_username" collapse='formcoll' class="" maxlength=80}
    {include file='r/input.tpl' name="staffadmin_street" title="staffadmin_street" collapse='formcoll' class="" maxlength=50}
    {include file='r/input.tpl' name="staffadmin_gender" title="staffadmin_gender2" collapse='formcoll' class="" maxlength=1}
    {include file='r/input-zip-town.tpl' name="staffadmin_zip_town" title="staffadmin_zip_town"}

    {include file='r/input.tpl' name="staffadmin_phone_1" title="staffadmin_phone_1" collapse='formcoll' class="" maxlength=50}
    {include file='r/input.tpl' name="staffadmin_phone_2" title="staffadmin_phone_2" collapse='formcoll' class="" maxlength=50}
    {include file='r/input.tpl' name="staffadmin_fax" title="staffadmin_fax" collapse='formcoll' class="" maxlength=50}
    {include file='r/input.tpl' name="staffadmin_email" title="staffadmin_email" collapse='formcoll' class="" type="email" maxlength=100}

    {include file='r/input.tpl' name="staffadmin_insurance_no" title="staffadmin_insurance_no" collapse='formcoll' class="" maxlength=25}
    {include file='r/date.tpl' name="staffadmin_birthday" title="staffadmin_birthday" collapse='formcoll' class="dateUS"}

    {include file='r/date.tpl' name="staffadmin_start_date" title="staffadmin_start_date2" collapse='formcoll' class="dateUS"}
    {include file='r/date.tpl' name="staffadmin_end_date" title="staffadmin_end_date2" collapse='formcoll' class="dateUS"}

    {*X3* include file='r/input.tpl' name="staffadmin_gross_hourly_wage" title="staffadmin_gross_hourly_wage" 
        class="required numberi18n calculator" add_icons_file="help_project_evaluation_fca" *}
        
    {include file='r/select.tpl' name="staffadmin_company" title="staffadmin_company" 
        list=$company_list id="id" text="name" collapse='formcoll' class=""}
    {include file='r/select.tpl' name="staffadmin_staff_location" title="staffadmin_staff_location" 
        list=$staff_locations_list id="id" text="name" collapse='formcoll' class="required" noempty=TRUE}

    {include file='r/input.tpl' name="staffadmin_abbreviation" title="staffadmin_abbreviation" collapse='formcoll' class="" maxlength=10}
    {include file='r/input.tpl' name="staffadmin_direct_dial" title="staffadmin_direct_dial" collapse='formcoll' class="" maxlength=50}
</fieldset>

<fieldset class="borderbottom">
    {include file='r/input.tpl' name="staffadmin_account_no" title="staffadmin_account_no" collapse='' class="t-mid" maxlength=150}
    {include file='r/input.tpl' name="staffadmin_bank_name" title="staffadmin_bank_name" collapse='formcoll' class="t-mid" maxlength=40}
    {include file='r/input.tpl' name="staffadmin_bank_code" title="staffadmin_bank_code" collapse='formcoll' class="" maxlength=20}
</fieldset>

<fieldset class="borderbottom">
    {include file='r/input.tpl' name="staffadmin_annex" title="staffadmin_annex" collapse='' class="t-mid" maxlength=255}

    {include file='r/select.tpl' name="staffadmin_holiday_rate" title="staffadmin_holiday_rate" 
        list=$holiday_rate_list id="id" text="name" collapse='formcoll' class="required"}
    {include file='r/checkbox.tpl' name="staffadmin_exclude_from_turnover" title="staffadmin_exclude_from_turnover" 
        collapse='formcoll' labelclass="label3"}

    {*X3* if empty($cost_centres_list)}
        <!-- Empty cost_centres_list -->
    {else}
        {include file='r/select.tpl' name="staffadmin_cost_centre" title="staffadmin_cost_centre" 
            list=$cost_centres_list id="id" text="name"}
            { *  collapse='formcoll' * }
        { * include file='r/checkbox.tpl' name="staffadmin_cost_centre_present" title="staffadmin_cost_centre_present"
            collapse='formcoll' labelclass="label3" * }
    {/if *}
</fieldset>

<fieldset class="noborder">    
    {include file='r/textarea.tpl' name="staffadmin_remark" title="staffadmin_remark" class="t-long"}
    {include file='r/file.tpl' name="staffadmin_photo_file" title="staffadmin_photo_file" targettype="image" targetdata="staff"}
</fieldset>

{include file='Basic/edit_popform_addi.tpl' edit_addi_list=$staffadmin_addi_list  
    edit_addi_section='staffadmin' edit_addi_target='staff' edit_addi_collapse='formcoll'}
