<div class="modal" id="absence-vacation" role="dialog" aria-hidden="true">
    <div class="modal-dialog ta-modal-size">
        <div class="modal-content">
            <div class="modal-header">
                <form id="AbsenceRestState" action="@Url.Action("SubmitVacationPAASForm", "TimeRecords")" method="post">
                    <input type="text" id="dialogResponse" name="DialogResponse" hidden />
                    <input type="text" id="dialogChecksum" name="DialogChecksum" hidden />

                    <div class="row" style="padding:0px 15px">
                        <div>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <h3 id="absence-control-modal-title">@Loc.Confirm</h3>
                        </div>

                        <div id="rest-state-message">

                        </div>

                        <div id="rest-state-buttons">
                            <button type="button" id="absence-vacation-yes" class="btn btn-primary pull-right" onclick="submitVacationForm(this)"><i class="fa fa-check m-r-xs"></i>@Loc.Confirm</button>
                            @*<button type="button" id="absence-vacation-no" class="btn btn-link pull-right" onclick="submitVacationForm(this)"><i class="fa fa-times m-r-xs text-primary"></i>@Loc.No</button>*@
                        </div>
                    </div>
                </form>

            </div>
        </div>
    </div>
</div>

<div class="modal" id="absence-planned-working-hours" role="dialog" aria-hidden="true">
    <div class="modal-dialog ta-modal-size absence-control-modal">
        <div class="modal-content">
            <div class="modal-header">
                <form id="NoWorkPlan" action="@Url.Action("SubmitAbsencePAASForm", "TimeRecords")" method="post">
                    <input type="text" id="jobId" name="jobId" hidden />
                    <input type="text" id="form-result" name="Result" hidden />
                    <div class="row" style="padding:0px 15px">
                        <div>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <a id="no-work-plan-help-url" href="@Loc.NoWorkPlanHelpUrl"
                               target="_blank" class="pull-right m-r-sm default-icon-color"><i class="fa fa-question"></i></a>
                            <h3 id="absence-modal-title"></h3>
                            <p>@Loc.NoWorkPlanAndAbsenceExistMessage</p>
                        </div>

                        <table class="table table-bordered absence-control-table" role="grid" id="no-work-plan">
                            <thead>
                                <tr>
                                    <th><input type="checkbox" class="toggle-checkboxes" onclick="toggleCheckboxes();" /></th>
                                    <th>@Loc.EmployeeTR</th>
                                    <th>@Loc.DateFrom</th>
                                    <th>@Loc.DateTo</th>
                                    <th class="absence-midnight hidden">@Loc.Note</th>
                                    <th class="absence-midnight hidden">@Loc.ErrorType</th>
                                </tr>
                            </thead>
                            <tbody>
                            </tbody>
                        </table>

                        <div id="absence-form-buttons">
                            @*<button type="button" id="confirm-form" data-dismiss="modal" class="btn btn-primary pull-right" onclick="setFormResult(this);submitAbsenceForm()"><i class="fa fa-check m-r-xs"></i><span></span></button>
                            <button type="button" id="cancel-form" data-dismiss="modal" class="btn btn-link pull-right" onclick="setFormResult(this);submitAbsenceForm()"><i class="fa fa-times m-r-xs text-primary"></i><span></span></button>*@
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<div class="modal" id="absence-already-exists" role="dialog" aria-hidden="true">
    <div class="modal-dialog ta-modal-size">
        <div class="modal-content">
            <div class="modal-header">
                <form id="AbsenceExist" action="" method="post" @*class="hidden"*@>
                    <div class="row" style="padding:0px 15px">
                        <div>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <a id="absence-exist-help-url" href="@Loc.AbsenceExistHelpUrl"
                               target="_blank" class="pull-right m-r-sm default-icon-color"><i class="fa fa-question"></i></a>
                            <h3 id="absence-control-modal-title">@Loc.AbsenceExistHeader</h3>
                            <p>@Loc.NoWorkPlanAndAbsenceExistMessage</p>
                        </div>

                        <table class="table table-bordered absence-control-table" role="grid" id="absence-exist">
                            <thead>
                                <tr>
                                    <th><input type="checkbox" class="toggle-checkboxes" onclick="toggleCheckboxes();" /></th>
                                    <th>@Loc.EmployeeTR</th>
                                    <th>@Loc.DateFrom</th>
                                    <th>@Loc.DateTo</th>
                                    <th>@Loc.Name</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td><input type="checkbox" class="modal-checkbox" /></td>
                                    <td>Babic Janez</td>
                                    <td>03.08.2022</td>
                                    <td>03.08.2022</td>
                                    <td>Boleznine nad 30 dni 0,8</td>
                                </tr>
                                <tr>
                                    <td><input type="checkbox" class="modal-checkbox" checked /></td>
                                    <td>Bizjak Marko</td>
                                    <td>03.08.2022</td>
                                    <td>03.08.2022</td>
                                    <td>Boleznine nad 30 dni 0,8</td>
                                </tr>
                            </tbody>
                        </table>

                        <div id="absence-exist-buttons">
                            <button type="button" id="absence-exist-overwrite" class="btn btn-primary pull-right" onclick=""><i class="fa fa-check m-r-xs"></i><span>@Loc.Overwrite</span></button>
                            <button type="button" id="absence-exist-complete" class="btn btn-primary pull-right m-r-xs" onclick=""><i class="fa fa-plus m-r-xs"></i>@Loc.Complete</button>
                            <button type="button" id="absence-exist-cancel" data-dismiss="modal" class="btn btn-link pull-right"><i class="fa fa-times m-r-xs text-primary"></i>@Loc.Cancel</button>
                        </div>
                    </div>
                </form>

            </div>
        </div>
    </div>
