Advertisement
Guest User

Untitled

a guest
May 24th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. <table class="table table-striped table-hover">
  2. <thead>
  3. <tr>
  4. <th style="width: 5%;"></th>
  5. <th>Name</th>
  6. <th style="width: 17%;">And/Or Preset</th>
  7. <th style="width: 5%;">PO</th>
  8. </tr>
  9. </thead>
  10. <tbody id="tableBody" class="selectableList" data-specifications-table-body>
  11. @for (var i = 0; i < Model.EnabledSpecifications.Count; i++)
  12. {
  13. <tr id="specification" class="selectable">
  14. @Html.HiddenFor(_ => Model.EnabledSpecifications[i].Id)
  15. @Html.HiddenFor(_ => Model.EnabledSpecifications[i].Name)
  16. @Html.HiddenFor(_ => Model.EnabledSpecifications[i].SortOrder)
  17. <td id="dragAndDropFaker" hidden="hidden"></td>
  18. <td id="dragAndDrop">
  19. <span class="pull-left">
  20. <i class="fa fa-bars" data-drag-handle></i>
  21. </span>
  22. </td>
  23. <td id="name">
  24. <span class="@(Model.EnabledSpecifications[i].Processed ? "" : "newSpecification")">
  25. @Html.DisplayFor(_ => Model.EnabledSpecifications[i].Name)
  26. </span>
  27. </td>
  28. <td id="andOr">
  29. @Html.DropDownListFor(_ => Model.EnabledSpecifications[i].AndOrPreset, EnumHelper.GetSelectList(typeof(ProductSpecification.AndOrPresets), Model.EnabledSpecifications[i].AndOrPreset), new {@class = "andOrPreset"})
  30. </td>
  31. <td id="enabledSpecification" class="toggler-checkbox">
  32. @Html.CheckBoxFor(_ => Model.EnabledSpecifications[i].Enabled)
  33. </td>
  34. </tr>
  35. }
  36. </tbody>
  37. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement