ソースを参照

Ajout de la partie Actions Educatives à la fiche collège

olivier.massot 7 年 前
コミット
7d7814750b
1 ファイル変更52 行追加0 行削除
  1. 52 0
      CD67.FicheCollege.MVC/Views/Colleges/Details.cshtml

+ 52 - 0
CD67.FicheCollege.MVC/Views/Colleges/Details.cshtml

@@ -207,6 +207,58 @@
     </table>
 </div>
 
+<legend>
+    Actions Educatives
+</legend>
+
+<div>
+    <table class="datatable table">
+        <thead>
+            <tr>
+                <th>
+                    Numéro
+                </th>
+                <th>
+                    Nom
+                </th>
+                <th>
+                    Nb.Elèves
+                </th>
+                <th>
+                    Axe
+                </th>
+                <th>
+                    Thematique
+                </th>
+            </tr>
+        </thead>
+        <tbody>
+            @foreach (ActionEduCollege item in college.ActionsEduColleges)
+            {
+                <tr>
+                    <td>
+                        @Html.DisplayFor(model => item.ActionEdu.Numero)
+                    </td>
+                    <td>
+                        @Html.DisplayFor(model => item.ActionEdu.Nom)
+                    </td>
+                    <td>
+                        @Html.DisplayFor(model => item.NbEleves)
+                    </td>
+                    <td>
+                        @Html.DisplayFor(model => item.ActionEdu.ActionEduThematique.ActionEduAxe.Nom)
+                    </td>
+                    <td>
+                        @Html.DisplayFor(model => item.ActionEdu.ActionEduThematique.Nom)
+                    </td>
+
+                </tr>
+            }
+        </tbody>
+    </table>
+</div>
+
+
 @if (Model.Acces == ModeAcces.Suppression)
 {
     using (Html.BeginForm())