|
@@ -1,6 +1,7 @@
|
|
|
using CD67.FicheCollege.Entity;
|
|
using CD67.FicheCollege.Entity;
|
|
|
using CD67.FicheCollege.Factory;
|
|
using CD67.FicheCollege.Factory;
|
|
|
using CD67.FicheCollege.MVC.Models;
|
|
using CD67.FicheCollege.MVC.Models;
|
|
|
|
|
+using CD67.PIMP.MVC.Internal;
|
|
|
using System;
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
using System.Linq;
|
|
@@ -47,6 +48,7 @@ namespace CD67.FicheCollege.MVC.Controllers
|
|
|
|
|
|
|
|
|
|
|
|
|
// GET: ActionEduAxe/Create
|
|
// GET: ActionEduAxe/Create
|
|
|
|
|
+ [Acces(groupes = "AdminActionsEdu")]
|
|
|
public ActionResult Create(int? annee_id)
|
|
public ActionResult Create(int? annee_id)
|
|
|
{
|
|
{
|
|
|
if (annee_id == null)
|
|
if (annee_id == null)
|
|
@@ -68,6 +70,7 @@ namespace CD67.FicheCollege.MVC.Controllers
|
|
|
// Afin de déjouer les attaques par sur-validation, activez les propriétés spécifiques que vous voulez lier. Pour
|
|
// Afin de déjouer les attaques par sur-validation, activez les propriétés spécifiques que vous voulez lier. Pour
|
|
|
// plus de détails, voir http://go.microsoft.com/fwlink/?LinkId=317598.
|
|
// plus de détails, voir http://go.microsoft.com/fwlink/?LinkId=317598.
|
|
|
[HttpPost]
|
|
[HttpPost]
|
|
|
|
|
+ [Acces(groupes = "AdminActionsEdu")]
|
|
|
[ValidateAntiForgeryToken]
|
|
[ValidateAntiForgeryToken]
|
|
|
public ActionResult Create(ActionEdu actionEdu)
|
|
public ActionResult Create(ActionEdu actionEdu)
|
|
|
{
|
|
{
|
|
@@ -82,6 +85,7 @@ namespace CD67.FicheCollege.MVC.Controllers
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// GET: ActionEduAxe/Edit/5
|
|
// GET: ActionEduAxe/Edit/5
|
|
|
|
|
+ [Acces(groupes = "AdminActionsEdu")]
|
|
|
public ActionResult Edit(int? id)
|
|
public ActionResult Edit(int? id)
|
|
|
{
|
|
{
|
|
|
if (id == null)
|
|
if (id == null)
|
|
@@ -102,6 +106,7 @@ namespace CD67.FicheCollege.MVC.Controllers
|
|
|
// Afin de déjouer les attaques par sur-validation, activez les propriétés spécifiques que vous voulez lier. Pour
|
|
// Afin de déjouer les attaques par sur-validation, activez les propriétés spécifiques que vous voulez lier. Pour
|
|
|
// plus de détails, voir http://go.microsoft.com/fwlink/?LinkId=317598.
|
|
// plus de détails, voir http://go.microsoft.com/fwlink/?LinkId=317598.
|
|
|
[HttpPost]
|
|
[HttpPost]
|
|
|
|
|
+ [Acces(groupes = "AdminActionsEdu")]
|
|
|
[ValidateAntiForgeryToken]
|
|
[ValidateAntiForgeryToken]
|
|
|
public ActionResult Edit(ActionEdu actionEdu)
|
|
public ActionResult Edit(ActionEdu actionEdu)
|
|
|
{
|
|
{
|
|
@@ -121,6 +126,7 @@ namespace CD67.FicheCollege.MVC.Controllers
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// GET: ActionEduAxe/Delete/5
|
|
// GET: ActionEduAxe/Delete/5
|
|
|
|
|
+ [Acces(groupes = "AdminActionsEdu")]
|
|
|
public ActionResult Delete(int? id)
|
|
public ActionResult Delete(int? id)
|
|
|
{
|
|
{
|
|
|
if (id == null)
|
|
if (id == null)
|
|
@@ -139,6 +145,7 @@ namespace CD67.FicheCollege.MVC.Controllers
|
|
|
|
|
|
|
|
// POST: ActionEduAxe/Delete/5
|
|
// POST: ActionEduAxe/Delete/5
|
|
|
[HttpPost, ActionName("Delete")]
|
|
[HttpPost, ActionName("Delete")]
|
|
|
|
|
+ [Acces(groupes = "AdminActionsEdu")]
|
|
|
[ValidateAntiForgeryToken]
|
|
[ValidateAntiForgeryToken]
|
|
|
public ActionResult DeleteConfirmed(int id)
|
|
public ActionResult DeleteConfirmed(int id)
|
|
|
{
|
|
{
|
|
@@ -168,7 +175,7 @@ namespace CD67.FicheCollege.MVC.Controllers
|
|
|
return non_importees;
|
|
return non_importees;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // GET: Colleges
|
|
|
|
|
|
|
+ [Acces(groupes = "AdminActionsEdu")]
|
|
|
public ActionResult Import(int? annee_id)
|
|
public ActionResult Import(int? annee_id)
|
|
|
{
|
|
{
|
|
|
if (annee_id == null)
|
|
if (annee_id == null)
|
|
@@ -199,6 +206,7 @@ namespace CD67.FicheCollege.MVC.Controllers
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
[HttpPost]
|
|
[HttpPost]
|
|
|
|
|
+ [Acces(groupes = "AdminActionsEdu")]
|
|
|
[ValidateAntiForgeryToken]
|
|
[ValidateAntiForgeryToken]
|
|
|
public ActionResult Import(int Annee_Id, List<int> actionsEdu_ids, List<bool> selection)
|
|
public ActionResult Import(int Annee_Id, List<int> actionsEdu_ids, List<bool> selection)
|
|
|
{
|
|
{
|