瀏覽代碼

Refact: edit/delete sur les vues détails

olivier.massot 7 年之前
父節點
當前提交
8af6ef2dcb

+ 10 - 7
CD67.FicheCollege.MVC/Views/ActionsEdu/Details.cshtml

@@ -18,14 +18,14 @@
     </p>
 }
 
-<fieldset>
+<fieldset style="margin-bottom: 3em;">
     <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" })
+                @Html.ActionLink("Modifier", "Edit", "ActionsEdu", new { Id = actionEdu.Id }, new { @class = "btn btn-primary" })
+                @Html.ActionLink("Supprimer", "Delete", "ActionsEdu", new { Id = actionEdu.Id }, new { @class = "btn btn-default" })
             </span>
         }
     </legend>
@@ -67,11 +67,12 @@
 
 @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 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>
@@ -96,11 +97,13 @@
         </tbody>
     </table>
 
+    <br/> <br/>
+
     <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 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>

+ 2 - 2
CD67.FicheCollege.MVC/Views/ActionsEduActeurs/Details.cshtml

@@ -17,8 +17,8 @@
         @if (Model.Acces == ModeAcces.Lecture)
         {
             <span class="pull-right">
-                @Html.ActionLink("Supprimer", "Delete", "ActionsEduActeurs", new { Id = actionEduActeur.Id }, new { @class = "btn btn-danger" })
-                @Html.ActionLink("Modifier", "Edit", "ActionsEduActeurs", new { Id = actionEduActeur.Id }, new { @class = "btn btn-default" })
+                @Html.ActionLink("Modifier", "Edit", "ActionsEduActeurs", new { Id = actionEduActeur.Id }, new { @class = "btn btn-primary" })
+                @Html.ActionLink("Supprimer", "Delete", "ActionsEduActeurs", new { Id = actionEduActeur.Id }, new { @class = "btn btn-default" })
             </span>
         }
     </legend>

+ 2 - 2
CD67.FicheCollege.MVC/Views/ActionsEduCollege/Details.cshtml

@@ -18,8 +18,8 @@
         @if (Model.Acces == ModeAcces.Lecture)
         {
             <span class="pull-right">
-                @Html.ActionLink("Supprimer", "Delete", "ActionsEduCollege", new { Id = actionEduCollege.Id }, new { @class = "btn btn-danger" })
-                @Html.ActionLink("Modifier", "Edit", "ActionsEduCollege", new { Id = actionEduCollege.Id }, new { @class = "btn btn-default" })
+                @Html.ActionLink("Modifier", "Edit", "ActionsEduCollege", new { Id = actionEduCollege.Id }, new { @class = "btn btn-primary" })
+                @Html.ActionLink("Supprimer", "Delete", "ActionsEduCollege", new { Id = actionEduCollege.Id }, new { @class = "btn btn-default" })
             </span>
         }
     </legend>

+ 2 - 2
CD67.FicheCollege.MVC/Views/Colleges/Details.cshtml

@@ -25,8 +25,8 @@
         @if (Model.Acces == ModeAcces.Lecture)
         {
             <div class="pull-right">
-                @Html.ActionLink("Supprimer", "Delete", "Colleges", new { Id = college.Id }, new { @class = "btn btn-danger" })
-                @Html.ActionLink("Modifier", "Edit", "Colleges", new { Id = college.Id }, new { @class = "btn btn-default" })
+                @Html.ActionLink("Modifier", "Edit", "Colleges", new { Id = college.Id }, new { @class = "btn btn-primary" })
+                @Html.ActionLink("Supprimer", "Delete", "Colleges", new { Id = college.Id }, new { @class = "btn btn-default" })
             </div>
         }
     </legend>