@model PantheonRA.BackOffice.Models.TimeRecordRequestViewModel
@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.TaRequestModal.TimeRecordsFilterData)

            <div class="project-list mobile-content">
                <div class="document-list-no-footer">
                    <table id="calendar-approve-table"
                           data-grid-id="time-record-request"
                           data-url="@Url.Action("CalendarRequestList", "TimeRecordRequests")"
                           data-newid="@Model.NewId"
                           class="list-table">
                        <thead>
                            <tr>
                                <th>@Loc.ClaimType</th>
                                <th>@Loc.RequestDate</th>
                                <th>@Loc.TaBegin</th>
                                <th>@Loc.TaEnd</th>
                                <th>@Loc.Comment (@Loc.EmployeeTR)</th>
                                <th>@Loc.Comment (@Loc.Leader)</th>
                                <th>@Loc.Status</th>
                            </tr>
                        </thead>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

@Html.Partial("_NewRequestModal", Model.TaRequestModal)
@Html.Partial("~/Views/TimeRecords/_NoteModal.cshtml")
@Html.Partial("_WFRequestModal")

@Html.Hidden("InProgress", Loc.InCertification)
@Html.Hidden("Approved", Loc.Approved)
@Html.Hidden("Rejected", Loc.Rejected)
@Html.Hidden("Notified", Loc.Notified)
@Html.Hidden("Confirm", Loc.Confirm)
@Html.Hidden("TimeStartGreaterThanTimeEnd", Loc.TimeStartGreaterThanTimeEnd)
@Html.Hidden("DateStartGreaterThanDateEnd", Loc.DateStartGreaterThanDateEnd)
@Html.Hidden("TimeStartCannotBeEmpty", Loc.TimeStartCannotBeEmpty)
@Html.Hidden("TimeEndCannotBeEmpty", Loc.TimeEndCannotBeEmpty)

@Html.Hidden("InProgressValue", CalendarApproveStatus.InProgress)
@Html.Hidden("ApprovedValue", CalendarApproveStatus.Approved)
@Html.Hidden("RejectedValue", CalendarApproveStatus.Rejected)
@Html.Hidden("NotifiedValue", CalendarApproveStatus.Notified)
@Html.Hidden("WFAbsenceIDExist", Model.IsWFAbsenceExist)

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