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

AJOUTER ADHERENT

@using (Html.BeginForm("CreateASSURE", "ADHERENTS", FormMethod.Post, new { enctype = "multipart/form-data" })) { @Html.AntiForgeryToken()
@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => model.ETAT, new { @id = "ETAT", @value = "0" }) @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.NOM, htmlAttributes: new { @class = "control-label " }) @Html.EditorFor(model => model.NOM, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.NOM, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.PRENOMS, htmlAttributes: new { @class = "control-label " }) @Html.EditorFor(model => model.PRENOMS, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.PRENOMS, "", 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_11" }) @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_10" }) @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", @max = DateTime.Today.ToString("yyyy-MM-dd"), @min = "2000-01-01" } }) @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", @max = DateTime.Today.ToString("yyyy-MM-dd"),@min="2000-01-01" } }) @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_8" }) @Html.ValidationMessageFor(model => model.IDENTREPRISES, "", new { @class = "text-danger" })
 
 
}
@section scripts{ }