| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- @using CD67.FicheCollege.MVC.Models
- @model AnneeViewModel
- <title>Actions @Model.Annee_Lib</title>
- @{
- ViewBag.Title = "Actions " + @Model.Annee_Lib;
- Layout = "~/Views/Shared/_Layout.cshtml";
- ActionEdu action_model = new ActionEdu();
- int cur_axe_id = -1;
- int cur_th_id = -1;
- }
- <header>
- <h2>Les Actions</h2>
- <span>
- <a href="@Url.Action("Index", "ActionEduAxes")"> <span class="glyphicon glyphicon-cog color1"></span> Axes</a>
- <a href="@Url.Action("Index", "ActionEduThematiques")"> <span class="glyphicon glyphicon-cog color1"></span> Thématiques</a>
- </span>
- </header>
- <div class="action-edu-tree">
- @foreach (ActionEdu item in Model.Obj.ActionsEdu.OrderBy(a => a.ActionEduThematique.ActionEduAxe.Ordre).ThenBy(a => a.ActionEduThematique.Ordre).ThenBy(a => a.Ordre))
- {
- if (item.ActionEduThematique.ActionEduAxe.Id != cur_axe_id){
- cur_axe_id = item.ActionEduThematique.ActionEduAxe.Id;
- <h3>@item.ActionEduThematique.ActionEduAxe.Nom</h3>
- }
- if (item.ActionEduThematique.Id != cur_th_id)
- {
- cur_th_id = item.ActionEduThematique.Id;
- <h4>@item.ActionEduThematique.Nom</h4>
- }
- <div class="action-edu-item">
- <span>
- <a href="@Url.Action("Details", new { id = item.Id })">@Html.DisplayFor(modelItem => item.Numero) - @Html.DisplayFor(modelItem => item.Nom)</a>
- </span>
- <i>Collèges concernés: @item.ActionsEduColleges.Count()</i>
- </div>
- }
- </div>
|