Index.cshtml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. @using CD67.FicheCollege.MVC.Models
  2. @model AnneeViewModel
  3. @{
  4. ViewBag.Title = "Liste";
  5. Layout = "~/Views/Shared/_Layout.cshtml";
  6. College college_model = new College();
  7. }
  8. <header>
  9. <h2>Les collèges @Model.Annee_Lib</h2>
  10. <span>
  11. <a href="@Url.Action("Create", new { annee_id = Model.Obj.Id })"> <span class="glyphicon glyphicon-plus-sign color1"></span> Nouveau collège</a>
  12. <a href="@Url.Action("Index", "TypeCollege")"> <span class="glyphicon glyphicon-cog color1"></span> Types de collège</a>
  13. <a href="@Url.Action("Index", "Territoire")"> <span class="glyphicon glyphicon-cog color1"></span> Territoires</a>
  14. </span>
  15. </header>
  16. <table class="table">
  17. <caption> </caption>
  18. <tr>
  19. <th>
  20. @Html.DisplayNameFor(model => college_model.Id)
  21. </th>
  22. <th>
  23. @Html.DisplayNameFor(model => college_model.Libelle)
  24. </th>
  25. <th>
  26. @Html.DisplayNameFor(model => college_model.Adresse)
  27. </th>
  28. <th>
  29. @Html.DisplayNameFor(model => college_model.CDC)
  30. </th>
  31. <th>
  32. @Html.DisplayNameFor(model => college_model.Tel)
  33. </th>
  34. <th>
  35. @Html.DisplayNameFor(model => college_model.Fax)
  36. </th>
  37. <th>
  38. @Html.DisplayNameFor(model => college_model.Email)
  39. </th>
  40. <th>
  41. @Html.DisplayNameFor(model => college_model.Territoire.Libelle)
  42. </th>
  43. <th>
  44. @Html.DisplayNameFor(model => college_model.TypeCollege.Libelle)
  45. </th>
  46. </tr>
  47. @foreach (College college in Model.Obj.Colleges) {
  48. <tr>
  49. <td>
  50. @Html.ActionLink(college.CodeRne.ToString(), "Details", new { id = college.Id })
  51. </td>
  52. <td>
  53. @Html.ActionLink(college.Libelle.ToString(), "Details", new { id = college.Id })
  54. </td>
  55. <td>
  56. @Html.DisplayFor(modelcollege => college.AdresseComplete)
  57. </td>
  58. <td>
  59. @Html.DisplayFor(modelcollege => college.CDC)
  60. </td>
  61. <td>
  62. @Html.DisplayFor(modelcollege => college.Tel)
  63. </td>
  64. <td>
  65. @Html.DisplayFor(modelcollege => college.Fax)
  66. </td>
  67. <td>
  68. @Html.DisplayFor(modelcollege => college.Email)
  69. </td>
  70. <td>
  71. @Html.DisplayFor(modelcollege => college.Territoire.Libelle)
  72. </td>
  73. <td>
  74. @Html.DisplayFor(modelcollege => college.TypeCollege.Libelle)
  75. </td>
  76. </tr>
  77. }
  78. </table>