@model PantheonRA.BackOffice.Models.TimeRecordViewModel

@{
    ViewBag.Title = "Index";
}

<input id="time-record-to-focus" type="hidden" />

<div class="wrapper wrapper-content">
    <div class="tabs-container">

        @Html.Partial("_TabNavigation")

        @Html.Partial("_TabButtons", Model.UserPermissions)

        @Html.Partial("_EntryTypeButtons", Model)
        
        <div class="mobile-scroll-wrapper">

            @Html.Partial("_FilterForm", Model)

            <div class="tab-content timerecords-scroll mobile-content">
                <div class="divided-content">
                    <div class="modul-bg">
                        <div class="row">
                            <div class="col-md-12">

                                @Html.Partial("_GridSettings", Model)

                                <div id="RecordsID" class="time-records">
                                    
                                    @Html.Partial("_Records", Model)

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

@Html.Partial("_HelperValues", Model)
@Html.Partial("~/Views/TimeRecordRequests/_NewRequestModal.cshtml", Model.TaRequestModal)
@Html.Partial("_NewRecordModal", Model.TimeRecordModalViewModel)
@Html.Partial("_AbsenceControlModal")
@Html.Partial("_NoteModal")
@Html.Partial("_EntryTypeModal", Model.EntryTypes)
@Html.Partial("_IRIS", Model.EntryTypes)

@section pageScripts{
    @Scripts.Render("~/bundles/validation")
    <script src="~/Scripts/jquery.stopwatch.js"></script>
    <script src="~/Scripts/custom/initializers.js"></script>
    <script>var _tooltip = jQuery.fn.tooltip;</script>
    <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
    <script>jQuery.fn.tooltip = _tooltip;</script>
    <!-- jQuery UI Touch Punch -->
    <script src="~/Scripts/jquery.ui.touch-punch.js"></script>
    <!-- jQuery UI Touch Punch -->
    @Scripts.Render("~/bundles/timerecords")
}