| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- @using CD67.FicheCollege.MVC.Models
- @model ActionEduViewModel
- @{
- ViewBag.Title = "Details";
- Layout = "~/Views/Shared/_Layout.cshtml";
- ActionEdu actionEdu = Model.Obj;
- }
- <header>
- <h2>@actionEdu.Nom</h2>
- </header>
- <fieldset>
- <legend>
- Descriptif
- @if (Model.Acces == ModeAcces.Lecture)
- {
- <span class="pull-right">
- @Html.ActionLink("Supprimer", "Delete", "ActionsEdu", new { Id = actionEdu.Id }, new { @class = "btn btn-danger" })
- @Html.ActionLink("Modifier", "Edit", "ActionsEdu", new { Id = actionEdu.Id }, new { @class = "btn btn-default" })
- </span>
- }
- </legend>
- <dl class="dl-horizontal">
- <dt>@Html.DisplayNameFor(model => actionEdu.ActionEduStatut.Nom)</dt>
- <dd>@Html.DisplayFor(model => actionEdu.ActionEduStatut.Nom)</dd>
- <dt>@Html.DisplayNameFor(model => actionEdu.ActionEduThematique.ActionEduAxe.Nom)</dt>
- <dd>@Html.DisplayFor(model => actionEdu.ActionEduThematique.ActionEduAxe.Nom)</dd>
- <dt>@Html.DisplayNameFor(model => actionEdu.ActionEduThematique.Nom)</dt>
- <dd>@Html.DisplayFor(model => actionEdu.ActionEduThematique.Nom)</dd>
- <dt>@Html.DisplayNameFor(model => actionEdu.Numero)</dt>
- <dd>@Html.DisplayFor(model => actionEdu.Numero)</dd>
- <dt>@Html.DisplayNameFor(model => actionEdu.Nom)</dt>
- <dd>@Html.DisplayFor(model => actionEdu.Nom)</dd>
- <dt>@Html.DisplayNameFor(model => actionEdu.Montant)</dt>
- <dd>@Html.DisplayFor(model => actionEdu.Montant)</dd>
-
- <dt>Elèves concernés </dt>
- <dd>@actionEdu.totalEleves</dd>
-
- <dt>@Html.DisplayNameFor(model => actionEdu.Description)</dt>
- <dd>@Html.DisplayFor(model => actionEdu.Description)</dd>
-
- <dt>@Html.DisplayNameFor(model => actionEdu.CommentairePublic)</dt>
- <dd>@Html.DisplayFor(model => actionEdu.CommentairePublic)</dd>
-
- <dt>@Html.DisplayNameFor(model => actionEdu.CommentaireInterne)</dt>
- <dd>@Html.DisplayFor(model => actionEdu.CommentaireInterne)</dd>
- <dt>@Html.DisplayNameFor(model => actionEdu.Neutralise)</dt>
- <dd>@Html.DisplayFor(model => actionEdu.Neutralise)</dd>
- </dl>
- </fieldset>
- @if (Model.Acces == ModeAcces.Lecture)
- {
- <legend>
- Acteurs
- <span class="pull-right">
- <a class="btn btn-default" href="@Url.Action("Create", "ActionsEduActeurs", new { actionEdu_id = actionEdu.Id })">
- <i class="fa fa-plus"></i> Ajouter
- </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>
- <legend>
- Collège(s) concerné(s)
- <span class="pull-right">
- <a class="btn btn-default" href="@Url.Action("Create", "ActionsEduCollege", new { actionEdu_id = actionEdu.Id })">
- <i class="fa fa-plus"></i> Ajouter
- </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>
- <td>@Html.DisplayFor(model => item.Commentaire)</td>
- </tr>
- }
- </tbody>
- </table>
- }
- <br/>
- @Html.ActionLink("Retour à la liste des actions", "Index", new { annee_id = actionEdu.AnneeId })
|