Index.cshtml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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</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">
  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. </tr>
  39. </thead>
  40. <tbody>
  41. @foreach (College college in Model.Obj.Colleges) {
  42. <tr data-url="@Url.Action("Details", new { id = college.Id })">
  43. <td>
  44. @Html.DisplayFor(modelcollege => college.CodeRne)
  45. </td>
  46. <td>
  47. @Html.DisplayFor(modelcollege => college.Libelle)
  48. <noscript>
  49. @Html.ActionLink(" > Voir", "Details", new { id = college.Id })
  50. </noscript>
  51. </td>
  52. <td>
  53. @Html.DisplayFor(modelcollege => college.Commune)
  54. </td>
  55. <td>
  56. @Html.DisplayFor(modelcollege => college.Tel)
  57. </td>
  58. <td>
  59. @Html.DisplayFor(modelcollege => college.Email)
  60. </td>
  61. <td>
  62. @Html.DisplayFor(modelcollege => college.TypeCollege.Libelle)
  63. </td>
  64. </tr>
  65. }
  66. </tbody>
  67. </table>