Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. @model HomeDepotWebApp.Models.CustomerToolViewModel
  2.  
  3. @{
  4. ViewBag.Title = "Detailed";
  5. }
  6.  
  7. <h2>Detailed</h2>
  8.  
  9. <div>
  10. <h4>Customer</h4>
  11. <hr />
  12. <dl class="dl-horizontal">
  13. <dt>
  14. @Html.DisplayNameFor(model => model.Customer.Name)
  15. </dt>
  16.  
  17. <dd>
  18. @Html.DisplayFor(model => model.Customer.Name)
  19. </dd>
  20.  
  21. <dt>
  22. @Html.DisplayNameFor(model => model.Customer.Address)
  23. </dt>
  24.  
  25. <dd>
  26. @Html.DisplayFor(model => model.Customer.Address)
  27. </dd>
  28.  
  29. <dt>
  30. @Html.DisplayNameFor(model => model.Customer.Email)
  31. </dt>
  32.  
  33. <dd>
  34. @Html.DisplayFor(model => model.Customer.Email)
  35. </dd>
  36.  
  37. <dt>
  38. @Html.DisplayNameFor(model => model.Customer.Password)
  39. </dt>
  40.  
  41. <dd>
  42. @Html.DisplayFor(model => model.Customer.Password)
  43. </dd>
  44. @using (Html.BeginForm("Detailed", "Home"))
  45. {
  46. <dt>
  47. Værktøj
  48. </dt>
  49. <dd>
  50. @Html.DropDownListFor(model => model.SelectedValue, Model.SelectList);
  51. @Html.HiddenFor(model => model.SelectedTool.Id);
  52. </dd>
  53.  
  54. <dd>
  55. <label>Start dato</label>
  56. @Html.TextBoxFor(model => model.StartDate, new { @type = "date", @class = "form-control datepicker", @Value = Model.StartDate.ToString("yyyy-MM-dd") })
  57. </dd>
  58. <dd>
  59. <label>Slut dato</label>
  60. @Html.TextBoxFor(model => model.EndDate, new { @type = "date", @class = "form-control datepicker", @Value = Model.EndDate.ToString("yyyy-MM-dd") })
  61. </dd>
  62. <dd>
  63. @Html.HiddenFor(model => model.Customer.Id)
  64. @Html.HiddenFor(model => model.Customer.Name)
  65. @Html.HiddenFor(model => model.Customer.Address)
  66. @Html.HiddenFor(model => model.Customer.Email)
  67. @Html.HiddenFor(model => model.Customer.Password)
  68. </dd>
  69. <dd>
  70. <input type="submit" value="Opret Booking" />
  71. </dd>
  72. }
  73. </dl>
  74. </div>
  75. <p>
  76. @* @Html.ActionLink("Edit", "Edit", new { id = Model.Id }) |*@
  77. @Html.ActionLink("Log ud", "Index")
  78. </p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement