Create.cshtml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. @model CD67.ModeleMVC.Entity.PARAM
  2. @{
  3. ViewBag.Title = "Create";
  4. Layout = "~/Views/Shared/_AppLayout.cshtml";
  5. }
  6. <h2>Create</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. <div class="form-group">
  15. @Html.LabelFor(model => model.PRM_CLE, htmlAttributes: new { @class = "control-label col-md-2" })
  16. <div class="col-md-10">
  17. @Html.EditorFor(model => model.PRM_CLE, new { htmlAttributes = new { @class = "form-control" } })
  18. @Html.ValidationMessageFor(model => model.PRM_CLE, "", new { @class = "text-danger" })
  19. </div>
  20. </div>
  21. <div class="form-group">
  22. @Html.LabelFor(model => model.PRM_LIB1, htmlAttributes: new { @class = "control-label col-md-2" })
  23. <div class="col-md-10">
  24. @Html.EditorFor(model => model.PRM_LIB1, new { htmlAttributes = new { @class = "form-control" } })
  25. @Html.ValidationMessageFor(model => model.PRM_LIB1, "", new { @class = "text-danger" })
  26. </div>
  27. </div>
  28. <div class="form-group">
  29. @Html.LabelFor(model => model.PRM_LIB2, htmlAttributes: new { @class = "control-label col-md-2" })
  30. <div class="col-md-10">
  31. @Html.EditorFor(model => model.PRM_LIB2, new { htmlAttributes = new { @class = "form-control" } })
  32. @Html.ValidationMessageFor(model => model.PRM_LIB2, "", new { @class = "text-danger" })
  33. </div>
  34. </div>
  35. <div class="form-group">
  36. <div class="col-md-offset-2 col-md-10">
  37. <input type="submit" value="Create" class="btn btn-default" />
  38. </div>
  39. </div>
  40. </div>
  41. }
  42. <div>
  43. @Html.ActionLink("Back to List", "Index")
  44. </div>