@model MALDFGASSURANCE.Models.POSTE @{ ViewBag.Title = "Create"; }

AJOUTER DE CATEGORIE DE COMPTE

@using (Html.BeginForm()) { @Html.AntiForgeryToken()
@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @if (ViewBag.Message != null) {

@ViewBag.Message

}
@Html.LabelFor(model => model.libellePost, "Catégorie de Compte", htmlAttributes: new { @class = "control-label " }) @Html.EditorFor(model => model.libellePost, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.libellePost, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.idRole, "Role du compte", htmlAttributes: new { @class = "control-label " }) @Html.DropDownList("idRole", null, htmlAttributes: new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.idRole, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.idTypePoste, "Type de compte", htmlAttributes: new { @class = "control-label " }) @Html.DropDownList("idTypePoste", null, htmlAttributes: new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.idTypePoste, "", new { @class = "text-danger" })
}
@section Scripts { @Scripts.Render("~/bundles/jqueryval") }