Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.21 KB | None | 0 0
  1. @using Synthesis.Admin.Models.UpdaterService
  2. @model IEnumerable<StepInputModel>
  3.  
  4. @{
  5. ViewBag.Title = "Edit";
  6. Layout = "~/Views/Shared/_Layout.cshtml";
  7. }
  8.  
  9. @section breadcrumb
  10. {
  11. <ol class="breadcrumb bc-3">
  12. <li>
  13. <a href="~/"><i class="fa-home"></i>Home</a>
  14. </li>
  15. <li>
  16. <a href="@Url.Action("Index", "Versions")">Versions</a>
  17. </li>
  18. <li>
  19. <a href="@Url.Action("Details", "Versions", new { Id = ViewBag.VersionId })">@ViewBag.VersionId</a>
  20. </li>
  21. <li class="active">
  22. <strong>Steps</strong>
  23. </li>
  24. </ol>
  25. }
  26.  
  27. @{
  28. var installationSteps = Model.Where(x => x.Type == "INSTALLATION").OrderBy(x => x.Order).ToList();
  29. var verificationSteps = Model.Where(x => x.Type == "VERIFICATION").OrderBy(x => x.Order).ToList();
  30. }
  31.  
  32. <div id="installation-steps" class="row">
  33. <div class="col-xs-12">
  34. <div class="row">
  35. <div class="col-xs-12 text-center"><h3>Verification steps</h3></div>
  36. </div>
  37. <div class="row">
  38. <div class="col-xs-2"><strong>Action type</strong></div>
  39. <div class="col-xs-4"><strong>Body</strong></div>
  40. <div class="col-xs-4"><strong>Expected result</strong></div>
  41. <div class="col-xs-2"><strong>Actions</strong></div>
  42. </div>
  43. <div class="row">
  44. <div class="col-xs-12" id="verification-steps-container">
  45. @if (verificationSteps.Count > 0)
  46. {
  47. foreach (StepInputModel step in installationSteps)
  48. {
  49. <div class="row" data-step-id="@step.Id">
  50. <div class="col-xs-2" data-type="action-type">
  51. @step.ActionType
  52. </div>
  53. <div class="col-xs-4" data-type="body">
  54. @step.Body
  55. </div>
  56. <div class="col-xs-4" data-type="expected-result">
  57. @step.ExpectedResult
  58. </div>
  59. <div class="col-xs-2" data-type="expected-result">
  60. <a href="#" data-step-id="@step.Id">
  61. <i class="entypo-pencil"></i>
  62. </a> |
  63. <a href="#" data-step-id="@step.Id">
  64. <i class="entypo-up"></i>
  65. </a> |
  66. <a href="#" data-step-id="@step.Id">
  67. <i class="entypo-down"></i>
  68. </a> |
  69. <a href="#" data-step-id="@step.Id">
  70. <i class="entypo-erase"></i>
  71. </a>
  72. </div>
  73. </div>
  74. }
  75. }
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80.  
  81. <div id="installation-steps" class="row">
  82. <div class="col-xs-12">
  83. <div class="row">
  84. <div class="col-xs-12 text-center"><h3>Verification steps</h3></div>
  85. </div>
  86. <div class="row">
  87. <div class="col-xs-2"><strong>Action type</strong></div>
  88. <div class="col-xs-4"><strong>Body</strong></div>
  89. <div class="col-xs-4"><strong>Expected result</strong></div>
  90. <div class="col-xs-2"><strong>Actions</strong></div>
  91. </div>
  92. <div class="row">
  93. <div class="col-xs-12" id="verification-steps-container">
  94. @if (verificationSteps.Count > 0)
  95. {
  96. foreach (StepInputModel step in verificationSteps)
  97. {
  98. <div class="row" data-step-id="@step.Id">
  99. <div class="col-xs-2" data-type="action-type">
  100. @step.ActionType
  101. </div>
  102. <div class="col-xs-4" data-type="body">
  103. @step.Body
  104. </div>
  105. <div class="col-xs-4" data-type="expected-result">
  106. @step.ExpectedResult
  107. </div>
  108. <div class="col-xs-2" data-type="expected-result">
  109. <a href="#" data-step-id="@step.Id">
  110. <i class="entypo-pencil"></i>
  111. </a> |
  112. <a href="#" data-step-id="@step.Id">
  113. <i class="entypo-up"></i>
  114. </a> |
  115. <a href="#" data-step-id="@step.Id">
  116. <i class="entypo-down"></i>
  117. </a> |
  118. <a href="#" data-step-id="@step.Id">
  119. <i class="entypo-erase"></i>
  120. </a>
  121. </div>
  122. </div>
  123. }
  124. }
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129.  
  130. @section scripts {
  131. @Scripts.Render("~/Scripts/StepsEdit.js")
  132. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement