| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- @model CD67.ModeleMVC.Entity.TypeViking
- @{
- ViewBag.Title = "Create";
- Layout = "~/Views/Shared/_Layout.cshtml";
- }
- <title>Type de Vikings</title>
- <h2>Creation</h2>
- @using (Html.BeginForm())
- {
- @Html.AntiForgeryToken()
- <div class="form-horizontal">
- <h4>Type de Viking</h4>
- <hr />
- @Html.ValidationSummary(true, "", new { @class = "text-danger" })
- @*Contenu généré mais masqué car inutile, la clé est générée automatiquement dans mon exemple par un trigger/sequence*@
- @*<div class="form-group">
- @Html.LabelFor(model => model.ID, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => model.ID, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.ID, "", new { @class = "text-danger" })
- </div>
- </div>*@
- <div class="form-group">
- @Html.LabelFor(model => model.Libelle, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => model.Libelle, new { htmlAttributes = new { @class = "form-control autofocus" } })
- @Html.ValidationMessageFor(model => model.Libelle, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="col-md-7">
- </div>
- <div class="form-group col-md-5">
- <div class="col-md-offset-2 col-md-10">
- <input type="submit" value="Ajouter" class="btn btn-success" />
- <input onclick="location.href='@Url.Action("Index", "TypeViking")';return false;" value="Retour" class="btn btn-default" />
- </div>
- </div>
- </div>
- }
|