25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
5.1KB

  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. <% ELSE %>
  28. <p><strong>Office Copies Amount :</strong> <%= Model.Kit.OfficeCopiesAmount %></p>
  29. <% END IF %>
  30. <button class="btn btn-primary" id="toggleChild">Show Label Records</button>
  31. </div>
  32. </div>
  33. <div class="row">
  34. <div class="col-md-4">
  35. <table id="KitLabels" class="table table-striped child-records" style="display:none">
  36. <thead>
  37. <tr>
  38. <th></th>
  39. <th style="text-align: left">ID</th>
  40. <th style="text-align: left">KitID</th>
  41. <th style="text-align: left">KitLabelID</th>
  42. <th style="text-align: left">VOTERID</th>
  43. <th style="text-align: left">LASTNAME</th>
  44. <th style="text-align: left">FIRSTNAME</th>
  45. <th style="text-align: left">MIDDLENAME</th>
  46. <th style="text-align: left">SUFFIX</th>
  47. <th style="text-align: left">PRECINCT</th>
  48. <th style="text-align: left">ADDRESS1</th>
  49. <th style="text-align: left">ADDRESS2</th>
  50. <th style="text-align: left">ADDRESS3</th>
  51. <th style="text-align: left">ADDRESS4</th>
  52. <th style="text-align: left">ADDRESS5</th>
  53. <th style="text-align: left">APPSENT</th>
  54. <th style="text-align: left">APPRETURNED</th>
  55. <th style="text-align: left">BALSENT</th>
  56. <th style="text-align: left">BALRETURNED</th>
  57. <th style="text-align: left">CountingBoard</th>
  58. <th style="text-align: left">UOCAVASTATUS</th>
  59. <th style="text-align: left">EMAILADDRESS</th>
  60. <th style="text-align: left">PHONENUMBER</th>
  61. <th style="text-align: left">BALLOT_NUMBER</th>
  62. <th style="text-align: left">CassADDRESS1</th>
  63. <th style="text-align: left">CassADDRESS2</th>
  64. <th style="text-align: left">CassADDRESS3</th>
  65. <th style="text-align: left">CassADDRESS4</th>
  66. <th style="text-align: left">CassADDRESS5</th>
  67. <th></th>
  68. </tr>
  69. </thead>
  70. <tbody>
  71. <% dim it : set it = Model.Labels.Iterator %>
  72. <% dim KitLabels %>
  73. <% While it.HasNext %>
  74. <% set KitLabels = it.GetNext() %>
  75. <tr>
  76. <td>
  77. <%= HTML.LinkToExt("<i class='bi bi-search'></i>", "InkjetRecords", "Edit", Array("Id", KitLabels.ID), Array("class", "btn btn-primary")) %>
  78. </td>
  79. <td><% = H(KitLabels.ID) %></td>
  80. <td><% = H(KitLabels.KitId) %></td>
  81. <td><% = H(KitLabels.KitLabelID) %></td>
  82. <td><% = H(KitLabels.VOTERID) %></td>
  83. <td><% = H(KitLabels.LASTNAME) %></td>
  84. <td><% = H(KitLabels.FIRSTNAME) %></td>
  85. <td><% = H(KitLabels.MIDDLENAME) %></td>
  86. <td><% = H(KitLabels.SUFFIX) %></td>
  87. <td><% = H(KitLabels.PRECINCT) %></td>
  88. <td><% = H(KitLabels.ADDRESS1) %></td>
  89. <td><% = H(KitLabels.ADDRESS2) %></td>
  90. <td><% = H(KitLabels.ADDRESS3) %></td>
  91. <td><% = H(KitLabels.ADDRESS4) %></td>
  92. <td><% = H(KitLabels.ADDRESS5) %></td>
  93. <td><% = H(KitLabels.APPSENT) %></td>
  94. <td><% = H(KitLabels.APPRETURNED) %></td>
  95. <td><% = H(KitLabels.BALSENT) %></td>
  96. <td><% = H(KitLabels.BALRETURNED) %></td>
  97. <td><% = H(KitLabels.CountingBoard) %></td>
  98. <td><% = H(KitLabels.UOCAVASTATUS) %></td>
  99. <td><% = H(KitLabels.EMAILADDRESS) %></td>
  100. <td><% = H(KitLabels.PHONENUMBER) %></td>
  101. <td><% = H(KitLabels.BALLOT_NUMBER) %></td>
  102. <td><% = H(KitLabels.CassADDRESS1) %></td>
  103. <td><% = H(KitLabels.CassADDRESS2) %></td>
  104. <td><% = H(KitLabels.CassADDRESS3) %></td>
  105. <td><% = H(KitLabels.CassADDRESS4) %></td>
  106. <td><% = H(KitLabels.CassADDRESS5) %></td>
  107. </tr>
  108. <% Wend %>
  109. </tbody>
  110. </table>
  111. </div>
  112. </div>
  113. <script>
  114. document.getElementById('toggleChild').addEventListener('click', function() {
  115. var childRecords = document.querySelector('.child-records');
  116. if (childRecords.style.display === 'none') {
  117. childRecords.style.display = 'block';
  118. this.textContent = 'Hide Label Records';
  119. } else {
  120. childRecords.style.display = 'none';
  121. this.textContent = 'Show Label Records';
  122. }
  123. });
  124. </script>

Powered by TurnKey Linux.