@model PantheonRA.BackOffice.Models.TimeAttendanceViewModel
@using PantheonRA.WebApi.Contracts.Enums;

@{
    ViewBag.Title = "Index";
}
<div class="wrapper wrapper-content">
    <div class="tabs-container">

        @Html.Partial("~/Views/TimeRecords/_TabNavigation.cshtml")
        @Html.Partial("_TabButtons")

        <div class="mobile-scroll-wrapper">

            @Html.Partial("_FilterForm", Model)

            <div class="tab-content mobile-content">
                <div class="divided-content" style="margin-right: 15px;">
                    <div class="modul-bg">
                        <div class="row">
                            <div class="col-md-12">
                                <div id="AttendanceRecordsID" class="time-attendance-records attendance timeattendance-static-header">
                                    @Html.Partial("_Records", Model)
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

@Html.Partial("~/Views/TimeRecords/_NewRecordModal.cshtml", Model.TimeRecordModalViewModel)

@Html.Hidden("Confirm", Loc.Confirm)
@Html.Hidden("Cancel", Loc.Cancel)
@Html.Hidden("DeleteWorkObligation", Loc.DeleteWorkObligation)
@Html.Hidden("DeleteAbsence", Loc.DeleteAbsence)
@Html.Hidden("CreateNewRecordsError", Loc.CreateNewRecordsError)
@Html.Hidden("RecordAdded", Loc.RecordAdded)
@Html.Hidden("TimeStartGreaterThanTimeEnd", Loc.TimeStartGreaterThanTimeEnd)
@Html.Hidden("TimeRecordsUrl", Url.Action("Index", "TimeRecords"))
@Html.Hidden("DeleteRecord", Url.Action("DeleteRecord", "TimeRecords"))
@Html.Hidden("EntryTypeNumber", TimeRecordRequestTypes.WorkObligations)
@Html.Hidden("AbsenceTypeNumber", TimeRecordRequestTypes.Absences)
@Html.Hidden("Worker", Model.TimeRecordModalViewModel.Worker);
@Html.Hidden("DaysForChangePermission", 30);
@Html.Hidden("TimeStartCannotBeEmpty", Loc.TimeStartCannotBeEmpty)
@Html.Hidden("TimeEndCannotBeEmpty", Loc.TimeEndCannotBeEmpty)
@Html.Hidden("DateStartGreaterThanDateEnd", Loc.DateStartGreaterThanDateEnd)
@Html.Hidden("Picture", Loc.Picture)


@section pageScripts{
    @Scripts.Render("~/bundles/validation")
    <script src="~/Scripts/custom/initializers.js"></script>
    @Scripts.Render("~/bundles/timeattendance")
}