|
|
@@ -11,6 +11,13 @@
|
|
|
<h2>@actionEdu.Nom</h2>
|
|
|
</header>
|
|
|
|
|
|
+@if(Model.Acces==ModeAcces.Suppression) {
|
|
|
+ <h2 class="text-danger">Voulez-vous vraiment supprimer cet élément?</h2>
|
|
|
+ <p class="text-danger">
|
|
|
+ Le collège ainsi que toutes les informations liées seront supprimées.
|
|
|
+ </p>
|
|
|
+}
|
|
|
+
|
|
|
<fieldset>
|
|
|
<legend>
|
|
|
Descriptif
|
|
|
@@ -119,7 +126,28 @@
|
|
|
</table>
|
|
|
}
|
|
|
|
|
|
-<br/>
|
|
|
-@Html.ActionLink("Retour à la liste des actions", "Index", new { annee_id = actionEdu.AnneeId })
|
|
|
+@if (Model.Acces == ModeAcces.Suppression)
|
|
|
+{
|
|
|
+ using (Html.BeginForm())
|
|
|
+ {
|
|
|
+ @Html.AntiForgeryToken()
|
|
|
+
|
|
|
+ <div class="form-actions no-color">
|
|
|
+ <input type="submit" value="@Model.Acces.EnumDisplayNameFor(MvcHtmlHelpers.DisplayValue.Prompt)" class="btn btn-danger" />
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <br/>
|
|
|
+ <div>@Html.ActionLink("Annuler", "Details", new { Id = actionEdu.Id })</div>
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+else
|
|
|
+{
|
|
|
+ <div>
|
|
|
+ @Html.ActionLink("Retour à la liste des actions", "Index", new { annee_id = actionEdu.AnneeId })
|
|
|
+ </div>
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|