Index.cshtml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 class="start-trace" href="@Url.Action("Index", "TypeCollege")"> <span class="glyphicon glyphicon-cog color1"></span> Types de collège</a>
  13. <a class="start-trace" href="@Url.Action("Index", "Territoire")"> <span class="glyphicon glyphicon-cog color1"></span> Territoires</a>
  14. </span>
  15. </header>
  16. <table id="table-colleges" class="datatable table">
  17. <thead>
  18. <tr>
  19. <th>
  20. RNE
  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. </thead>
  48. <tbody>
  49. @foreach (College college in Model.Obj.Colleges) {
  50. <tr data-url="@Url.Action("Details", new { id = college.Id })">
  51. <td>
  52. @Html.DisplayFor(modelcollege => college.CodeRne)
  53. </td>
  54. <td>
  55. @Html.DisplayFor(modelcollege => college.Libelle)
  56. <noscript>
  57. @Html.ActionLink(" > Voir", "Details", new { id = college.Id })
  58. </noscript>
  59. </td>
  60. <td>
  61. @Html.DisplayFor(modelcollege => college.AdresseComplete)
  62. </td>
  63. <td>
  64. @Html.DisplayFor(modelcollege => college.CDC)
  65. </td>
  66. <td>
  67. @Html.DisplayFor(modelcollege => college.Tel)
  68. </td>
  69. <td>
  70. @Html.DisplayFor(modelcollege => college.Fax)
  71. </td>
  72. <td>
  73. @Html.DisplayFor(modelcollege => college.Email)
  74. </td>
  75. <td>
  76. @Html.DisplayFor(modelcollege => college.Territoire.Libelle)
  77. </td>
  78. <td>
  79. @Html.DisplayFor(modelcollege => college.TypeCollege.Libelle)
  80. </td>
  81. </tr>
  82. }
  83. </tbody>
  84. </table>