Edit.cshtml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. @model CD67.ModeleMVC.Entity.PARAM
  2. @{
  3. ViewBag.Title = "Edit";
  4. Layout = "~/Views/Shared/_AppLayout.cshtml";
  5. }
  6. <h2>Edit</h2>
  7. @using (Html.BeginForm())
  8. {
  9. @Html.AntiForgeryToken()
  10. <div class="form-horizontal">
  11. <h4>PARAM</h4>
  12. <hr />
  13. @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  14. @Html.HiddenFor(model => model.PRM_CLE)
  15. <div class="form-group">
  16. @Html.LabelFor(model => model.PRM_LIB1, htmlAttributes: new { @class = "control-label col-md-2" })
  17. <div class="col-md-10">
  18. @Html.EditorFor(model => model.PRM_LIB1, new { htmlAttributes = new { @class = "form-control" } })
  19. @Html.ValidationMessageFor(model => model.PRM_LIB1, "", new { @class = "text-danger" })
  20. </div>
  21. </div>
  22. <div class="form-group">
  23. @Html.LabelFor(model => model.PRM_LIB2, htmlAttributes: new { @class = "control-label col-md-2" })
  24. <div class="col-md-10">
  25. @Html.EditorFor(model => model.PRM_LIB2, new { htmlAttributes = new { @class = "form-control" } })
  26. @Html.ValidationMessageFor(model => model.PRM_LIB2, "", new { @class = "text-danger" })
  27. </div>
  28. </div>
  29. <div class="form-group">
  30. <div class="col-md-offset-2 col-md-10">
  31. <input type="submit" value="Save" class="btn btn-default" />
  32. </div>
  33. </div>
  34. </div>
  35. }
  36. <div>
  37. @Html.ActionLink("Back to List", "Index")
  38. </div>