{strip}
{if $show_title}
    <h3>{$i.work_input_times_threshold}</h3>
{/if}
<table class="threshold_border">
    <thead>
        <tr>
            <th scope="col">{$i.work_input_project}</th>
            <th scope="col">{$i.work_input_package}</th>
            <th scope="col">{$i.work_input_times_is}</th>
            <th scope="col">{$i.work_input_times_threshold_h}</th>
            {if $w_first->show_end_rest_on_threshold eq TRUE}
                <th scope="col">{$i.work_input_planned_hours}</th>
                <th scope="col">{$i.work_input_times_rest}</th>
                <th scope="col">{$i.work_input_times_end_date}</th>
            {/if}
        </tr>
    </thead>
    <tbody>
        {foreach from=$warnings item='warning'}
            <tr>
                <td>{$warning->projectstr}</td>
                <td>{$warning->packagestr}</td>
                <td>{$warning->sum_hours|string_format:"%.2f"}</td>
                <td>{$warning->budget_threshold*100|string_format:"%.2f"}%</td>
                {if $warning->show_end_rest_on_threshold eq TRUE}
                    <td>{$warning->budget_planned_hours|string_format:"%.2f"}</td>
                    <td>{$warning->budget_planned_hours-$warning->sum_hours|string_format:"%.2f"}</td>
                    <td>{$warning->end_datestr}</td>
                {/if}
            </tr>
        {/foreach}
    </tbody>
</table>
{/strip}