<form id="work_input_overtime_form" onsubmit="return false;" action="">
    {if $is_q_plan !== true}
    <div class="ui-dialog-left-menu-big ui-corner-all">
        <p style="text-align:center;">
            <span onclick="work_input_times.overtime.close()" class="dialog_make_btn32 close smallbtns ui-corner-all" title="{$i.basic_cancel}"></span>
            <span onclick="work_input_times.overtime.save()" class="dialog_make_btn32 ok smallbtns ui-corner-all" title="{$i.basic_save}"></span>
        </p>
    </div>
    {/if}
    <div class="ui-dialog-main-big">
        <div class="ui-dialog-maxheight-scroll">
            <fieldset class="sepnext noborder">
                {include file='r/view.tpl' name="work_input_overtime_day" title="work_input_overtime" class="numberi18n" default=$work_input_overtime_day}
                {include file='r/view.tpl' name="work_input_overtime_already" title="work_input_overtime_already" class="numberi18n" default=$work_input_overtime_already}
                {include file='r/view.tpl' name="work_input_overtime_day_rest" title="work_input_overtime_rest" class="numberi18n" default=$work_input_overtime_day_rest}
            </fieldset>
            <fieldset class="noborder">
                <table>
                    <thead>
                        <tr>
                            <th scope="col">{$i.work_input_overtime_type}</th>
                            <th scope="col">{$i.work_input_overtime_rate}</th>
                            <th scope="col">{$i.work_input_overtime_number}</th>
                            <th scope="col">{$i.work_input_overtime_project}</th>
                            <th scope="col">{$i.work_input_overtime_storage}</th>
                        </tr>
                    </thead>
                    <tbody>
                        {foreach from=$work_input_overtime_list item=overtime}
                            <tr>
                                <td>{$overtime->name|truncate:50|escape:'html'}</td>
                                <td>{$overtime->ratestr}</td>
                                <td>{include file='r/table_input.tpl' name="work_input_overtime_day_hours" uniqueid=$overtime->rate_id 
                                    class="numberi18n overtime-hours" 
                                    default=$overtime->numberstr script='onkeyup="work_input_times.overtime.recalc()"'}</td>
                                <td>{include file='r/table_select-project.tpl' name="work_input_overtime_projects" uniqueid=$overtime->rate_id 
                                    class="is_project in_table" add_icons_file='project' 
                                    list=$projects_list id="id" text="project" default=$overtime->project_id}</td>
                                <td>{include file='r/table_input.tpl' name="work_input_overtime_storages" uniqueid=$overtime->rate_id 
                                    default=$overtime->storage maxlength=100}</td>
                            </tr>
                        {foreachelse}
                            <tr>
                                <td colspan="5">{$i.basic_no_result1}</td>
                            </tr>
                        {/foreach}
                    </tbody>                
                </table>
                <input type="hidden" name="work_input_overtime_date" value="{$work_input_overtime_date}" />
            </fieldset>
        </div>
    </div>
</form>