Ver código fonte

Suppression des views Delete

olivier.massot 7 anos atrás
pai
commit
1fd49cc9de

+ 0 - 8
CD67.FicheCollege.MVC/CD67.FicheCollege.MVC.csproj

@@ -460,10 +460,8 @@
     <Content Include="Views\Shared\DisplayTemplates\Date.cshtml" />
     <Content Include="Views\Shared\EditorTemplates\Date.cshtml" />
     <Content Include="Views\Shared\_Flash.cshtml" />
-    <Content Include="Views\TypeCollege\Delete.cshtml" />
     <Content Include="Views\TypeCollege\Edit.cshtml" />
     <Content Include="Views\TypeCollege\Index.cshtml" />
-    <Content Include="Views\Territoire\Delete.cshtml" />
     <Content Include="Views\Territoire\Edit.cshtml" />
     <Content Include="Views\Territoire\Index.cshtml" />
     <Content Include="Views\Colleges\Details.cshtml" />
@@ -471,30 +469,24 @@
     <Content Include="Views\Annees\Details.cshtml" />
     <Content Include="Views\Annees\Index.cshtml" />
     <Content Include="Views\Colleges\Index.cshtml" />
-    <Content Include="Views\ActionEduAxes\Delete.cshtml" />
     <Content Include="Views\ActionEduAxes\Edit.cshtml" />
     <Content Include="Views\ActionEduAxes\Index.cshtml" />
-    <Content Include="Views\ActionEduThematiques\Delete.cshtml" />
     <Content Include="Views\ActionEduThematiques\Edit.cshtml" />
     <Content Include="Views\ActionEduThematiques\Index.cshtml" />
     <Content Include="Views\ActionsEdu\Edit.cshtml" />
     <Content Include="Views\ActionsEdu\Index.cshtml" />
     <Content Include="Views\ActionsEdu\Details.cshtml" />
     <Content Include="Views\ActionsEduCollege\Details.cshtml" />
-    <Content Include="Views\ActionsEduCollege\Delete.cshtml" />
     <Content Include="Views\ActionsEduCollege\Edit.cshtml" />
     <Content Include="Views\Shared\_AdminLayout.cshtml" />
     <Content Include="Views\Colleges\Import.cshtml" />
     <Content Include="Views\ActionsEdu\Import.cshtml" />
-    <Content Include="Views\ActionsEduActeurs\Delete.cshtml" />
     <Content Include="Views\ActionsEduActeurs\Details.cshtml" />
     <Content Include="Views\ActionsEduActeurs\Edit.cshtml" />
     <Content Include="Views\Restauration\Index.cshtml" />
-    <Content Include="Views\RestaurationTypes\Delete.cshtml" />
     <Content Include="Views\RestaurationTypes\Edit.cshtml" />
     <Content Include="Views\RestaurationTypes\Index.cshtml" />
     <Content Include="Views\Colleges\Type.cshtml" />
-    <Content Include="Views\RestaurationTypeRepas\Delete.cshtml" />
     <Content Include="Views\RestaurationTypeRepas\Edit.cshtml" />
     <Content Include="Views\RestaurationTypeRepas\Index.cshtml" />
     <Content Include="Views\RestaurationParametres\Edit.cshtml" />

+ 0 - 35
CD67.FicheCollege.MVC/Views/ActionEduAxes/Delete.cshtml

@@ -1,35 +0,0 @@
-@using CD67.FicheCollege.MVC.Models
-@model ActionEduAxeViewModel
-
-@{
-    ViewBag.Title = "Suppression";
-    Layout = "~/Views/Shared/_AdminLayout.cshtml";
-    ActionEduAxe axe = Model.Obj;
-}
-
-<h2>Suppression</h2>
-
-<h3>Voulez-vous vraiment supprimer cet élément?</h3>
-<div>
-    <h4>Axe</h4>
-    <hr />
-    <dl class="dl-horizontal">
-        <dt>
-            @Html.DisplayNameFor(model => axe.Nom)
-        </dt>
-
-        <dd>
-            @Html.DisplayFor(model => axe.Nom)
-        </dd>
-
-    </dl>
-
-    @using (Html.BeginForm()) {
-        @Html.AntiForgeryToken()
-
-        <div class="form-actions no-color">
-            <input type="submit" value="Supprimer" class="btn btn-default" /> |
-            @Html.ActionLink("Retour à la liste", "Index")
-        </div>
-    }
-</div>

+ 0 - 33
CD67.FicheCollege.MVC/Views/ActionEduThematiques/Delete.cshtml

