Index.cshtml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. @*Selection de colleges à importer*@
  9. <div id="college-import-dlg" style="display:none">
  10. <ul class="college-import-list">
  11. @* Injection ajax *@
  12. </ul>
  13. <input class="btn btn-default" type="button" value="Importer" />
  14. </div>
  15. <header>
  16. <h2>Les collèges @Model.Annee_Lib</h2>
  17. <span>
  18. <a href="@Url.Action("Create", new { annee_id = Model.Obj.Id })"> <span class="glyphicon glyphicon-plus-sign color1"></span> Nouveau collège</a>
  19. <a href="@Url.Action("Import", new { annee_id = Model.Obj.Id })"> <span class="glyphicon glyphicon-import color1"></span> Importer depuis @Model.Obj.AnneePrecLib</a>
  20. <a class="start-trace" href="@Url.Action("Index", "TypeCollege")"> <span class="glyphicon glyphicon-cog color1"></span> Types de collège</a>
  21. <a class="start-trace" href="@Url.Action("Index", "Territoire")"> <span class="glyphicon glyphicon-cog color1"></span> Territoires</a>
  22. </span>
  23. </header>
  24. <table id="table-colleges" class="datatable table">
  25. <thead>
  26. <tr>
  27. <th data-priority="1">
  28. RNE
  29. </th>
  30. <th data-priority="2">
  31. @Html.DisplayNameFor(model => college_model.Libelle)
  32. </th>
  33. <th data-priority="3">
  34. @Html.DisplayNameFor(model => college_model.Commune)
  35. </th>
  36. <th>
  37. @Html.DisplayNameFor(model => college_model.Tel)
  38. </th>
  39. <th>
  40. @Html.DisplayNameFor(model => college_model.Email)
  41. </th>
  42. <th>
  43. @Html.DisplayNameFor(model => college_model.TypeCollege.Libelle)
  44. </th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. @foreach (College college in Model.Obj.Colleges) {
  49. <tr data-url="@Url.Action("Details", new { id = college.Id })">
  50. <td>
  51. @Html.DisplayFor(modelcollege => college.CodeRne)
  52. </td>
  53. <td>
  54. @Html.DisplayFor(modelcollege => college.Libelle)
  55. <noscript>
  56. @Html.ActionLink(" > Voir", "Details", new { id = college.Id })
  57. </noscript>
  58. </td>
  59. <td>
  60. @Html.DisplayFor(modelcollege => college.Commune)
  61. </td>
  62. <td>
  63. @Html.DisplayFor(modelcollege => college.Tel)
  64. </td>
  65. <td>
  66. @Html.DisplayFor(modelcollege => college.Email)
  67. </td>
  68. <td>
  69. @Html.DisplayFor(modelcollege => college.TypeCollege.Libelle)
  70. </td>
  71. </tr>
  72. }
  73. </tbody>
  74. </table>