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

AJOUTER ADHERENT

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

@ViewBag.Message

}
@Html.LabelFor(model => model.MATRICULE_PROFESSIONNEL_ADERANT, "MATRICULE PROFESSIONNEL", htmlAttributes: new { @class = "control-label " }) @Html.EditorFor(model => model.MATRICULE_PROFESSIONNEL_ADERANT, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.MATRICULE_PROFESSIONNEL_ADERANT, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.NOMS_ET_PRENOMS, "NOM ", htmlAttributes: new { @class = "control-label " }) @Html.EditorFor(model => model.NOMS_ET_PRENOMS, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.NOMS_ET_PRENOMS, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.IDUTILISATEUR, "PRENOMS", htmlAttributes: new { @class = "control-label " }) @Html.EditorFor(model => model.IDUTILISATEUR, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.IDUTILISATEUR, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.CODE_FONCTION, "FONCTION", htmlAttributes: new { @class = "control-label " }) @Html.DropDownList("CODE_FONCTION", null, htmlAttributes: new { @class = "form-control select2", @id = "kt_select2_1" }) @Html.ValidationMessageFor(model => model.CODE_FONCTION, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.CODE_CATEGORIE_PROFESSIONELLE, "CATEGORIE PROFESSIONELLE", htmlAttributes: new { @class = "control-label " }) @Html.DropDownList("CODE_CATEGORIE_PROFESSIONELLE", null, htmlAttributes: new { @class = "form-control select2", @id = "kt_select2_2" }) @Html.ValidationMessageFor(model => model.CODE_CATEGORIE_PROFESSIONELLE, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.DATE_EMBAUCHE, "DATE EMBAUCHE", htmlAttributes: new { @class = "control-label " }) @Html.EditorFor(model => model.DATE_EMBAUCHE, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.DATE_EMBAUCHE, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.DATE_DEBUT_ADHESION, "DATE DEBUT ADHESION", htmlAttributes: new { @class = "control-label " }) @Html.EditorFor(model => model.DATE_DEBUT_ADHESION, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.DATE_DEBUT_ADHESION, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.IDENTREPRISES, "ENTREPRISE", htmlAttributes: new { @class = "control-label " }) @Html.DropDownList("IDENTREPRISES", null, htmlAttributes: new { @class = "form-control select2", @id = "kt_select2_3" }) @Html.ValidationMessageFor(model => model.IDENTREPRISES, "", new { @class = "text-danger" })
}