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

Create

@using (Html.BeginForm()) { @Html.AntiForgeryToken()

SOUSPOSTE


@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.libelleSousPost, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.libelleSousPost, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.libelleSousPost, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.idPost, "idPost", htmlAttributes: new { @class = "control-label col-md-2" })
@Html.DropDownList("idPost", null, htmlAttributes: new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.idPost, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.etat, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.etat, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.etat, "", new { @class = "text-danger" })
}
@Html.ActionLink("Back to List", "Index")
@section Scripts { @Scripts.Render("~/bundles/jqueryval") }