Browse Source

FIX ActionsEdu: Corrige le tri des montants

olivier.massot 7 years ago
parent
commit
5c76f82110

+ 0 - 1
CD67.FicheCollege.MVC/Scripts/cd67-main.js

@@ -6,5 +6,4 @@
         var url = $(this).data('url');
         window.location.href = url;
     });
-
 });

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

@@ -22,16 +22,16 @@
     <thead>
         <tr>
             <th>
-                Axe
+                @Html.DisplayNameFor(model => action_model.Numero)
             </th>
             <th>
-                Thematique
+                @Html.DisplayNameFor(model => action_model.Nom)
             </th>
             <th>
-                @Html.DisplayNameFor(model => action_model.Numero)
+                Axe
             </th>
             <th>
-                @Html.DisplayNameFor(model => action_model.Nom)
+                Thematique
             </th>
             <th>
                 @Html.DisplayNameFor(model => action_model.Montant)
@@ -48,16 +48,9 @@
         </tr>
     </thead>
     <tbody>
-        @foreach (ActionEdu item in Model.Obj.ActionsEdu.OrderBy(a => a.ActionEduThematique.ActionEduAxe.Ordre).ThenBy(a => a.ActionEduThematique.Ordre).ThenBy(a => a.Ordre))
+        @foreach (ActionEdu item in Model.Obj.ActionsEdu.OrderBy(a => a.Ordre))
         {
             <tr data-url="@Url.Action("Details", new { id = item.Id })">
-                <td>
-                    @Html.DisplayFor(model => item.ActionEduThematique.ActionEduAxe.Nom)
-                </td>
-        
-                <td>
-                    @Html.DisplayFor(model => item.ActionEduThematique.Nom)
-                </td>
                 <td>
                     @Html.DisplayFor(model => item.Numero)
                 </td>
@@ -68,6 +61,12 @@
                     </noscript>
                 </td>
                 <td>
+                    @Html.DisplayFor(model => item.ActionEduThematique.ActionEduAxe.Nom)
+                </td>
+                <td>
+                    @Html.DisplayFor(model => item.ActionEduThematique.Nom)
+                </td>
+                <td data-order="@item.Montant">
                     @Html.DisplayFor(model => item.Montant)
                 </td>
                 <td>