Details.cshtml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. @model GreenTree.Strohrmann.ERP.Web.Models.Business.MaterialModel
  2. @{
  3. ViewData["Title"] = "Materialdetails";
  4. }
  5. <h1>Materialdetails</h1>
  6. <h4>@Model.Name</h4>
  7. <hr />
  8. <div class="card-deck">
  9. <div class="card">
  10. <div class="card-header pb-1">
  11. <h6>Allgemein</h6>
  12. </div>
  13. <div class="card-body">
  14. <dl class="row">
  15. <dt class = "col-sm-6">
  16. @Html.DisplayNameFor(model => model.Id)
  17. </dt>
  18. <dd class = "col-sm-6">
  19. @Html.DisplayFor(model => model.Id)
  20. </dd>
  21. <dt class = "col-sm-6">
  22. @Html.DisplayNameFor(model => model.Name)
  23. </dt>
  24. <dd class = "col-sm-6">
  25. @Html.DisplayFor(model => model.Name)
  26. </dd>
  27. <dt class = "col-sm-6">
  28. @Html.DisplayNameFor(model => model.Description)
  29. </dt>
  30. <dd class = "col-sm-6">
  31. @Html.DisplayFor(model => model.Description)
  32. </dd>
  33. </dl>
  34. </div>
  35. </div>
  36. <div class="card">
  37. <div class="card-header pb-1">
  38. <h6>Bemaßung</h6>
  39. </div>
  40. <div class="card-body">
  41. <dl class="row">
  42. <dt class = "col-sm-6">
  43. @Html.DisplayNameFor(model => model.DefaultUnit)
  44. </dt>
  45. <dd class = "col-sm-6">
  46. @Html.DisplayFor(model => model.DefaultUnit)
  47. </dd>
  48. <dt class = "col-sm-6">
  49. @Html.DisplayNameFor(model => model.Height)
  50. </dt>
  51. <dd class = "col-sm-6">
  52. @Html.DisplayFor(model => model.Height)
  53. </dd>
  54. <dt class = "col-sm-6">
  55. @Html.DisplayNameFor(model => model.Width)
  56. </dt>
  57. <dd class = "col-sm-6">
  58. @Html.DisplayFor(model => model.Width)
  59. </dd>
  60. <dt class = "col-sm-6">
  61. @Html.DisplayNameFor(model => model.Depth)
  62. </dt>
  63. <dd class = "col-sm-6">
  64. @Html.DisplayFor(model => model.Depth)
  65. </dd>
  66. </dl>
  67. </div>
  68. </div>
  69. <div class="card">
  70. <div class="card-header pb-1">
  71. <h6>Herstellerdaten</h6>
  72. </div>
  73. <div class="card-body">
  74. <dl class="row">
  75. <dt class = "col-sm-6">
  76. @Html.DisplayNameFor(model => model.Supplier)
  77. </dt>
  78. <dd class = "col-sm-6">
  79. @Html.DisplayFor(model => model.Supplier.Name)
  80. </dd>
  81. <dt class = "col-sm-6">
  82. @Html.DisplayNameFor(model => model.ItemNumber)
  83. </dt>
  84. <dd class = "col-sm-6">
  85. @Html.DisplayFor(model => model.ItemNumber)
  86. </dd>
  87. </dl>
  88. </div>
  89. </div>
  90. </div>
  91. <hr />
  92. <div class="d-flex">
  93. @Html.ActionLink("Bearbeiten", "Edit", new { id = Model.Id })
  94. <div class="align-self-center ml-3">
  95. <a asp-action="Index">Zurück zur Liste</a>
  96. </div>
  97. <div class="align-self-center ml-auto">
  98. <a href="#" data-toggle="modal" data-target="#trackingModal">Änderungsinfo</a>
  99. </div>
  100. </div>
  101. <div id="trackingModal" class="modal fade" tabindex="-1" role="dialog">
  102. <div class="modal-dialog" role="document">
  103. <div class="modal-content modal-content-header-custom">
  104. <div class="modal-header modal-header-info text-white">
  105. <h5 class="modal-title">Änderungsinfo - @Model.Name</h5>
  106. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  107. <span aria-hidden="true">&times;</span>
  108. </button>
  109. </div>
  110. <div class="modal-body">
  111. <dl class="row">
  112. <dt class = "col-sm-4">
  113. @Html.DisplayNameFor(model => model.CreatedBy)
  114. </dt>
  115. <dd class = "col-sm-6">
  116. @Html.DisplayFor(model => model.CreatedBy)
  117. </dd>
  118. <dt class = "col-sm-4">
  119. @Html.DisplayNameFor(model => model.CreatedOn)
  120. </dt>
  121. <dd class = "col-sm-6">
  122. @Html.DisplayFor(model => model.CreatedOn)
  123. </dd>
  124. </dl>
  125. <dl class="row">
  126. <dt class = "col-sm-4">
  127. @Html.DisplayNameFor(model => model.ChangedBy)
  128. </dt>
  129. <dd class = "col-sm-6">
  130. @Html.DisplayFor(model => model.ChangedBy)
  131. </dd>
  132. <dt class = "col-sm-4">
  133. @Html.DisplayNameFor(model => model.ChangedOn)
  134. </dt>
  135. <dd class = "col-sm-6">
  136. @Html.DisplayFor(model => model.ChangedOn)
  137. </dd>
  138. </dl>
  139. </div>
  140. <div class="modal-footer">
  141. <button type="button" class="btn btn-secondary" data-dismiss="modal">Schließen</button>
  142. </div>
  143. </div>
  144. </div>
  145. </div>