| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- @model CD67.ModeleMVC.Entity.EXEMPLE_VIKINGS
- @{
- ViewBag.Title = "Edit";
- Layout = "~/Views/Shared/_AppLayout.cshtml";
- }
- <h2>Edition</h2>
- @using (Html.BeginForm())
- {
- @Html.AntiForgeryToken()
- <div class="form-horizontal">
- <h4>Viking</h4>
- <hr />
- @Html.ValidationSummary(true, "", new { @class = "text-danger" })
- @Html.HiddenFor(model => model.ID)
- <div class="form-group">
- @Html.LabelFor(model => model.NOM, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => model.NOM, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.NOM, "", new { @class = "text-danger" })
- </div>
- </div>
- @*Liste de choix pour le type, rempli gràce au ViewBag dans le contrôleur*@
- <div class="form-group">
- @Html.LabelFor(model => model.ID_TYPE, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.DropDownList("ID_TYPE", null, htmlAttributes: new { @class = "form-control" })
- @Html.ValidationMessageFor(model => model.ID_TYPE, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => model.DESCRIPTION, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => model.DESCRIPTION, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.DESCRIPTION, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => model.alwaysYes, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => model.alwaysYes, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.alwaysYes, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => model.alwaysNo, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => model.alwaysNo, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.alwaysNo, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <input type="submit" value="Enregistrer" class="btn btn-primary" />
- <input type="reset" value="Annuler" class="btn btn-default" />
- </div>
- </div>
- </div>
- }
- <div>
- @Html.ActionLink("Retour", "Index")
- </div>
|