@using System.Web.UI.HtmlControls @using System.Web.UI.WebControls @using RSystem.Models @model Dictionary> @{ ViewBag.Title = "Panel rekrutacyjny"; }
@ViewBag.Title @Html.ActionLink("Rozpocznij rekrutacje", "ChooseSpecialization", "Recrutation",new {area="Admin"}, new { @class = "recrutation-button pull-right" })
@foreach (var faculty in Model) {
@faculty.Key.Name
@foreach (var specialization in faculty.Value) { }
Kierunek/Specialność Termin zakończenia Liczba przyjętych Próg punktowy Lista przyjętych
@specialization.Name (@specialization.Faculty.Abbrevation)
@specialization.Description
@specialization.Deadline.ToString("dd-MM-yyyy") @getAmountOfAcceptedRecruit(@specialization) 0 @Html.ActionLink("Zobacz listę", "StudentsList", new { specializationId = @specialization.SpecializationId })
}
@section DedicatedStyles { } @functions { string getAmountOfAcceptedRecruit(Specialization specialization) { return (specialization.AcceptedRecruits?.Count() ?? 0).ToString() + "/" + specialization.LimitOfPlaces; } }