Index.cshtml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. @model IEnumerable<CD67.FicheCollege.Entity.College>
  2. @{
  3. ViewBag.Title = "Liste";
  4. Layout = "~/Views/Shared/_Layout.cshtml";
  5. }
  6. <h2>Index</h2>
  7. <p>
  8. <a href="@Url.Action("Create")">
  9. <span class="glyphicon glyphicon-plus-sign fa-2x color1" style="vertical-align: middle" aria-hidden="true"></span>
  10. Ajouter un nouveau collège
  11. </a>
  12. </p>
  13. <table class="table">
  14. <tr>
  15. <th>
  16. @Html.DisplayNameFor(model => model.Id)
  17. </th>
  18. <th>
  19. @Html.DisplayNameFor(model => model.Adresse)
  20. </th>
  21. <th>
  22. @Html.DisplayNameFor(model => model.CDC)
  23. </th>
  24. <th>
  25. @Html.DisplayNameFor(model => model.Tel)
  26. </th>
  27. <th>
  28. @Html.DisplayNameFor(model => model.Fax)
  29. </th>
  30. <th>
  31. @Html.DisplayNameFor(model => model.Email)
  32. </th>
  33. <th>
  34. @Html.DisplayNameFor(model => model.Territoire.Libelle)
  35. </th>
  36. <th>
  37. @Html.DisplayNameFor(model => model.TypeCollege.Libelle)
  38. </th>
  39. </tr>
  40. @foreach (var item in Model) {
  41. <tr>
  42. <th>
  43. @Html.ActionLink(item.Id, "Details", new { id = item.Id })
  44. </th>
  45. <td>
  46. @Html.DisplayFor(modelItem => item.AdresseComplete)
  47. </td>
  48. <td>
  49. @Html.DisplayFor(modelItem => item.CDC)
  50. </td>
  51. <td>
  52. @Html.DisplayFor(modelItem => item.Tel)
  53. </td>
  54. <td>
  55. @Html.DisplayFor(modelItem => item.Fax)
  56. </td>
  57. <td>
  58. @Html.DisplayFor(modelItem => item.Email)
  59. </td>
  60. <td>
  61. @Html.DisplayFor(modelItem => item.Territoire.Libelle)
  62. </td>
  63. <td>
  64. @Html.DisplayFor(modelItem => item.TypeCollege.Libelle)
  65. </td>
  66. </tr>
  67. }
  68. </table>