Browse Source

NEW #29 - Maj views

olivier.massot 7 years ago
parent
commit
2037eb25cb

+ 3 - 0
CD67.FicheCollege.MVC/Controllers/ActionsEduController.cs

@@ -1,6 +1,7 @@
 using CD67.FicheCollege.Entity;
 using CD67.FicheCollege.Factory;
 using CD67.FicheCollege.MVC.Models;
+using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Net;
@@ -59,6 +60,8 @@ namespace CD67.FicheCollege.MVC.Controllers
             actionEdu.Annee = fact.getById(annee_id);
             actionEdu.hydrate();
 
+            actionEdu.TokenId = Guid.NewGuid();
+
             ActionEduViewModel model = new ActionEduViewModel(actionEdu, db, ModeAcces.Creation);
             return View(model);
         }

+ 1 - 0
CD67.FicheCollege.MVC/Views/ActionsEdu/Create.cshtml

@@ -21,6 +21,7 @@
         @Html.HiddenFor(model => actionEdu.Ordre)
         @Html.HiddenFor(model => actionEdu.AnneeId)
         @Html.HiddenFor(model => actionEdu.Neutralise)
+        @Html.HiddenFor(model => actionEdu.TokenId)
 
         <div class="form-group">
             @Html.LabelFor(model => actionEdu.ActionEduThematiqueId, htmlAttributes: new { @class = "control-label col-md-2" })

+ 1 - 0
CD67.FicheCollege.MVC/Views/ActionsEdu/Edit.cshtml

@@ -20,6 +20,7 @@
         @Html.HiddenFor(model => actionEdu.Id)
         @Html.HiddenFor(model => actionEdu.Ordre)
         @Html.HiddenFor(model => actionEdu.AnneeId)
+        @Html.HiddenFor(model => actionEdu.TokenId)
 
         <div class="form-group">
             @Html.LabelFor(model => actionEdu.ActionEduThematiqueId, htmlAttributes: new { @class = "control-label col-md-2" })

+ 1 - 0
CD67.FicheCollege.MVC/Views/Colleges/Edit.cshtml

@@ -37,6 +37,7 @@
                 @Html.HiddenFor(model => college.Id)
             }
             @Html.HiddenFor(model => college.Annee_Id)
+            @Html.HiddenFor(model => college.TokenId)
 
             <div class="form-group">
                 @Html.LabelFor(model => college.CodeRne, htmlAttributes: new { @class = "control-label col-md-2" })