Index.cshtml 875 B

1234567891011121314151617181920212223242526272829
  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>@Html.DisplayNameFor(model => model.Obj.First().Nom)</th>
  12. <th>@Html.DisplayNameFor(model => model.Obj.First().Description)</th>
  13. <th>Membres</th>
  14. </tr>
  15. </thead>
  16. <tbody>
  17. @foreach (var item in Model.Obj.OrderBy(i => i.Nom))
  18. {
  19. <tr data-url="@Url.Action("Details", new { id = item.Id })">
  20. <td>@Html.DisplayFor(model => item.Nom)</td>
  21. <td>@Html.DisplayFor(model => item.Description)</td>
  22. <td>@item.Utilisateurs.Count()</td>
  23. </tr>
  24. }
  25. </tbody>
  26. </table>