Index.cshtml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. @using CD67.FicheCollege.MVC.Models
  2. @model AnneeViewModel
  3. <title>Actions @Model.Annee_Lib</title>
  4. @{
  5. ViewBag.Title = "Actions " + @Model.Annee_Lib;
  6. Layout = "~/Views/Shared/_Layout.cshtml";
  7. ActionEdu action_model = new ActionEdu();
  8. }
  9. <h2>Index</h2>
  10. <h3>Affectation</h3>
  11. @foreach (ActionEdu item in Model.Obj.ActionsEdu.OrderBy(a => a.Ordre))
  12. {
  13. <div>
  14. @Html.DisplayFor(modelItem => item.ActionEduThematique.ActionEduAxe.Nom)
  15. @Html.DisplayFor(modelItem => item.ActionEduThematique.Nom)
  16. @Html.DisplayFor(modelItem => item.Nom)
  17. <i>Collèges concernés: @item.ActionsEduColleges.Count()</i>
  18. <a href="@Url.Action("Details", new { id = item.Id })">
  19. <span class="glyphicon glyphicon-plus-sign fa-2x color1" title="Voir" style="vertical-align: middle" aria-hidden="true"></span>
  20. </a>
  21. </div>
  22. }
  23. <h3>Administration</h3>
  24. <ul>
  25. <li>@Html.ActionLink("Les axes", "Index", "ActionEduAxes")</li>
  26. <li>@Html.ActionLink("Les thématiques", "Index", "ActionEduThematiques")</li>
  27. </ul>