| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- @using CD67.FicheCollege.MVC.Models
- @model ActionEduViewModel
- @{
- ViewBag.Title = "Details";
- Layout = "~/Views/Shared/_Layout.cshtml";
- ActionEdu actionEdu = Model.Obj;
- }
- <h1>Les Actions</h1>
- <div>
- @Html.ActionLink("Retour à la liste", "Index")
- </div>
- <h2>@actionEdu.Nom</h2>
- <fieldset>
- <legend>
- Données de base
- @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.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.Description)</dt>
- <dd>@Html.DisplayFor(model => actionEdu.Description)</dd>
- <dt>@Html.DisplayNameFor(model => actionEdu.Neutralise)</dt>
- <dd>@Html.DisplayFor(model => actionEdu.Neutralise)</dd>
- </dl>
- </fieldset>
- @if (Model.Acces == ModeAcces.Lecture)
- {
- <legend>
- Collège(s) concerné(s)
- <span class="pull-right">
- @Html.ActionLink("Ajouter", "Create", "ActionsEduCollege", new { actionEdu_id = actionEdu.Id }, new { @class = "btn btn-default" })
- </span>
- </legend>
- foreach (ActionEduCollege item in Model.Obj.ActionsEduColleges)
- {
- <div>
- <span>@item.College.Libelle</span> <span> @Html.ActionLink("Voir", "Details", "ActionsEduCollege", new { Id = item.Id }, new { @class = "btn btn-default" })</span>
- </div>
- }
- }
|