Pārlūkot izejas kodu

NEW Amélioration de l'ergonomie de la table collèges de la vue ActionsEdu

olivier.massot 7 gadi atpakaļ
vecāks
revīzija
8d62f534bb

+ 6 - 4
CD67.FicheCollege.MVC/Views/ActionsEdu/Details.cshtml

@@ -122,21 +122,23 @@
     </span>
 </legend>
 
-<table class="table table-hover">
+<table class="table datatable">
     <thead>
         <tr>
             <th>Collège</th>
-            <th>Nombre d'élèves</th>
+            <th>Commune</th>
+            <th>Elèves concernés</th>
             <th>Commentaire</th>
             <th width="1px"></th> @*'width=1px' >> force the minimum width*@ 
             <th width="1px"></th>
         </tr>
     </thead>
     <tbody>
-        @foreach (ActionEduCollege item in Model.Obj.ActionsEduColleges)
+        @foreach (ActionEduCollege item in Model.Obj.ActionsEduColleges.OrderBy(a=>a.College.Libelle))
         {
         <tr>
-            <td><a href=@Url.Action("Details", "Colleges", new { Id = item.College.Id })>@item.College.Libelle</a></td>
+            <td>@item.College.Libelle <a href=@Url.Action("Details", "Colleges", new { Id = item.College.Id }) target="_blank" title="Voir le collège"><i class="glyphicon glyphicon-new-window"></i></a></td>
+            <td>@Html.DisplayFor(model => item.College.Commune)</td>
             <td>@Html.DisplayFor(model => item.NbEleves)</td>
             <td>@Html.DisplayFor(model => item.Commentaire)</td>
             <td>