</div>

<div class="modal" id="multiplying-absences" role="dialog" aria-hidden="true">
    <div class="modal-dialog ta-modal-size">
        <div class="modal-content">
            <div class="modal-header">
                <form id="MultiplyingAbsences" action="" method="post" @*class="hidden"*@>
                    <div class="row" style="padding:0px 15px">
                        <div>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <a id="multiplying-absences-help-url" href="@Loc.MultiplyingAbsencesHelpUrl"
                               target="_blank" class="pull-right m-r-sm default-icon-color"><i class="fa fa-question"></i></a>
                            <h3 id="absence-control-modal-title">@Loc.MultiplyingAbsencesHeader ?Tip?</h3>
                            <p>@Loc.MultiplyingAbsencesMessage</p>
                        </div>

                        <table class="table table-bordered absence-control-table" role="grid" id="multiplying-absences">
                            <thead>
                                <tr>
                                    <th><input type="checkbox" class="toggle-checkboxes" onclick="toggleCheckboxes();" /></th>
                                    <th>@Loc.EmployeeTR</th>
                                    <th>@Loc.DateFrom</th>
                                    <th>@Loc.DateTo</th>
                                    <th>@Loc.Note</th>
                                    <th>@Loc.ErrorType</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td><input type="checkbox" class="modal-checkbox" /></td>
                                    <td>Babic Janez</td>
                                    <td>03.08.2022</td>
                                    <td>03.08.2022</td>
                                    <td>Delavec nima vpisanega planiranega delovnega časa</td>
                                    <td>Opozorilo</td>
                                </tr>
                                <tr>
                                    <td><input type="checkbox" class="modal-checkbox" checked /></td>
                                    <td>Bizjak Marko</td>
                                    <td>03.08.2022</td>
                                    <td>03.08.2022</td>
                                    <td>Delavec nima vpisanega planiranega delovnega časa</td>
                                    <td>Opozorilo</td>
                                </tr>
                            </tbody>
                        </table>

                        <div id="multiplying-absences-buttons">
                            <button type="button" id="multiplying-absences-continue" class="btn btn-primary pull-right" onclick=""><i class="fa fa-check m-r-xs"></i><span>@Loc.Continue</span></button>
                            <button type="button" id="multiplying-absences-print-errors" class="btn btn-link pull-right" onclick=""><i class="far fa-print m-r-xs text-primary"></i>@Loc.PrintErrors</button>
                            <button type="button" id="multiplying-absences-cancel" data-dismiss="modal" class="btn btn-link pull-right"><i class="fa fa-times m-r-xs text-primary"></i>@Loc.Cancel</button>
                        </div>
                    </div>
                </form>

            </div>
        </div>
    </div>
</div>