@model CD67.ModeleMVC.Entity.Viking @{ ViewBag.Title = "Edit"; Layout = "~/Views/Shared/_Layout.cshtml"; } Vikings

Edition

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

Viking


@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => model.Id) @Html.HiddenFor(model => model.DateCreation)
@Html.LabelFor(model => model.Nom, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Nom, new { htmlAttributes = new { @class = "form-control autofocus" } }) @Html.ValidationMessageFor(model => model.Nom, "", new { @class = "text-danger" })
@*Liste de choix pour le type, rempli gràce au ViewBag dans le contrôleur*@
@Html.LabelFor(model => model.TypeViking, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.DropDownListFor(model => model.TypeVikingId, (IEnumerable)ViewBag.ListeTypesViking, htmlAttributes: new { @class = "form-control custom-dropdown col-md-12" }) @Html.ValidationMessageFor(model => model.TypeViking, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Description, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Description, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Description, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.costaud, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.costaud, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.costaud, "", new { @class = "text-danger" }) @Html.DescriptionFor(model => model.costaud)
@Html.LabelFor(model => model.NombreVictoires, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.NombreVictoires, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.NombreVictoires, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.CasqueCornu, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.CasqueCornu, new { htmlAttributes = new { @class = "form-control" } })
}