@using RSystem.Models @model IEnumerable @{ ViewBag.Title = "Twoje kierunki"; }
@Html.ActionLink("Dodaj kierunek","AddPreference","Home",new{area="Recruit"},new {@class="add-button"})

Wybrane kierunki

@foreach (var p in Model) { }
Kierunek/Specialność Termin zakończenia Opłata rekrutacyjna Czy opłacony Operacje Punkty Status
#@p.Priority @p.Specialization.Name (@p.Specialization.Faculty.Abbrevation)
@p.Specialization.Description
@p.Specialization.Deadline.ToString("dd'.'MM'.'yyyy") @p.Specialization.Price zl @ConfirmationIcon(p.Paid) @using (Html.BeginForm("Preferences", "Home", FormMethod.Post, new { @class = "js-delete" })) { @Html.AntiForgeryToken() @Html.Hidden("RecruitPreferenceId", p.RecruitPreferenceId) } @p.Points @ContentForStatus(p.Status)
@section DedicatedStyles { } @section scripts { } @functions { public string ClassForStatus(RecrutationStatus status) { if (status == RecrutationStatus.Accepted) return "color-accepted"; else if (status == RecrutationStatus.Rejected) return "color-rejected"; return "color-standby"; } public string ContentForStatus(RecrutationStatus status) { if (status == RecrutationStatus.Accepted) return "Przyjęty"; else if (status == RecrutationStatus.Rejected) return "Odrzucony"; return "Oczekuje"; } } @helper ConfirmationIcon(bool b){ if (b) { @:
} else { @:
} }