浏览代码

Actios Educatives: finalisation

olivier.massot 7 年之前
父节点
当前提交
95877d1e5f
共有 1 个文件被更改,包括 12 次插入5 次删除
  1. 12 5
      CD67.FicheCollege.MVC/Views/ActionsEdu/Index.cshtml

+ 12 - 5
CD67.FicheCollege.MVC/Views/ActionsEdu/Index.cshtml

@@ -19,7 +19,7 @@
     </span>
 </header>
 
-<table id="table-actions" class="datatable table">
+<table id="table-actions" class="datatable table" data-order="[[ 0, &quot;asc&quot; ]]">
     <thead>
         <tr>
             <th>
@@ -43,10 +43,14 @@
             <th>
                 @Html.DisplayNameFor(model => action_model.ActionEduStatut.Nom)
             </th>
+            <noscript>
+                <th style="width:1px">
+                </th>
+            </noscript>
         </tr>
     </thead>
     <tbody>
-        @foreach (ActionEdu item in Model.Obj.ActionsEdu.OrderBy(a => a.Ordre))
+        @foreach (ActionEdu item in Model.Obj.ActionsEdu.OrderBy(a => a.Numero))
         {
             <tr data-url="@Url.Action("Details", new { id = item.Id })">
                 <td>
@@ -54,9 +58,7 @@
                 </td>
                 <td>
                     @Html.DisplayFor(model => item.Nom)
-                    <noscript>
-                        @Html.ActionLink(" > Voir", "Details", new { id = item.Id })
-                    </noscript>
+
                 </td>
                 <td>
                     @Html.DisplayFor(model => item.ActionEduThematique.ActionEduAxe.Nom)
@@ -73,6 +75,11 @@
                 <td>
                     @Html.DisplayFor(model => item.ActionEduStatut.Nom)
                 </td>
+                <noscript>
+                    <td>
+                        @Html.ActionLink("Voir", "Details", new { id = item.Id })
+                    </td>
+                </noscript>
             </tr>
         }
     </tbody>