@using CD67.FicheCollege.MVC.Models @model ActionEduViewModel @{ ViewBag.Title = "Les Actions Educatives " + Model.Annee_Lib; Layout = "~/Views/Shared/_Layout.cshtml"; ActionEdu actionEdu = Model.Obj; }
@if (Model.Acces == ModeAcces.Modification) {

@actionEdu.Nom

} else {

Nouvelle Action Educative

}
@using (Html.BeginForm()) { @Html.AntiForgeryToken()
@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => actionEdu.Id) @Html.HiddenFor(model => actionEdu.Ordre) @Html.HiddenFor(model => actionEdu.AnneeId) @Html.HiddenFor(model => actionEdu.TokenId) @if (Model.Acces == ModeAcces.Creation) { @Html.HiddenFor(model => actionEdu.Neutralise) }
@Html.LabelFor(model => actionEdu.ActionEduThematiqueId, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.DropDownListFor(model => actionEdu.ActionEduThematiqueId, Model.Sel_Thematique, htmlAttributes: new { @class = "form-control" }) @Html.ValidationMessageFor(model => actionEdu.ActionEduThematiqueId, "", new { @class = "text-danger" })
@Html.LabelFor(model => actionEdu.Numero, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => actionEdu.Numero, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => actionEdu.Numero, "", new { @class = "text-danger" })
@Html.LabelFor(model => actionEdu.Nom, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => actionEdu.Nom, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => actionEdu.Nom, "", new { @class = "text-danger" })
@Html.LabelFor(model => actionEdu.Montant, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => actionEdu.Montant, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => actionEdu.Montant, "", new { @class = "text-danger" })
@Html.LabelFor(model => actionEdu.StatutId, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.DropDownListFor(model => actionEdu.StatutId, Model.Sel_Statut, htmlAttributes: new { @class = "form-control" }) @Html.ValidationMessageFor(model => actionEdu.StatutId, "", new { @class = "text-danger" })
@Html.LabelFor(model => actionEdu.Description, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => actionEdu.Description, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => actionEdu.Description, "", new { @class = "text-danger" })
@Html.LabelFor(model => actionEdu.CommentairePublic, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => actionEdu.CommentairePublic, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => actionEdu.CommentairePublic, "", new { @class = "text-danger" })
@Html.LabelFor(model => actionEdu.CommentaireInterne, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => actionEdu.CommentaireInterne, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => actionEdu.CommentaireInterne, "", new { @class = "text-danger" })
@if (Model.Acces == ModeAcces.Modification) {
@Html.LabelFor(model => actionEdu.Neutralise, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => actionEdu.Neutralise, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => actionEdu.Neutralise, "", new { @class = "text-danger" })
}
@if (Model.Acces == ModeAcces.Modification) { Annuler } else { Annuler }
} @section Scripts { @Scripts.Render("~/bundles/jqueryval") }