| 1234567891011121314151617181920212223242526272829 |
- @using CD67.FicheCollege.MVC.Models
- @model GroupeIndexViewModel
- @{
- ViewBag.Title = "Administration - Utilisateurs";
- Layout = "~/Views/Shared/_AdminLayout.cshtml";
- }
- <h2>Groupes d'utilisateurs</h2>
- <table class="table simple-datatable">
- <thead>
- <tr>
- <th>@Html.DisplayNameFor(model => model.Obj.First().Nom)</th>
- <th>@Html.DisplayNameFor(model => model.Obj.First().Description)</th>
- <th>Membres</th>
- </tr>
- </thead>
- <tbody>
- @foreach (var item in Model.Obj.OrderBy(i => i.Nom))
- {
- <tr data-url="@Url.Action("Details", new { id = item.Id })">
- <td>@Html.DisplayFor(model => item.Nom)</td>
- <td>@Html.DisplayFor(model => item.Description)</td>
- <td>@item.UtilisateursGroupes.Count()</td>
- </tr>
- }
- </tbody>
- </table>
|