@@ -1,33 +0,0 @@
-@using CD67.FicheCollege.MVC.Models
-@model ActionEduThematiqueViewModel
-
-@{
-    ViewBag.Title = "Suppression";
-    Layout = "~/Views/Shared/_AdminLayout.cshtml";
-    ActionEduThematique thematique = Model.Obj;
-}
-
-<h2>Suppression</h2>
-
-<h3>Voulez-vous vraiment supprimer cet élément?</h3>
-<div>
-    <dl class="dl-horizontal">
-        <dt>
-            @Html.DisplayNameFor(model => thematique.Nom)
-        </dt>
-
-        <dd>
-            @Html.DisplayFor(model => thematique.Nom)
-        </dd>
-
-    </dl>
-
-    @using (Html.BeginForm()) {
-        @Html.AntiForgeryToken()
-
-        <div class="form-actions no-color">
-            <input type="submit" value="Supprimer" class="btn btn-default" /> |
-            @Html.ActionLink("Retour à la liste", "Index")
-        </div>
-    }
-</div>

+ 0 - 30
CD67.FicheCollege.MVC/Views/ActionsEduActeurs/Delete.cshtml

@@ -1,30 +0,0 @@
-@using CD67.FicheCollege.MVC.Models
-@model ActionEduActeurViewModel
-
-@{
-    ViewBag.Title = "Suppression";
-    Layout = "~/Views/Shared/_Layout.cshtml";
-    ActionEduActeur actionEduActeur = Model.Obj;
-}
-
-<header>
-    <h2>Suppression</h2>
-</header>
-
-<h3>Retirer l'acteur</h3>
-<div>
-    @using (Html.BeginForm()) {
-        @Html.AntiForgeryToken()
-
-        <p>Voulez-vous vraiment retirer l'acteur: <b>@actionEduActeur.Nom</b>?</p>
-
-        <div class="form-actions no-color">
-            <input type="submit" value="Supprimer" class="btn btn-default" />
-        </div>
-    }
-</div>
-
-<br/>
-<div>
-    @Html.ActionLink("Annuler", "Details", new { id = actionEduActeur.Id })
-</div>

+ 0 - 30
CD67.FicheCollege.MVC/Views/ActionsEduCollege/Delete.cshtml

@@ -1,30 +0,0 @@
-@using CD67.FicheCollege.MVC.Models
-@model ActionEduCollegeViewModel
-
-@{
-    ViewBag.Title = "Suppression";
-    Layout = "~/Views/Shared/_Layout.cshtml";
-    ActionEduCollege actionEduCollege = Model.Obj;
-}
-
-<header>
-    <h2>Suppression</h2>
-</header>
-
-<h3>Retirer le college</h3>
-<div>
-    @using (Html.BeginForm()) {
-        @Html.AntiForgeryToken()
-
-        <p>Voulez-vous vraiment retirer le college <b>@actionEduCollege.College.Libelle</b> des colleges concernés par l'action <b>@actionEduCollege.ActionEdu.Nom</b>?</p>
-
-        <div class="form-actions no-color">
-            <input type="submit" value="Supprimer" class="btn btn-default" />
-        </div>
-    }
-</div>
-
-<br/>
-<div>
-    @Html.ActionLink("Annuler", "Details", new { id = actionEduCollege.Id })
-</div>

+ 0 - 42
CD67.FicheCollege.MVC/Views/RestaurationTypeRepas/Delete.cshtml

@@ -1,42 +0,0 @@
-@using CD67.FicheCollege.MVC.Models
-@model RestaurationTypeRepaViewModel
-
-@{
-    ViewBag.Title = "Suppression";
-    Layout = "~/Views/Shared/_AdminLayout.cshtml";
-    RestaurationTypeRepa repas = Model.Obj;
-}
-
-<h2>Suppression</h2>
-
-<h3>Voulez-vous vraiment supprimer cet élément?</h3>
-<div>
-    <h4>Type de repas</h4>
-    <hr />
-    <dl class="dl-horizontal">
-        <dt>
-            @Html.DisplayNameFor(model => repas.Libelle)
-        </dt>
-
-        <dd>
-            @Html.DisplayFor(model => repas.Libelle)
-        </dd>
-        <dt>
-            @Html.DisplayNameFor(model => repas.Valid)
-        </dt>
-
-        <dd>
-            @Html.DisplayFor(model => repas.Valid)
-        </dd>
-
-    </dl>
-
-    @using (Html.BeginForm()) {
-        @Html.AntiForgeryToken()
-
-        <div class="form-actions no-color">
-            <input type="submit" value="Supprimer" class="btn btn-default" /> |
-            @Html.ActionLink("Retour à la liste", "Index")
-        </div>
-    }
-</div>

