@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>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model.Obj.OrderBy(i => i.Nom))
        {
            <tr data-url="@Url.Action("Edit", new { id = item.Id })">
                <td>@Html.DisplayFor(model => item.Nom)</td>
                <td>@Html.DisplayFor(model => item.Description)</td>
            </tr>
        }
    </tbody>
</table>