|
|
@@ -9,6 +9,11 @@
|
|
|
|
|
|
<header>
|
|
|
<h2>@actionEdu.Nom</h2>
|
|
|
+ <div>
|
|
|
+ <a href=@Url.Action("Index", new { annee_id = actionEdu.AnneeId })>
|
|
|
+ <i class="fa fa-list-ul"></i> Retour à l'index
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
</header>
|
|
|
|
|
|
@if(Model.Acces==ModeAcces.Suppression) {
|
|
|
@@ -65,69 +70,65 @@
|
|
|
</dl>
|
|
|
</fieldset>
|
|
|
|
|
|
-@if (Model.Acces == ModeAcces.Lecture)
|
|
|
-{
|
|
|
-
|
|
|
- <legend>
|
|
|
- Acteurs
|
|
|
- <span class="pull-right">
|
|
|
- <a class="btn btn-primary" href="@Url.Action("Create", "ActionsEduActeurs", new { actionEdu_id = actionEdu.Id })">
|
|
|
- <i class="fa fa-plus"></i> Ajouter un Acteur
|
|
|
- </a>
|
|
|
- </span>
|
|
|
- </legend>
|
|
|
-
|
|
|
- <table class="table datatable">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th>Acteur</th>
|
|
|
- <th>Rôle</th>
|
|
|
- <th>Commentaire</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- @foreach (ActionEduActeur item in Model.Obj.ActionEduActeurs)
|
|
|
- {
|
|
|
- <tr data-url="@Url.Action("Details", "ActionsEduActeurs", new { Id = item.Id })">
|
|
|
- <td>@Html.DisplayFor(model => item.Nom)</td>
|
|
|
- <td>@Html.DisplayFor(model => item.ActionEduActeurRole.Libelle)</td>
|
|
|
- <td>@Html.DisplayFor(model => item.Commentaire)</td>
|
|
|
- </tr>
|
|
|
- }
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
-
|
|
|
- <br/> <br/>
|
|
|
-
|
|
|
- <legend>
|
|
|
- Collège(s) concerné(s)
|
|
|
- <span class="pull-right">
|
|
|
- <a class="btn btn-primary" href="@Url.Action("Create", "ActionsEduCollege", new { actionEdu_id = actionEdu.Id })">
|
|
|
- <i class="fa fa-plus"></i> Ajouter un Collège
|
|
|
- </a>
|
|
|
- </span>
|
|
|
- </legend>
|
|
|
-
|
|
|
- <table class="table datatable">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th>Collège</th>
|
|
|
- <th>Nombre d'élèves</th>
|
|
|
- <th>Commentaire</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- @foreach (ActionEduCollege item in Model.Obj.ActionsEduColleges)
|
|
|
- {
|
|
|
- <tr data-url="@Url.Action("Details", "ActionsEduCollege", new { Id = item.Id })">
|
|
|
- <td>@Html.DisplayFor(model => item.College.Libelle)</td>
|
|
|
- <td>@Html.DisplayFor(model => item.NbEleves)</td>
|
|
|
+<legend>
|
|
|
+ Acteurs
|
|
|
+ <span class="pull-right">
|
|
|
+ <a class="btn btn-primary" href="@Url.Action("Create", "ActionsEduActeurs", new { actionEdu_id = actionEdu.Id })">
|
|
|
+ <i class="fa fa-plus"></i> Ajouter un Acteur
|
|
|
+ </a>
|
|
|
+ </span>
|
|
|
+</legend>
|
|
|
+
|
|
|
+<table class="table datatable">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>Acteur</th>
|
|
|
+ <th>Rôle</th>
|
|
|
+ <th>Commentaire</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ @foreach (ActionEduActeur item in Model.Obj.ActionEduActeurs)
|
|
|
+ {
|
|
|
+ <tr data-url="@Url.Action("Details", "ActionsEduActeurs", new { Id = item.Id })">
|
|
|
+ <td>@Html.DisplayFor(model => item.Nom)</td>
|
|
|
+ <td>@Html.DisplayFor(model => item.ActionEduActeurRole.Libelle)</td>
|
|
|
<td>@Html.DisplayFor(model => item.Commentaire)</td>
|
|
|
</tr>
|
|
|
- }
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
-}
|
|
|
+ }
|
|
|
+ </tbody>
|
|
|
+</table>
|
|
|
+
|
|
|
+<br/> <br/>
|
|
|
+
|
|
|
+<legend>
|
|
|
+ Collège(s) concerné(s)
|
|
|
+ <span class="pull-right">
|
|
|
+ <a class="btn btn-primary" href="@Url.Action("Create", "ActionsEduCollege", new { actionEdu_id = actionEdu.Id })">
|
|
|
+ <i class="fa fa-plus"></i> Ajouter un Collège
|
|
|
+ </a>
|
|
|
+ </span>
|
|
|
+</legend>
|
|
|
+
|
|
|
+<table class="table datatable">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>Collège</th>
|
|
|
+ <th>Nombre d'élèves</th>
|
|
|
+ <th>Commentaire</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ @foreach (ActionEduCollege item in Model.Obj.ActionsEduColleges)
|
|
|
+ {
|
|
|
+ <tr data-url="@Url.Action("Details", "ActionsEduCollege", new { Id = item.Id })">
|
|
|
+ <td><a href=@Url.Action("Details", "Colleges", new { Id = item.College.Id })>@item.College.Libelle</a></td>
|
|
|
+ <td>@Html.DisplayFor(model => item.NbEleves)</td>
|
|
|
+ <td>@Html.DisplayFor(model => item.Commentaire)</td>
|
|
|
+ </tr>
|
|
|
+ }
|
|
|
+ </tbody>
|
|
|
+</table>
|
|
|
|
|
|
@if (Model.Acces == ModeAcces.Suppression)
|
|
|
{
|
|
|
@@ -144,13 +145,5 @@
|
|
|
}
|
|
|
|
|
|
}
|
|
|
-else
|
|
|
-{
|
|
|
- <div>
|
|
|
- @Html.ActionLink("Retour à la liste des actions", "Index", new { annee_id = actionEdu.AnneeId })
|
|
|
- </div>
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
|
|
|
|