@model PantheonRA.WebApi.Contracts.EvaluationData
@using PantheonRA.WebApi.Contracts.Enums;

@{
    ViewBag.Title = Loc.Evaluation;
    DateTime currentDate = DateTime.Now;
    var filterStartDate = new DateTime(currentDate.Year - 1, currentDate.Month, currentDate.Day);
    var filterEndDate = DateTime.Now;
}

@Html.Hidden("EvaluationsUrl", Url.Action("Evaluations", "Evaluation"))
@Html.Hidden("GradeFinished", Loc.Evaluated)
@Html.Hidden("GradeInProgress", Loc.InWork)
@Html.Hidden("Finished", EvaluationStatus.Finished)
@Html.Hidden("InProgress", EvaluationStatus.InProgress)
@Html.Hidden("Leader", Loc.Leader)

<div class="wrapper wrapper-content">
    <div class="tabs-container">
        @Html.Partial("_EvaluationTabNavigation")
        <div class="tab-content">
            @Html.Partial("_EvaluationButtons")
            <div class="divided-content">
                <div class="divided-content-main evaluation-main">

                    @Html.Partial("_EvaluationFilters")
                    <div class="divided-content-scrollable">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="panel-group" id="evaluation-accordion" role="tablist" aria-multiselectable="true">
                                    <div id="evaluations">
                                        @Html.Partial("_Evaluations", Model.PrsnEvalutions)
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="divided-content-side">
                    <div class="tabs-container">
                        <ul class="nav nav-tabs horizontal-menu ">
                            <li class="active divided-tab-1">
                                <a data-toggle="tab" href="#home" class="local-tab">@Loc.Employees</a>
                            </li>
                        </ul>
                    </div>

                    <div class="tab-content" style="padding:0px">
                        <div id="home" class="tab-pane fade in active">
                            <table id="side-employee-table"
                                   data-url="@Url.Action("GetWorkers", "Evaluation")"
                                   data-details-url="@Url.Action("Evaluations", "Evaluation")"
                                   class="list-table side-employees-table">
                                <thead>
                                    <tr>
                                        <th><input id="Keywords" class="form-control search-input" placeholder="@Loc.SearchFilter" autocomplete="off" />
                                    </tr>
                                </thead>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

@Html.Partial("_NoteModal")

@section pageScripts{
    @Scripts.Render("~/bundles/validation")
    <script src="~/Scripts/custom/initializers.js"></script>
    <script src="~/Scripts/custom/employees/evaluation.js"></script>
    <script>
        $(document).ready(function () {
            initializeSidebarEmployeesWithGrades('@Model.Worker');
        });
    </script>
}