Index.cshtml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. <table class="table">
  12. <tr>
  13. <th>
  14. @Html.DisplayNameFor(model => action_model.Nom)
  15. </th>
  16. <th></th>
  17. </tr>
  18. @foreach (ActionEdu item in Model.Obj.ActionsEdu.OrderBy(a => a.Ordre))
  19. {
  20. <tr>
  21. <td>
  22. @Html.DisplayFor(modelItem => item.Nom)
  23. </td>
  24. <td>
  25. Collèges concernés: @item.ActionsEduColleges.Count()
  26. <a href="@Url.Action("Voir", new { id = item.Id })">
  27. <span class="glyphicon glyphicon-plus-sign fa-2x color1" title="Voir" style="vertical-align: middle" aria-hidden="true"></span>
  28. </a>
  29. </td>
  30. </tr>
  31. }
  32. </table>
  33. <h3>Administration</h3>
  34. <ul>
  35. <li>@Html.ActionLink("Les axes", "Index", "ActionEduAxes")</li>
  36. <li>@Html.ActionLink("Les thématiques", "Index", "ActionEduThematiques")</li>
  37. <li>@Html.ActionLink("Les actions " + @Model.Annee_Lib, "Index", "ActionsEdu", new { annee_id = Model.Obj.Id }, null)</li>
  38. </ul>