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.

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

Powered by TurnKey Linux.