<p class="formstyle" style="margin-bottom: 5px;">
    <span style="padding-right: 0.5em;">{$i.holidayadmin_type}:</span>
    {if $vacation->is_absent}
        {if $vacation->is_absent_social}
            {include file='r/view-only.tpl' name="type1" default=$i.holidayadmin_absent_social_yes}
        {else}
            {include file='r/view-only.tpl' name="type1" default=$i.holidayadmin_absent_social_no}
        {/if}
    {/if}
    {if $vacation->type eq Vacations_model::TYPE_ABSENT}
        {include file='r/view-only.tpl' name="type2" default=$i.holidayadmin_type_absent}
    {else}
        {include file='r/view-only.tpl' name="type2" default=$i.holidayadmin_holiday}
    {/if}

    <span style="padding-left: 2em; padding-right: 0.5em;">{$i.basic_from}:</span>
    {include file='r/view-only.tpl' name="date_from" default=$vacation->start_date->us_date()}
    <span style="padding-left: 0.5em;">{$i.basic_to}:</span>
    {include file='r/view-only.tpl' name="date_to" default=$vacation->end_date->us_date()}
    
    <span style="padding-left: 2em; padding-right: 0.5em;">{$i.basic_days}:</span> {include file='r/view-only.tpl' name="date_to" default=float_to_usnumber(abs($vacation->days))}
</p>
{if $vacation->is_fully_old neq true}
    <p class="formstyle">
        <span style="padding-left: 11em; padding-right: 0.5em;">{$i.holidayadmin_add_until}:</span>
        {include file='r/view-only.tpl' name="date_from" default=$today}
    </p>
{/if}
{if $vacation->is_absent && !$vacation->is_absent_social}
    {include file='r/hidden.tpl' name='holidayadmin_add_to_workinput_work_package' default='0'}
    <p class="formstyle">
        <span style="font-size: 1.1em;">
        {if abs($vacation->days)>1}
            {$i.holidayadmin_overtime_add_full_days}.
        {else}
            {$i.holidayadmin_overtime_add_full_day}.
        {/if}
        </span>
    </p>
{else}
    {include file='r/hidden.tpl' name='holidayadmin_add_to_workinput_project_id' default=$vacation->project_id}
    
    {include file='r/view.tpl' name="holidayadmin_add_to_workinput_project_name" title="holidayadmin_project" default=$vacation->project}
    {include file='r/select.tpl' name='holidayadmin_add_to_workinput_work_package' title="filter_package"
        list=$work_packages id="id" text="full_name" noempty=TRUE 
        class="required"}
{/if}
{include file='r/hidden.tpl' name='holidayadmin_add_to_workinput_id' default=$vacation->id}

