Index.cshtml 850 B

12345678910111213141516171819202122232425262728293031
  1. @using CD67.FicheCollege.MVC.Models
  2. @model GroupeIndexViewModel
  3. @{
  4. ViewBag.Title = "Administration - Utilisateurs";
  5. Layout = "~/Views/Shared/_AdminLayout.cshtml";
  6. }
  7. <h2>Groupes d'utilisateurs</h2>
  8. <table class="table simple-datatable">
  9. <thead>
  10. <tr>
  11. <th>
  12. @Html.DisplayNameFor(model => model.Obj.First().Nom)
  13. </th>
  14. <th>
  15. @Html.DisplayNameFor(model => model.Obj.First().Description)
  16. </th>
  17. </tr>
  18. </thead>
  19. <tbody>
  20. @foreach (var item in Model.Obj.OrderBy(i => i.Nom))
  21. {
  22. <tr data-url="@Url.Action("Edit", new { id = item.Id })">
  23. <td>@Html.DisplayFor(model => item.Nom)</td>
  24. <td>@Html.DisplayFor(model => item.Description)</td>
  25. </tr>
  26. }
  27. </tbody>
  28. </table>