+ 0 - 42
CD67.FicheCollege.MVC/Views/RestaurationTypes/Delete.cshtml

@@ -1,42 +0,0 @@
-@using CD67.FicheCollege.MVC.Models
-@model RestaurationTypeViewModel
-
-@{
-    ViewBag.Title = "Suppression";
-    Layout = "~/Views/Shared/_AdminLayout.cshtml";
-    RestaurationType type = Model.Obj;
-}
-
-<h2>Suppression</h2>
-
-<h3>Voulez-vous vraiment supprimer cet élément?</h3>
-<div>
-    <h4>Type de restauration</h4>
-    <hr />
-    <dl class="dl-horizontal">
-        <dt>
-            @Html.DisplayNameFor(model => type.Libelle)
-        </dt>
-
-        <dd>
-            @Html.DisplayFor(model => type.Libelle)
-        </dd>
-        <dt>
-            @Html.DisplayNameFor(model => type.Valid)
-        </dt>
-
-        <dd>
-            @Html.DisplayFor(model => type.Valid)
-        </dd>
-
-    </dl>
-
-    @using (Html.BeginForm()) {
-        @Html.AntiForgeryToken()
-
-        <div class="form-actions no-color">
-            <input type="submit" value="Supprimer" class="btn btn-default" /> |
-            @Html.ActionLink("Retour à la liste", "Index")
-        </div>
-    }
-</div>

+ 1 - 1
CD67.FicheCollege.MVC/Views/Shared/_AdminDeleteWarning.cshtml

@@ -9,7 +9,7 @@
 <div class="align-center">
     <h2 class="text-danger"><i class="glyphicon glyphicon-alert"></i>&nbsp; Attention</h2>
 
-    <span>Vous vous apprêtez à supprimer définitivement l'objet &nbsp;<b>@Model.TypeObjet</b>&nbsp; nommé &nbsp;<b>@Model.NomObjet</b>&nbsp;</span>
+    <span>Vous vous apprêtez à supprimer définitivement l'enregistrement &nbsp;<b>@Model.TypeObjet</b>&nbsp; nommé &nbsp;<b>@Model.NomObjet</b>&nbsp;</span>
 
     <span>Voulez-vous continuer?</span>
 </div>

+ 0 - 32
CD67.FicheCollege.MVC/Views/Territoire/Delete.cshtml

@@ -1,32 +0,0 @@
-@using CD67.FicheCollege.MVC.Models
-@model TerritoireViewModel
-@{
-    ViewBag.Title = "Suppression";
-    Layout = "~/Views/Shared/_AdminLayout.cshtml";
-    Territoire territoire = Model.Obj;
-}
-
-<h2>Suppression</h2>
-
-<h3>Voulez-vous vraiment supprimer cet élément?</h3>
-<div>
-    <h4>Territoire</h4>
-    <hr />
-    <dl class="dl-horizontal">
-        <dt>
-            @Html.DisplayNameFor(model => territoire.Libelle)
-        </dt>
-        <dd>
-            @Html.DisplayFor(model => territoire.Libelle)
-        </dd>
-    </dl>
-
-    @using (Html.BeginForm()) {
-        @Html.AntiForgeryToken()
-
-        <div class="form-actions no-color">
-            <input type="submit" value="Supprimer" class="btn btn-default" /> |
-            @Html.ActionLink("Retour à la liste", "Index")
-        </div>
-    }
-</div>

+ 0 - 33
CD67.FicheCollege.MVC/Views/TypeCollege/Delete.cshtml

@@ -1,33 +0,0 @@
-@using CD67.FicheCollege.MVC.Models
-@model TypeCollegeViewModel
-
-@{
-    ViewBag.Title = "Suppression";
-    Layout = "~/Views/Shared/_AdminLayout.cshtml";
-    TypeCollege typeCollege = Model.Obj;
-}
-
-<h2>Suppression</h2>
-
-<h3>Voulez-vous vraiment supprimer cet élément?</h3>
-<div>
-    <dl class="dl-horizontal">
-        <dt>
-            @Html.DisplayNameFor(model => typeCollege.Libelle)
-        </dt>
-
-        <dd>
-            @Html.DisplayFor(model => typeCollege.Libelle)
-        </dd>
-
-    </dl>
-
-    @using (Html.BeginForm()) {
-        @Html.AntiForgeryToken()
-
-        <div class="form-actions no-color">
-            <input type="submit" value="Supprimer" class="btn btn-default" /> |
-            @Html.ActionLink("Retour à la liste", "Index")
-        </div>
-    }
-</div>