@model Employe @{ string titre = "Création d'employés"; ViewBag.Title = titre; }

@titre

@using( Html.BeginForm(null, null, FormMethod.Post, new { @class = "form-horizontal", role = "form" } ) ) { @Html.AntiForgeryToken()
@Html.TextBoxFor( m => m.Id, new { @class = "form-control" } )
@Html.EditorFor( m => m.Nom, new { htmlAttributes = new { @class = "form-control" } } ) @* La convention pour passer des htmlAttributes à un EditorFor : Lourdingue.... *@
@Html.EnumDropDownListFor( m => m.Poste, ". . . Choisir un poste . . .", new { @class = "form-control" } )
@Html.TextBoxFor( m => m.Salaire, new { @class = "form-control" } )
}
@Html.ValidationSummary()