<fieldset class="borderbottom">
    {include file='r/hidden.tpl' name="holidayadmin_edit"}{* What entry do we edit - If empty = add *}
    {include file='r/hidden.tpl' name="holidayadmin_staff"}{* Staff ID *}
    <div class="hlyd_hide_for_increase">
        {include file='r/datefromto.tpl' name="holidayadmin_date" title="holidayadmin_dates" class="required dateUS hlyd_dateselect"}
        <div id="holidayadmin_date_warn"></div>
    </div>
</fieldset>
<fieldset class="noborder">
    {include file='r/input.tpl' name="holidayadmin_days" title="holidayadmin_holidays" class="required numberi18n hlyd_days_comp" collapse='formcoll'}
    {include file='r/view.tpl' name="holidayadmin_real_days" title="holidayadmin_real_days" class="numberi18n hlyd_days_comp" collapse='formcoll'}
</fieldset>
<fieldset class="noborder">
    {include file='r/textarea.tpl' name="holidayadmin_comment" title="holidayadmin_purpose" class="required t-long" maxlength=195}
</fieldset>
<fieldset class="noborder hlyd_hide_for_increase">
    {include file='r/radio.tpl' name="holidayadmin_type" title="holidayadmin_type" list=$type_list id="id" text="name" class="required" collapse='formcoll'}
    {include file='r/checkbox.tpl' name="holidayadmin_absent_social" title="holidayadmin_absent_social_yes" collapse='formcoll'}
</fieldset>
<fieldset class="noborder">
    {include file='r/select-project.tpl' name="holidayadmin_project" title="holidayadmin_project" class="like_is_project required"
        list=$projects_list id="id" text="project" noempty=TRUE
        add_icons_file="project_active"
        default=$vacation_project_id
        filter_favourite_list=$projects_favourite_list}
</fieldset>
<fieldset class="bordertop hlyd_hide_for_increase">
    {include file='r/input-holidaystatus.tpl' name="holidayadmin_status" title="holidayadmin_status" readonly=!$user_can_approve}
    
    {if $has_right_appointments}
        <p class="formstyle collapse" style="display: none">
        {include file="r/parts/pre_field.tpl" title=FALSE}
        <label for="holidayadmin_add_to_persapp" class="label3">
            {include file="r/checkbox-only.tpl"
                class="" name="holidayadmin_add_to_persapp"}
            {$i.holidayadmin_add_to_persapp}
        </label>        
        </p>     
    {/if}   
</fieldset>