You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
3.8KB

  1. <h2><%= H(Model.Title & " " & Model.Kit.Jurisdiction) %></h2>
  2. <%= HTML.Hidden("nonce", HTMLSecurity.GetAntiCSRFToken("KitEditForm")) %>
  3. <%= HTML.Hidden("Id", Model.Kit.ID) %>
  4. <div class="row">
  5. <div class="col-md-6">
  6. <h2>Job Number: <%= Model.Kit.JobNumber %></h2>
  7. <p><strong>Jurisdiction:</strong> <%= Model.Kit.Jurisdiction %></p>
  8. <p><strong>Label Count:</strong> <%= Model.Kit.LabelCount %></p>
  9. <p><strong>Created On:</strong> <%= Model.Kit.CreatedOn %></p>
  10. <p><strong>Labels Printed On :</strong> <%= Model.Kit.LabelsPrinted %></p>
  11. <p><strong>Exported to SnailWorks On:</strong> <%= Model.Kit.ExportedToSnailWorks %></p>
  12. <% IF Model.Kit.Status = "Ready To Assign STIDS" THEN %>
  13. <%= HTML.FormTag("Kit","SwitchBoardPurpleEnvelopeEditPost",empty,empty) %>
  14. <p><strong>Amount of Office Copies:</strong></p>
  15. <%= HTML.TextBox("OfficeCopiesAmount","0") %>
  16. <p></p>
  17. <p><strong>Select Outbound STID:</strong></p>
  18. <%= HTML.Hidden("nonce", HTMLSecurity.GetAntiCSRFToken("KitEditForm")) %>
  19. <%= HTML.Hidden("Id", Model.Kit.ID) %>
  20. <%= HTML.DropDownListExt("OutboundSTID","hmm",Model.StidDropDown,"STID","OPTION",Array("Class","form-select")) %>
  21. <p></p>
  22. <%= HTML.Checkbox("InBoundTracking",0) %><strong>Inbound Tracking</strong>
  23. <p></p>
  24. <p><%= HTML.Button("submit", "<i class='glyphicon glyphicon-ok'></i> Save", "btn-primary") %></p>
  25. </form>
  26. <p></p>
  27. <hr>
  28. <h4>Color Assignment</h4>
  29. <div class="card mb-3">
  30. <div class="card-header">
  31. <strong>Assign Color to ALL Labels in Kit</strong>
  32. </div>
  33. <div class="card-body">
  34. <%= HTML.FormTag("Kit","AssignKitColorPost",empty,empty) %>
  35. <%= HTML.Hidden("nonce", HTMLSecurity.GetAntiCSRFToken("ColorAssignForm")) %>
  36. <%= HTML.Hidden("Id", Model.Kit.ID) %>
  37. <div class="row">
  38. <div class="col-md-6">
  39. <label>Select Color for All Labels:</label>
  40. <%= HTML.DropDownListExt("KitColorId","",Model.ColorsDropDown,"ID","Name",Array("Class","form-select")) %>
  41. </div>
  42. <div class="col-md-6">
  43. <p></p>
  44. <%= HTML.Button("submit", "<i class='glyphicon glyphicon-ok'></i> Apply to All", "btn-success") %>
  45. </div>
  46. </div>
  47. </form>
  48. </div>
  49. </div>
  50. <div class="card mb-3">
  51. <div class="card-header">
  52. <strong>Assign Colors by Precinct</strong>
  53. </div>
  54. <div class="card-body">
  55. <%= HTML.FormTag("Kit","AssignPrecinctColorsPost",empty,empty) %>
  56. <%= HTML.Hidden("nonce", HTMLSecurity.GetAntiCSRFToken("ColorAssignForm")) %>
  57. <%= HTML.Hidden("Id", Model.Kit.ID) %>
  58. <table class="table table-striped">
  59. <thead>
  60. <tr>
  61. <th>Precinct</th>
  62. <th>Current Color</th>
  63. <th>Assign New Color</th>
  64. </tr>
  65. </thead>
  66. <tbody>
  67. <%
  68. dim precinctRS : set precinctRS = Model.Precincts
  69. dim colorsRS
  70. Do Until precinctRS.EOF
  71. %>
  72. <tr>
  73. <td><%= H(precinctRS("PRECINCT")) %></td>
  74. <td>
  75. <% If Not IsNull(precinctRS("ColorId")) AND Len(precinctRS("ColorId")) > 0 Then %>
  76. <% dim currentColor : set currentColor = ColorsRepository.FindByID(precinctRS("ColorId")) %>
  77. <%= H(currentColor.Name) %>
  78. <% Else %>
  79. <em>Not assigned</em>
  80. <% End If %>
  81. </td>
  82. <td>
  83. <%
  84. set colorsRS = ColorsRepository.GetColorsDropDownRS()
  85. %>
  86. <%= HTML.DropDownListExt("PrecinctColor_" & precinctRS("PRECINCT"), precinctRS("ColorId"), colorsRS, "ID", "Name", Array("Class","form-select form-select-sm")) %>
  87. </td>
  88. </tr>
  89. <%
  90. precinctRS.MoveNext
  91. Loop
  92. %>
  93. </tbody>
  94. </table>
  95. <p><%= HTML.Button("submit", "<i class='glyphicon glyphicon-ok'></i> Save Precinct Colors", "btn-primary") %></p>
  96. </form>
  97. </div>
  98. </div>
  99. <% ELSE %>
  100. <p><strong>Office Copies Amount :</strong> <%= Model.Kit.OfficeCopiesAmount %></p>
  101. <% END IF %>
  102. </div>
  103. </div>

Powered by TurnKey Linux.