Index.cshtml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. @using CD67.FicheCollege.MVC.Models
  2. @model AnneeViewModel
  3. @{
  4. ViewBag.Title = "Les Collèges " + Model.Annee_Lib;
  5. Layout = "~/Views/Shared/_Layout.cshtml";
  6. College college_model = new College();
  7. }
  8. <header>
  9. <h2>Les Collèges</h2>
  10. <span class="mask-ss">
  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("Import", new { annee_id = Model.Obj.Id })"> <span class="glyphicon glyphicon-import color1"></span> Importer depuis @Model.Obj.AnneePrecLib</a>
  13. <a class="start-trace" href="@Url.Action("Index", "TypeCollege")"> <span class="glyphicon glyphicon-cog color1"></span> Types de collège</a>
  14. <a class="start-trace" href="@Url.Action("Index", "Territoire")"> <span class="glyphicon glyphicon-cog color1"></span> Territoires</a>
  15. </span>
  16. </header>
  17. <table id="table-colleges" class="datatable table" data-order="[[ 1, &quot;asc&quot; ]]">
  18. <thead>
  19. <tr>
  20. <th data-priority="1">
  21. RNE
  22. </th>
  23. <th data-priority="2">
  24. @Html.DisplayNameFor(model => college_model.Libelle)
  25. </th>
  26. <th data-priority="3">
  27. @Html.DisplayNameFor(model => college_model.Commune)
  28. </th>
  29. <th>
  30. @Html.DisplayNameFor(model => college_model.Tel)
  31. </th>
  32. <th>
  33. @Html.DisplayNameFor(model => college_model.Email)
  34. </th>
  35. <th>
  36. @Html.DisplayNameFor(model => college_model.TypeCollege.Libelle)
  37. </th>
  38. <noscript>
  39. <td style="width:1px">
  40. </td>
  41. </noscript>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. @foreach (College college in Model.Obj.Colleges.OrderBy(c=>c.Libelle)) {
  46. <tr data-url="@Url.Action("Details", new { id = college.Id })">
  47. <td>
  48. @Html.DisplayFor(modelcollege => college.CodeRne)
  49. </td>
  50. <td>
  51. @Html.DisplayFor(modelcollege => college.Libelle)
  52. </td>
  53. <td>
  54. @Html.DisplayFor(modelcollege => college.Commune)
  55. </td>
  56. <td>
  57. @Html.DisplayFor(modelcollege => college.Tel)
  58. </td>
  59. <td>
  60. @Html.DisplayFor(modelcollege => college.Email)
  61. </td>
  62. <td>
  63. @Html.DisplayFor(modelcollege => college.TypeCollege.Libelle)
  64. </td>
  65. <noscript class="no-print">
  66. <td>
  67. @Html.ActionLink("Voir", "Details", new { id = college.Id })
  68. </td>
  69. </noscript>
  70. </tr>
  71. }
  72. </tbody>
  73. </table>