decidim-elections 0.24.3 → 0.25.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (433) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -0
  3. data/app/cells/decidim/elections/election_m/tags.erb +3 -0
  4. data/app/cells/decidim/elections/election_m_cell.rb +1 -8
  5. data/app/cells/decidim/elections/election_preview/show.erb +28 -0
  6. data/app/cells/decidim/elections/election_preview_cell.rb +13 -0
  7. data/app/cells/decidim/elections/election_results/blank_votes.erb +7 -0
  8. data/app/cells/decidim/elections/election_results/progress_bar.erb +16 -0
  9. data/app/cells/decidim/elections/election_results/show.erb +40 -0
  10. data/app/cells/decidim/elections/election_results_cell.rb +13 -0
  11. data/app/cells/decidim/elections/election_vote_cta/show.erb +35 -0
  12. data/app/cells/decidim/elections/election_vote_cta_cell.rb +83 -0
  13. data/app/cells/decidim/elections/remaining_time_callout/show.erb +5 -0
  14. data/app/cells/decidim/elections/remaining_time_callout_cell.rb +28 -0
  15. data/app/cells/decidim/elections/voting_step_navigation/show.erb +1 -1
  16. data/app/cells/decidim/elections/voting_step_navigation_cell.rb +1 -1
  17. data/app/cells/decidim/votings/content_blocks/highlighted_votings/show.erb +1 -1
  18. data/app/cells/decidim/votings/content_blocks/landing_page/attachments_and_folders_cell.rb +8 -1
  19. data/app/cells/decidim/votings/content_blocks/landing_page/description/show.erb +25 -0
  20. data/app/cells/decidim/votings/content_blocks/landing_page/description_cell.rb +20 -2
  21. data/app/cells/decidim/votings/content_blocks/landing_page/elections/show.erb +15 -0
  22. data/app/cells/decidim/votings/content_blocks/landing_page/elections/single.erb +11 -0
  23. data/app/cells/decidim/votings/content_blocks/landing_page/elections_cell.rb +33 -1
  24. data/app/cells/decidim/votings/content_blocks/landing_page/header/show.erb +29 -0
  25. data/app/cells/decidim/votings/content_blocks/landing_page/header_cell.rb +95 -2
  26. data/app/cells/decidim/votings/content_blocks/landing_page/header_settings_form/show.erb +4 -0
  27. data/app/cells/decidim/votings/content_blocks/landing_page/{stats_cell.rb → header_settings_form_cell.rb} +5 -3
  28. data/app/cells/decidim/votings/content_blocks/landing_page/metrics/show.erb +12 -0
  29. data/app/cells/decidim/votings/content_blocks/landing_page/metrics_cell.rb +6 -2
  30. data/app/cells/decidim/votings/content_blocks/landing_page/polling_stations/address.erb +14 -0
  31. data/app/cells/decidim/votings/content_blocks/landing_page/polling_stations/map.erb +18 -0
  32. data/app/cells/decidim/votings/content_blocks/landing_page/polling_stations/show.erb +25 -0
  33. data/app/cells/decidim/votings/content_blocks/landing_page/polling_stations_cell.rb +42 -1
  34. data/app/cells/decidim/votings/content_blocks/landing_page/statistics_cell.rb +24 -0
  35. data/app/cells/decidim/votings/content_blocks/landing_page/timeline/show.erb +7 -0
  36. data/app/cells/decidim/votings/content_blocks/landing_page/timeline_cell.rb +4 -2
  37. data/app/cells/decidim/votings/polling_officers/polling_officers_picker/show.erb +1 -1
  38. data/app/cells/decidim/votings/polling_station_closure_certificate/show.erb +9 -0
  39. data/app/cells/decidim/votings/polling_station_closure_certificate_cell.rb +12 -0
  40. data/app/cells/decidim/votings/polling_station_closure_recount/show.erb +74 -0
  41. data/app/cells/decidim/votings/polling_station_closure_recount_cell.rb +9 -0
  42. data/app/cells/decidim/votings/voting_m_cell.rb +2 -2
  43. data/app/commands/decidim/elections/admin/add_user_as_trustee.rb +2 -1
  44. data/app/commands/decidim/elections/admin/create_election.rb +2 -1
  45. data/app/commands/decidim/elections/admin/publish_results.rb +10 -6
  46. data/app/commands/decidim/elections/admin/setup_election.rb +73 -67
  47. data/app/commands/decidim/elections/admin/update_answer_selection.rb +1 -1
  48. data/app/commands/decidim/elections/trustee_zone/update_election_bulletin_board_status.rb +61 -2
  49. data/app/commands/decidim/elections/trustee_zone/update_trustee.rb +3 -0
  50. data/app/commands/decidim/elections/voter/cast_vote.rb +4 -7
  51. data/app/commands/decidim/elections/voter/update_vote_status.rb +23 -7
  52. data/app/commands/decidim/votings/admin/create_ballot_style.rb +58 -0
  53. data/app/commands/decidim/votings/admin/create_voting.rb +2 -1
  54. data/app/commands/decidim/votings/admin/destroy_ballot_style.rb +33 -0
  55. data/app/commands/decidim/votings/admin/monitoring_committee_validate_polling_station_closure.rb +37 -0
  56. data/app/commands/decidim/votings/admin/update_ballot_style.rb +70 -0
  57. data/app/commands/decidim/votings/admin/update_voting.rb +5 -14
  58. data/app/commands/decidim/votings/census/admin/create_dataset.rb +82 -0
  59. data/app/commands/decidim/votings/census/admin/create_datum.rb +55 -0
  60. data/app/commands/decidim/votings/census/admin/destroy_dataset.rb +45 -0
  61. data/app/commands/decidim/votings/census/admin/increment_dataset_processed_rows.rb +43 -0
  62. data/app/commands/decidim/votings/census/admin/launch_access_codes_export.rb +38 -0
  63. data/app/commands/decidim/votings/census/admin/launch_access_codes_generation.rb +44 -0
  64. data/app/commands/decidim/votings/census/admin/update_dataset.rb +51 -0
  65. data/app/commands/decidim/votings/certify_polling_station_closure.rb +46 -0
  66. data/app/commands/decidim/votings/check_census.rb +35 -0
  67. data/app/commands/decidim/votings/create_polling_station_closure.rb +53 -0
  68. data/app/commands/decidim/votings/create_polling_station_results.rb +83 -0
  69. data/app/commands/decidim/votings/send_access_code.rb +48 -0
  70. data/app/commands/decidim/votings/sign_polling_station_closure.rb +41 -0
  71. data/app/commands/decidim/votings/voter/in_person_vote.rb +55 -0
  72. data/app/commands/decidim/votings/voter/update_in_person_vote_status.rb +52 -0
  73. data/app/controllers/concerns/decidim/elections/has_vote_flow.rb +43 -0
  74. data/app/controllers/concerns/decidim/monitoring_committee_polling_station_closures/admin/filterable.rb +72 -0
  75. data/app/controllers/concerns/decidim/votings/needs_voting.rb +5 -5
  76. data/app/controllers/decidim/elections/admin/steps_controller.rb +5 -2
  77. data/app/controllers/decidim/elections/elections_controller.rb +18 -5
  78. data/app/controllers/decidim/elections/feedbacks_controller.rb +37 -3
  79. data/app/controllers/decidim/elections/trustee_zone/elections_controller.rb +15 -1
  80. data/app/controllers/decidim/elections/votes_controller.rb +101 -41
  81. data/app/controllers/decidim/votings/admin/ballot_styles_controller.rb +93 -0
  82. data/app/controllers/decidim/votings/admin/monitoring_committee_election_results_controller.rb +69 -0
  83. data/app/controllers/decidim/votings/admin/monitoring_committee_members_controller.rb +4 -0
  84. data/app/controllers/decidim/votings/admin/monitoring_committee_polling_station_closures_controller.rb +73 -0
  85. data/app/controllers/decidim/votings/admin/monitoring_committee_verify_elections_controller.rb +24 -0
  86. data/app/controllers/decidim/votings/admin/polling_stations_controller.rb +4 -0
  87. data/app/controllers/decidim/votings/admin/votings_controller.rb +1 -1
  88. data/app/controllers/decidim/votings/census/admin/application_controller.rb +19 -0
  89. data/app/controllers/decidim/votings/census/admin/census_controller.rb +191 -0
  90. data/app/controllers/decidim/votings/polling_officer_zone/closures_controller.rb +131 -0
  91. data/app/controllers/decidim/votings/polling_officer_zone/in_person_votes_controller.rb +149 -0
  92. data/app/controllers/decidim/votings/polling_officer_zone/polling_officers_controller.rb +10 -2
  93. data/app/controllers/decidim/votings/votings_controller.rb +91 -4
  94. data/app/events/decidim/elections/votes/vote_accepted_event.rb +1 -1
  95. data/app/forms/decidim/elections/admin/action_form.rb +5 -0
  96. data/app/forms/decidim/elections/admin/question_form.rb +1 -1
  97. data/app/forms/decidim/elections/admin/trustees_participatory_space_form.rb +1 -1
  98. data/app/forms/decidim/elections/{ballot → voter}/verify_vote_form.rb +1 -5
  99. data/app/forms/decidim/elections/voter/vote_form.rb +50 -0
  100. data/app/forms/decidim/votings/admin/ballot_style_form.rb +19 -0
  101. data/app/forms/decidim/votings/admin/monitoring_committee_polling_station_closure_form.rb +11 -0
  102. data/app/forms/decidim/votings/admin/publish_results_form.rb +64 -0
  103. data/app/forms/decidim/votings/admin/voting_form.rb +3 -2
  104. data/app/forms/decidim/votings/answer_result_form.rb +24 -0
  105. data/app/forms/decidim/votings/ballot_result_form.rb +28 -0
  106. data/app/forms/decidim/votings/census/admin/dataset_form.rb +25 -0
  107. data/app/forms/decidim/votings/census/admin/datum_form.rb +30 -0
  108. data/app/forms/decidim/votings/census/check_fields.rb +28 -0
  109. data/app/forms/decidim/votings/census/check_form.rb +13 -0
  110. data/app/forms/decidim/votings/census/frontend_fields.rb +42 -0
  111. data/app/forms/decidim/votings/census/in_person_fields.rb +48 -0
  112. data/app/forms/decidim/votings/census/in_person_form.rb +13 -0
  113. data/app/forms/decidim/votings/census/login_form.rb +13 -0
  114. data/app/forms/decidim/votings/census/online_fields.rb +28 -0
  115. data/app/forms/decidim/votings/closure_certify_form.rb +20 -0
  116. data/app/forms/decidim/votings/closure_result_form.rb +37 -0
  117. data/app/forms/decidim/votings/closure_sign_form.rb +11 -0
  118. data/app/forms/decidim/votings/envelopes_result_form.rb +34 -0
  119. data/app/forms/decidim/votings/question_result_form.rb +24 -0
  120. data/app/forms/decidim/votings/voter/in_person_vote_form.rb +40 -0
  121. data/app/jobs/decidim/votings/census/admin/create_datum_job.rb +41 -0
  122. data/app/jobs/decidim/votings/census/admin/export_access_codes_job.rb +39 -0
  123. data/app/jobs/decidim/votings/census/admin/generate_access_codes_job.rb +44 -0
  124. data/app/mailers/decidim/elections/vote_accepted_mailer.rb +29 -0
  125. data/app/mailers/decidim/votings/access_code_mailer.rb +34 -0
  126. data/app/mailers/decidim/votings/census/export_mailer.rb +44 -0
  127. data/app/models/decidim/elections/action.rb +1 -1
  128. data/app/models/decidim/elections/answer.rb +21 -0
  129. data/app/models/decidim/elections/bulletin_board_closure.rb +19 -0
  130. data/app/models/decidim/elections/election.rb +5 -4
  131. data/app/models/decidim/elections/question.rb +24 -13
  132. data/app/models/decidim/elections/result.rb +22 -0
  133. data/app/models/decidim/elections/trustee.rb +10 -1
  134. data/app/models/decidim/elections/vote.rb +2 -2
  135. data/app/models/decidim/votings/ballot_style.rb +29 -0
  136. data/app/models/decidim/votings/ballot_style_question.rb +11 -0
  137. data/app/models/decidim/votings/census/dataset.rb +32 -0
  138. data/app/models/decidim/votings/census/datum.rb +34 -0
  139. data/app/models/decidim/votings/in_person_vote.rb +22 -0
  140. data/app/models/decidim/votings/polling_station.rb +18 -1
  141. data/app/models/decidim/votings/polling_station_closure.rb +43 -0
  142. data/app/models/decidim/votings/voting.rb +38 -15
  143. data/app/packs/entrypoints/decidim_elections.js +2 -0
  144. data/app/packs/entrypoints/decidim_elections_admin_pending_action.js +1 -0
  145. data/app/packs/entrypoints/decidim_elections_admin_vote_statistics.js +1 -0
  146. data/app/packs/entrypoints/decidim_elections_election_log.js +1 -0
  147. data/app/packs/entrypoints/decidim_elections_onboarding.js +1 -0
  148. data/app/packs/entrypoints/decidim_elections_trustee_key_ceremony.js +1 -0
  149. data/app/packs/entrypoints/decidim_elections_trustee_tally.js +1 -0
  150. data/app/packs/entrypoints/decidim_elections_trustee_trustee_zone.js +1 -0
  151. data/app/packs/entrypoints/decidim_elections_trustee_zone.js +1 -0
  152. data/app/packs/entrypoints/decidim_elections_trustee_zone.scss +1 -0
  153. data/app/packs/entrypoints/decidim_elections_voter_casting-vote.js +1 -0
  154. data/app/packs/entrypoints/decidim_elections_voter_new-vote.js +1 -0
  155. data/app/packs/entrypoints/decidim_elections_voter_setup-preview.js +1 -0
  156. data/app/packs/entrypoints/decidim_elections_voter_setup-vote.js +1 -0
  157. data/app/packs/entrypoints/decidim_elections_voter_verify-vote.js +1 -0
  158. data/app/packs/entrypoints/decidim_votings_admin_monitoring_committee_members_form.js +1 -0
  159. data/app/packs/entrypoints/decidim_votings_admin_polling_officers_form.js +1 -0
  160. data/app/packs/entrypoints/decidim_votings_admin_polling_officers_picker.js +1 -0
  161. data/app/packs/entrypoints/decidim_votings_admin_polling_stations_form.js +1 -0
  162. data/app/packs/entrypoints/decidim_votings_admin_update_census_dataset_status.js +1 -0
  163. data/app/packs/entrypoints/decidim_votings_admin_votings.js +1 -0
  164. data/app/packs/entrypoints/decidim_votings_admin_votings.scss +1 -0
  165. data/app/packs/entrypoints/decidim_votings_in-person-vote.js +1 -0
  166. data/app/packs/entrypoints/decidim_votings_voting-description-cell.js +1 -0
  167. data/app/packs/entrypoints/decidim_votings_voting_polling_officer_zone-edit-closure.js +1 -0
  168. data/app/packs/entrypoints/decidim_votings_voting_polling_officer_zone-in-person-vote.js +1 -0
  169. data/app/packs/entrypoints/decidim_votings_voting_polling_officer_zone-new-closure.js +1 -0
  170. data/app/packs/entrypoints/decidim_votings_voting_polling_officer_zone-sign-closure.js +1 -0
  171. data/app/{assets/images/decidim/elections/icon.svg → packs/images/decidim/elections/decidim_elections.svg} +0 -0
  172. data/app/{assets/images/decidim/votings/icon.svg → packs/images/decidim/votings/decidim_votings.svg} +0 -0
  173. data/app/{assets/javascripts/decidim/elections/admin/pending_action.js.es6 → packs/src/decidim/elections/admin/pending_action.js} +4 -6
  174. data/app/{assets/javascripts/decidim/elections/admin/vote_statistics.js.es6 → packs/src/decidim/elections/admin/vote_statistics.js} +0 -0
  175. data/app/packs/src/decidim/elections/election_log.js +145 -0
  176. data/app/packs/src/decidim/elections/onboarding.js +5 -0
  177. data/app/{assets/javascripts/decidim/elections/trustee_zone/key_ceremony.js.es6 → packs/src/decidim/elections/trustee/key_ceremony.js} +59 -22
  178. data/app/{assets/javascripts/decidim/elections/trustee_zone/tally.js.es6 → packs/src/decidim/elections/trustee/tally.js} +48 -12
  179. data/app/{assets/javascripts/decidim/elections/trustee_zone.js.es6 → packs/src/decidim/elections/trustee/trustee_zone.js} +3 -6
  180. data/app/packs/src/decidim/elections/voter/casting-vote.js +14 -0
  181. data/app/packs/src/decidim/elections/voter/new-vote.js +83 -0
  182. data/app/packs/src/decidim/elections/voter/setup-preview.js +79 -0
  183. data/app/packs/src/decidim/elections/voter/setup-vote.js +50 -0
  184. data/app/{assets/javascripts/decidim/elections/vote_verify.js.es6 → packs/src/decidim/elections/voter/verify-vote.js} +22 -21
  185. data/app/packs/src/decidim/elections/voter/vote_questions.component.js +124 -0
  186. data/app/{assets/javascripts/decidim/votings/admin/monitoring_committee_members_form.js.es6 → packs/src/decidim/votings/admin/monitoring_committee_members_form.js} +3 -3
  187. data/app/{assets/javascripts/decidim/votings/admin/polling_officers_form.js.es6 → packs/src/decidim/votings/admin/polling_officers_form.js} +3 -3
  188. data/app/{assets/javascripts/decidim/votings/admin/polling_officers_picker.js.es6 → packs/src/decidim/votings/admin/polling_officers_picker.js} +0 -0
  189. data/app/{assets/javascripts/decidim/votings/admin/polling_stations_form.js.es6 → packs/src/decidim/votings/admin/polling_stations_form.js} +4 -3
  190. data/app/packs/src/decidim/votings/admin/update_census_dataset_status.js +13 -0
  191. data/app/packs/src/decidim/votings/in-person-vote.js +20 -0
  192. data/app/packs/src/decidim/votings/polling_officer_zone/edit-closure.js +26 -0
  193. data/app/packs/src/decidim/votings/polling_officer_zone/in-person-vote.js +5 -0
  194. data/app/packs/src/decidim/votings/polling_officer_zone/new-closure.js +35 -0
  195. data/app/packs/src/decidim/votings/polling_officer_zone/sign-closure.js +13 -0
  196. data/app/packs/src/decidim/votings/voting-description-cell.js +41 -0
  197. data/app/packs/stylesheets/decidim/elections/elections.scss +8 -0
  198. data/app/{assets → packs}/stylesheets/decidim/elections/focus/_accordion.scss +0 -0
  199. data/app/{assets → packs}/stylesheets/decidim/elections/focus/_evote.scss +8 -1
  200. data/app/{assets → packs}/stylesheets/decidim/elections/focus/_focus.scss +0 -0
  201. data/app/{assets → packs}/stylesheets/decidim/elections/trustee_zone.scss +0 -0
  202. data/app/packs/stylesheets/decidim/votings/admin/votings.scss +3 -0
  203. data/app/packs/stylesheets/decidim/votings/admin/votings/_ballot-styles.scss +16 -0
  204. data/app/packs/stylesheets/decidim/votings/admin/votings/_monitoring-committee-polling-station-closures.scss +9 -0
  205. data/app/packs/stylesheets/decidim/votings/admin/votings/_results.scss +3 -0
  206. data/app/packs/stylesheets/decidim/votings/votings.scss +2 -0
  207. data/app/packs/stylesheets/decidim/votings/votings/_polling-stations-cell.scss +6 -0
  208. data/app/packs/stylesheets/decidim/votings/votings/_voting-description-cell.scss +29 -0
  209. data/app/permissions/decidim/elections/admin/permissions.rb +5 -0
  210. data/app/permissions/decidim/elections/permissions.rb +18 -33
  211. data/app/permissions/decidim/votings/admin/permissions.rb +87 -27
  212. data/app/permissions/decidim/votings/permissions.rb +5 -1
  213. data/app/permissions/decidim/votings/polling_officer_zone/permissions.rb +8 -2
  214. data/app/presenters/decidim/votings/census/admin_log/dataset_presenter.rb +30 -0
  215. data/app/presenters/decidim/votings/voting_presenter.rb +2 -11
  216. data/app/presenters/decidim/votings/voting_stats_presenter.rb +52 -0
  217. data/app/queries/decidim/elections/admin/votes_for_statistics.rb +1 -1
  218. data/app/queries/decidim/elections/votes/last_vote_for_voter.rb +29 -0
  219. data/app/queries/decidim/votings/admin/admin_users.rb +15 -10
  220. data/app/queries/decidim/votings/admin/ballot_style_by_voting_code.rb +31 -0
  221. data/app/queries/decidim/votings/votes/in_person_vote_for_voter.rb +27 -0
  222. data/app/queries/decidim/votings/votes/pending_in_person_votes.rb +20 -0
  223. data/app/serializers/decidim/votings/census/datum_serializer.rb +29 -0
  224. data/app/services/decidim/elections/current_user_vote_flow.rb +68 -0
  225. data/app/services/decidim/elections/vote_flow.rb +109 -0
  226. data/app/services/decidim/votings/census/access_codes_exporter.rb +50 -0
  227. data/app/services/decidim/votings/census_vote_flow.rb +106 -0
  228. data/app/uploaders/decidim/cw/votings/census/voting_census_uploader.rb +19 -0
  229. data/app/views/decidim/elections/admin/answers/index.html.erb +23 -4
  230. data/app/views/decidim/elections/admin/elections/index.html.erb +5 -5
  231. data/app/views/decidim/elections/admin/questions/index.html.erb +2 -2
  232. data/app/views/decidim/elections/admin/steps/_results_published.html.erb +62 -0
  233. data/app/views/decidim/elections/admin/steps/_tally_ended.html.erb +49 -3
  234. data/app/views/decidim/elections/admin/steps/_vote.html.erb +1 -1
  235. data/app/views/decidim/elections/admin/steps/_vote_ended.html.erb +4 -0
  236. data/app/views/decidim/elections/admin/steps/index.html.erb +2 -2
  237. data/app/views/decidim/elections/admin/trustees_participatory_spaces/index.html.erb +7 -3
  238. data/app/views/decidim/elections/elections/_filters.html.erb +1 -0
  239. data/app/views/decidim/elections/elections/election_log.html.erb +182 -0
  240. data/app/views/decidim/elections/elections/index.html.erb +0 -2
  241. data/app/views/decidim/elections/elections/show.html.erb +11 -37
  242. data/app/views/decidim/elections/trustee_zone/elections/_key_ceremony_steps.html.erb +41 -39
  243. data/app/views/decidim/elections/trustee_zone/elections/show.html.erb +11 -27
  244. data/app/views/decidim/elections/trustee_zone/elections/update.js.erb +1 -1
  245. data/app/views/decidim/elections/trustee_zone/trustees/show.html.erb +7 -7
  246. data/app/views/decidim/elections/vote_accepted_mailer/notification.html.erb +3 -0
  247. data/app/views/decidim/elections/votes/{_election_votes_header.html.erb → _focus_header.html.erb} +0 -0
  248. data/app/views/decidim/elections/votes/_new_ballot_decision_step.html.erb +30 -0
  249. data/app/views/decidim/elections/votes/{_election_votes_confirm.html.erb → _new_confirm_step.html.erb} +5 -5
  250. data/app/views/decidim/elections/votes/{_election_votes_confirm_footer.html.erb → _new_confirm_step_footer.html.erb} +2 -3
  251. data/app/views/decidim/elections/votes/{_election_votes_encrypting.html.erb → _new_encrypting_step.html.erb} +1 -1
  252. data/app/views/decidim/elections/votes/{_election_votes_question.html.erb → _new_question.html.erb} +7 -7
  253. data/app/views/decidim/elections/votes/{_election_votes_modal.html.erb → _new_question_modal.html.erb} +1 -1
  254. data/app/views/decidim/elections/votes/_onboarding_modal.html.erb +23 -0
  255. data/app/views/decidim/elections/votes/_show_casted.html.erb +36 -0
  256. data/app/views/decidim/elections/votes/_show_casting.html.erb +25 -0
  257. data/app/views/decidim/elections/votes/{_election_votes_failed.html.erb → _show_failed.html.erb} +6 -4
  258. data/app/views/decidim/elections/votes/new.html.erb +29 -16
  259. data/app/views/decidim/elections/votes/show.html.erb +11 -0
  260. data/app/views/decidim/elections/votes/verify.html.erb +6 -9
  261. data/app/views/decidim/votings/access_code_mailer/send_access_code.html.erb +5 -0
  262. data/app/views/decidim/votings/admin/ballot_styles/_form.html.erb +24 -0
  263. data/app/views/decidim/votings/admin/ballot_styles/edit.html.erb +7 -0
  264. data/app/views/decidim/votings/admin/ballot_styles/index.html.erb +68 -0
  265. data/app/views/decidim/votings/admin/ballot_styles/new.html.erb +7 -0
  266. data/app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb +53 -0
  267. data/app/views/decidim/votings/admin/monitoring_committee_election_results/index.html.erb +32 -0
  268. data/app/views/decidim/votings/admin/monitoring_committee_election_results/show.html.erb +24 -0
  269. data/app/views/decidim/votings/admin/monitoring_committee_members/_form.html.erb +1 -1
  270. data/app/views/decidim/votings/admin/monitoring_committee_members/index.html.erb +1 -1
  271. data/app/views/decidim/votings/admin/monitoring_committee_polling_station_closures/_closure_certificate_results.erb +9 -0
  272. data/app/views/decidim/votings/admin/monitoring_committee_polling_station_closures/_closures.html.erb +71 -0
  273. data/app/views/decidim/votings/admin/monitoring_committee_polling_station_closures/_elections.html.erb +32 -0
  274. data/app/views/decidim/votings/admin/monitoring_committee_polling_station_closures/edit.html.erb +29 -0
  275. data/app/views/decidim/votings/admin/monitoring_committee_polling_station_closures/index.html.erb +5 -0
  276. data/app/views/decidim/votings/admin/monitoring_committee_polling_station_closures/show.html.erb +10 -0
  277. data/app/views/decidim/votings/admin/monitoring_committee_verify_elections/index.html.erb +59 -0
  278. data/app/views/decidim/votings/admin/polling_officers/_form.html.erb +1 -1
  279. data/app/views/decidim/votings/admin/polling_officers/index.html.erb +1 -1
  280. data/app/views/decidim/votings/admin/polling_stations/_form.html.erb +1 -1
  281. data/app/views/decidim/votings/admin/polling_stations/index.html.erb +2 -2
  282. data/app/views/decidim/votings/admin/votings/_form.html.erb +9 -2
  283. data/app/views/decidim/votings/admin/votings/edit.html.erb +1 -1
  284. data/app/views/decidim/votings/admin/votings/index.html.erb +3 -2
  285. data/app/views/decidim/votings/census/admin/census/_creating_data.html.erb +10 -0
  286. data/app/views/decidim/votings/census/admin/census/_export_codes.html.erb +8 -0
  287. data/app/views/decidim/votings/census/admin/census/_exporting_codes.html.erb +3 -0
  288. data/app/views/decidim/votings/census/admin/census/_freeze.html.erb +3 -0
  289. data/app/views/decidim/votings/census/admin/census/_generate_codes.html.erb +25 -0
  290. data/app/views/decidim/votings/census/admin/census/_generating_codes.html.erb +3 -0
  291. data/app/views/decidim/votings/census/admin/census/_new_census.html.erb +22 -0
  292. data/app/views/decidim/votings/census/admin/census/_upload_info.html.erb +17 -0
  293. data/app/views/decidim/votings/census/admin/census/show.html.erb +23 -0
  294. data/app/views/decidim/votings/census/admin/census/status.js.erb +1 -0
  295. data/app/views/decidim/votings/census/export_mailer/access_codes_export.erb +7 -0
  296. data/app/views/decidim/votings/polling_officer_zone/closures/_answer_results_form_fields.html.erb +12 -0
  297. data/app/views/decidim/votings/polling_officer_zone/closures/_ballot_results_form_fields.html.erb +40 -0
  298. data/app/views/decidim/votings/polling_officer_zone/closures/_certify_form.html.erb +15 -0
  299. data/app/views/decidim/votings/polling_officer_zone/closures/_modal_ballots_count_error.html.erb +60 -0
  300. data/app/views/decidim/votings/polling_officer_zone/closures/_modal_ballots_results_count_error.html.erb +19 -0
  301. data/app/views/decidim/votings/polling_officer_zone/closures/_question_results_form_fields.html.erb +22 -0
  302. data/app/views/decidim/votings/polling_officer_zone/closures/_sign_form.html.erb +55 -0
  303. data/app/views/decidim/votings/polling_officer_zone/closures/edit.html.erb +48 -0
  304. data/app/views/decidim/votings/polling_officer_zone/closures/new.html.erb +62 -0
  305. data/app/views/decidim/votings/polling_officer_zone/closures/show.html.erb +35 -0
  306. data/app/views/decidim/votings/polling_officer_zone/in_person_votes/_complete_voting.html.erb +59 -0
  307. data/app/views/decidim/votings/polling_officer_zone/in_person_votes/_in_person_form.html.erb +50 -0
  308. data/app/views/decidim/votings/polling_officer_zone/in_person_votes/_verify_document.html.erb +23 -0
  309. data/app/views/decidim/votings/polling_officer_zone/in_person_votes/new.html.erb +21 -0
  310. data/app/views/decidim/votings/polling_officer_zone/in_person_votes/show.html.erb +25 -0
  311. data/app/views/decidim/votings/polling_officer_zone/polling_officers/_polling_station.html.erb +60 -0
  312. data/app/views/decidim/votings/polling_officer_zone/polling_officers/index.html.erb +15 -0
  313. data/app/views/decidim/votings/votings/_access_code_modal.html.erb +33 -0
  314. data/app/views/decidim/votings/votings/_check_fields.html.erb +31 -0
  315. data/app/views/decidim/votings/votings/_filters.html.erb +1 -0
  316. data/app/views/decidim/votings/votings/_promoted_voting.html.erb +1 -1
  317. data/app/views/decidim/votings/votings/check_census.html.erb +64 -0
  318. data/app/views/decidim/votings/votings/elections_log.html.erb +34 -0
  319. data/app/views/decidim/votings/votings/index.html.erb +0 -2
  320. data/app/views/decidim/votings/votings/login.html.erb +50 -0
  321. data/app/views/decidim/votings/votings/show.html.erb +11 -11
  322. data/app/views/layouts/decidim/_election_votes_header.html.erb +3 -3
  323. data/app/views/layouts/decidim/admin/voting.html.erb +5 -83
  324. data/app/views/layouts/decidim/election_votes.html.erb +1 -0
  325. data/app/views/layouts/decidim/voting_landing.html.erb +13 -0
  326. data/app/views/layouts/decidim/{voting.html.erb → votings.html.erb} +3 -1
  327. data/config/assets.rb +35 -0
  328. data/config/initializers/decidim_bulletin_board.rb +17 -11
  329. data/config/initializers/rack_attack.rb +15 -0
  330. data/config/locales/ca.yml +496 -49
  331. data/config/locales/cs.yml +498 -43
  332. data/config/locales/de.yml +469 -44
  333. data/config/locales/el.yml +0 -14
  334. data/config/locales/en.yml +491 -42
  335. data/config/locales/es-MX.yml +338 -42
  336. data/config/locales/es-PY.yml +338 -42
  337. data/config/locales/es.yml +338 -42
  338. data/config/locales/fi-plain.yml +489 -42
  339. data/config/locales/fi.yml +489 -42
  340. data/config/locales/fr-CA.yml +241 -39
  341. data/config/locales/fr-LU.yml +890 -0
  342. data/config/locales/fr.yml +241 -39
  343. data/config/locales/gl.yml +418 -34
  344. data/config/locales/hu.yml +29 -0
  345. data/config/locales/it.yml +1027 -17
  346. data/config/locales/ja.yml +578 -17
  347. data/config/locales/lb-LU.yml +1 -0
  348. data/config/locales/lv.yml +0 -14
  349. data/config/locales/nl.yml +308 -42
  350. data/config/locales/no.yml +12 -36
  351. data/config/locales/pl.yml +670 -215
  352. data/config/locales/pt-BR.yml +1338 -0
  353. data/config/locales/pt.yml +0 -19
  354. data/config/locales/ro-RO.yml +99 -19
  355. data/config/locales/sv.yml +49 -22
  356. data/config/locales/tr-TR.yml +3 -24
  357. data/config/locales/zh-CN.yml +0 -19
  358. data/db/migrate/20210308104024_add_decidim_votings_census_datasets.rb +17 -0
  359. data/db/migrate/20210308104154_add_decidim_votings_census_data.rb +23 -0
  360. data/db/migrate/20210326090435_create_elections_results.rb +16 -0
  361. data/db/migrate/20210330102348_remove_votes_count_from_answer.rb +7 -0
  362. data/db/migrate/20210330123606_add_voting_ballot_style.rb +19 -0
  363. data/db/migrate/20210330183204_add_email_to_votes.rb +10 -0
  364. data/db/migrate/20210331152729_add_census_contact_information_to_votings.rb +7 -0
  365. data/db/migrate/20210401095507_add_organization_to_decidim_elections_trustee.rb +11 -0
  366. data/db/migrate/20210402102215_add_ballot_style_to_decidim_votings_census_data.rb +7 -0
  367. data/db/migrate/20210402140402_add_salt_to_elections.rb +22 -0
  368. data/db/migrate/20210412144721_change_elections_results.rb +24 -0
  369. data/db/migrate/20210412144740_create_elections_bulletin_board_closures.rb +13 -0
  370. data/db/migrate/20210412144741_create_votings_polling_station_closures.rb +22 -0
  371. data/db/migrate/20210420112721_create_decidim_votings_in_person_votes.rb +21 -0
  372. data/db/migrate/20210422124826_add_verifiable_results_to_decidim_elections_election.rb +8 -0
  373. data/db/migrate/20210426072845_add_signed_at_to_polling_station_closure.rb +7 -0
  374. data/db/migrate/20210427131742_add_validated_at_to_votings_polling_station_closures.rb +8 -0
  375. data/db/seeds/Exampledocument.pdf +0 -0
  376. data/db/seeds/city2.jpeg +0 -0
  377. data/lib/decidim/api/bulletin_board_closure_type.rb +16 -0
  378. data/lib/decidim/api/election_answer_type.rb +3 -2
  379. data/lib/decidim/api/election_result_type.rb +19 -0
  380. data/lib/decidim/api/polling_station_closure_type.rb +19 -0
  381. data/lib/decidim/api/polling_station_type.rb +24 -0
  382. data/lib/decidim/elections.rb +8 -0
  383. data/lib/decidim/elections/admin_engine.rb +14 -15
  384. data/lib/decidim/elections/answer_serializer.rb +2 -1
  385. data/lib/decidim/elections/api.rb +2 -0
  386. data/lib/decidim/elections/component.rb +85 -19
  387. data/lib/decidim/elections/engine.rb +4 -6
  388. data/lib/decidim/elections/test/factories.rb +76 -11
  389. data/lib/decidim/elections/trustee_zone_engine.rb +5 -4
  390. data/lib/decidim/elections/version.rb +1 -1
  391. data/lib/decidim/votings.rb +17 -0
  392. data/lib/decidim/votings/admin_engine.rb +134 -8
  393. data/lib/decidim/votings/api.rb +2 -0
  394. data/lib/decidim/votings/census.rb +16 -0
  395. data/lib/decidim/votings/census_admin.rb +12 -0
  396. data/lib/decidim/votings/census_admin_engine.rb +22 -0
  397. data/lib/decidim/votings/census_engine.rb +19 -0
  398. data/lib/decidim/votings/engine.rb +25 -20
  399. data/lib/decidim/votings/participatory_space.rb +149 -2
  400. data/lib/decidim/votings/polling_officer_zone_engine.rb +15 -6
  401. data/lib/decidim/votings/test/factories.rb +163 -0
  402. data/lib/decidim/votings/voting_serializer.rb +1 -0
  403. data/lib/tasks/decidim_voting_census.rake +26 -0
  404. metadata +326 -72
  405. data/app/assets/config/admin/decidim_votings_manifest.css +0 -0
  406. data/app/assets/config/admin/decidim_votings_manifest.js +0 -4
  407. data/app/assets/config/decidim_elections_manifest.css +0 -3
  408. data/app/assets/config/decidim_elections_manifest.js +0 -8
  409. data/app/assets/config/decidim_votings_manifest.css +0 -3
  410. data/app/assets/config/decidim_votings_manifest.js +0 -0
  411. data/app/assets/javascripts/decidim/elections/vote.js.es6 +0 -117
  412. data/app/assets/javascripts/decidim/elections/vote_questions.component.js.es6 +0 -129
  413. data/app/assets/stylesheets/decidim/elections/elections.scss +0 -6
  414. data/app/assets/stylesheets/decidim/votings/votings.scss +0 -1
  415. data/app/assets/stylesheets/decidim/votings/votings/_votings-header.scss +0 -99
  416. data/app/assets/stylesheets/decidim/votings/votings/_votings-home-banner.scss +0 -11
  417. data/app/controllers/decidim/votings/polling_officer_zone/polling_stations_controller.rb +0 -22
  418. data/app/forms/decidim/elections/voter/encrypted_vote_form.rb +0 -49
  419. data/app/helpers/decidim/elections/elections_helper.rb +0 -29
  420. data/app/queries/decidim/elections/votes/election_votes.rb +0 -19
  421. data/app/queries/decidim/elections/votes/user_election_last_vote.rb +0 -26
  422. data/app/queries/decidim/elections/votes/user_votes.rb +0 -19
  423. data/app/views/decidim/elections/elections/_preview.html.erb +0 -26
  424. data/app/views/decidim/elections/elections/_results.html.erb +0 -47
  425. data/app/views/decidim/elections/votes/_election_votes_confirmed.html.erb +0 -47
  426. data/app/views/decidim/elections/votes/_election_votes_steps_header.html.erb +0 -12
  427. data/app/views/decidim/elections/votes/cast_failed.js.erb +0 -1
  428. data/app/views/decidim/elections/votes/cast_success.js.erb +0 -1
  429. data/app/views/decidim/votings/polling_officer_zone/polling_officers/show.html.erb +0 -42
  430. data/app/views/decidim/votings/polling_officer_zone/polling_stations/show.html.erb +0 -1
  431. data/app/views/decidim/votings/votings/_voting_details.html.erb +0 -7
  432. data/app/views/layouts/decidim/_voting_header.html.erb +0 -16
  433. data/config/locales/ja-JP.yml +0 -216
@@ -11,8 +11,16 @@ module Decidim
11
11
  paths["lib/tasks"] = nil
12
12
 
13
13
  routes do
14
- resource :polling_officers, path: "/", only: [:show] do
15
- resources :polling_stations, only: [:show]
14
+ resources :polling_officers, path: "/", only: [:index] do
15
+ resources :elections, only: [:index] do
16
+ resource :closure do
17
+ member do
18
+ post :certify
19
+ post :sign
20
+ end
21
+ end
22
+ resources :in_person_votes, only: [:new, :create, :show, :update]
23
+ end
16
24
  end
17
25
  end
18
26
 
@@ -22,10 +30,11 @@ module Decidim
22
30
 
23
31
  initializer "decidim_elections.polling_officer_zone.menu" do
24
32
  Decidim.menu :user_menu do |menu|
25
- menu.item I18n.t("menu.polling_officer_zone", scope: "decidim.votings.polling_officer_zone"),
26
- decidim.decidim_votings_polling_officer_zone_path,
27
- active: :inclusive,
28
- if: Decidim::Votings::PollingOfficer.polling_officer?(current_user)
33
+ menu.add_item :decidim_votings_polling_officer_zone,
34
+ I18n.t("menu.polling_officer_zone", scope: "decidim.votings.polling_officer_zone"),
35
+ decidim.decidim_votings_polling_officer_zone_path,
36
+ active: :inclusive,
37
+ if: Decidim::Votings::PollingOfficer.polling_officer?(current_user)
29
38
  end
30
39
  end
31
40
  end
@@ -3,6 +3,14 @@
3
3
  require "decidim/core/test/factories"
4
4
  require "decidim/forms/test/factories"
5
5
 
6
+ def format_birthdate(birthdate)
7
+ format("%04d%02d%02d", birthdate.year, birthdate.month, birthdate.day) # rubocop:disable Style/FormatStringToken
8
+ end
9
+
10
+ def hash_for(*data)
11
+ Digest::SHA256.hexdigest(data.join("."))
12
+ end
13
+
6
14
  FactoryBot.define do
7
15
  sequence(:voting_slug) do |n|
8
16
  "#{Decidim::Faker::Internet.slug(words: nil, glue: "-")}-#{n}"
@@ -20,6 +28,7 @@ FactoryBot.define do
20
28
  banner_image { Decidim::Dev.test_file("city2.jpeg", "image/jpeg") }
21
29
  introductory_image { Decidim::Dev.test_file("city.jpeg", "image/jpeg") }
22
30
  voting_type { "hybrid" }
31
+ census_contact_information { nil }
23
32
 
24
33
  trait :unpublished do
25
34
  published_at { nil }
@@ -61,6 +70,15 @@ FactoryBot.define do
61
70
  end
62
71
  end
63
72
 
73
+ factory :voting_election, parent: :election do
74
+ transient do
75
+ voting { create(:voting) }
76
+ base_id { 20_000 }
77
+ end
78
+
79
+ component { create(:elections_component, organization: organization, participatory_space: voting) }
80
+ end
81
+
64
82
  factory :polling_station, class: "Decidim::Votings::PollingStation" do
65
83
  title { generate_localized_title }
66
84
  location { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
@@ -74,10 +92,155 @@ FactoryBot.define do
74
92
  factory :polling_officer, class: "Decidim::Votings::PollingOfficer" do
75
93
  user { create :user, organization: voting.organization }
76
94
  voting { create :voting }
95
+
96
+ trait :president do
97
+ presided_polling_station { create :polling_station, voting: voting }
98
+ end
77
99
  end
78
100
 
79
101
  factory :monitoring_committee_member, class: "Decidim::Votings::MonitoringCommitteeMember" do
80
102
  user
81
103
  voting { create :voting, organization: user.organization }
82
104
  end
105
+
106
+ factory :dataset, class: "Decidim::Votings::Census::Dataset" do
107
+ voting { create(:voting) }
108
+ file { "file.csv" }
109
+ status { "init_data" }
110
+ csv_row_raw_count { 1 }
111
+ csv_row_processed_count { 1 }
112
+
113
+ trait :with_data do
114
+ after(:create) do |dataset|
115
+ create_list(:datum, 5, dataset: dataset)
116
+ end
117
+ end
118
+
119
+ trait :with_access_code_data do
120
+ after(:create) do |dataset|
121
+ create_list(:datum, 5, :with_access_code, dataset: dataset)
122
+ end
123
+ end
124
+
125
+ trait :data_created do
126
+ status { "data_created" }
127
+ end
128
+
129
+ trait :codes_generated do
130
+ with_access_code_data
131
+ status { "codes_generated" }
132
+ end
133
+
134
+ trait :frozen do
135
+ status { "freeze" }
136
+ end
137
+ end
138
+
139
+ factory :datum, class: "Decidim::Votings::Census::Datum" do
140
+ dataset
141
+
142
+ transient do
143
+ document_number { Faker::IDNumber.spanish_citizen_number }
144
+ document_type { %w(DNI NIE PASSPORT).sample }
145
+ birthdate { Faker::Date.birthday(min_age: 18, max_age: 65) }
146
+ end
147
+
148
+ hashed_in_person_data { hash_for(document_number, document_type, format_birthdate(birthdate)) }
149
+ hashed_check_data { hash_for(document_number, document_type, format_birthdate(birthdate), postal_code) }
150
+
151
+ full_name { Faker::Name.name }
152
+ full_address { Faker::Address.full_address }
153
+ postal_code { Faker::Address.postcode }
154
+ mobile_phone_number { Faker::PhoneNumber.cell_phone }
155
+ email { Faker::Internet.email }
156
+
157
+ trait :with_access_code do
158
+ access_code { Faker::Alphanumeric.alphanumeric(number: 8) }
159
+ hashed_online_data { hash_for hashed_check_data, access_code }
160
+ end
161
+ end
162
+
163
+ factory :ballot_style, class: "Decidim::Votings::BallotStyle" do
164
+ code { Faker::Lorem.word.upcase }
165
+ voting { create(:voting) }
166
+
167
+ trait :with_questions do
168
+ transient do
169
+ election { create(:election, :complete, component: create(:elections_component, participatory_space: voting)) }
170
+ end
171
+ end
172
+
173
+ trait :with_ballot_style_questions do
174
+ with_questions
175
+
176
+ after(:create) do |ballot_style, evaluator|
177
+ evaluator.election.questions.first(2).map { |question| create(:ballot_style_question, question: question, ballot_style: ballot_style) }
178
+ end
179
+ end
180
+ end
181
+
182
+ factory :ballot_style_question, class: "Decidim::Votings::BallotStyleQuestion" do
183
+ question
184
+ ballot_style
185
+ end
186
+
187
+ factory :in_person_vote, class: "Decidim::Votings::InPersonVote" do
188
+ transient do
189
+ voting { create(:voting) }
190
+ component { create(:elections_component, participatory_space: voting) }
191
+ end
192
+
193
+ election { create(:election, component: component) }
194
+ sequence(:voter_id) { |n| "voter_#{n}" }
195
+ status { "pending" }
196
+ message_id { "decidim-test-authority.2.vote.in_person+v.5826de088371d1b15b38f00c8203871caec07041ed0c8fb0c6fb875f0df763b6" }
197
+ polling_station { polling_officer.polling_station }
198
+ polling_officer { create(:polling_officer, :president, voting: voting) }
199
+
200
+ trait :accepted do
201
+ status { "accepted" }
202
+ end
203
+
204
+ trait :rejected do
205
+ status { "rejected" }
206
+ end
207
+ end
208
+
209
+ factory :ps_closure, class: "Decidim::Votings::PollingStationClosure" do
210
+ transient do
211
+ number_of_votes { Faker::Number.number(digits: 2) }
212
+ end
213
+
214
+ election { create(:voting_election, :complete) }
215
+ polling_station { polling_officer.polling_station }
216
+ polling_officer { create(:polling_officer, :president, voting: election.participatory_space) }
217
+ polling_officer_notes { Faker::Lorem.paragraph }
218
+ monitoring_committee_notes { nil }
219
+ signed_at { nil }
220
+ phase { :count }
221
+ validated_at { nil }
222
+
223
+ trait :with_results do
224
+ phase { :signature }
225
+
226
+ after :create do |closure, evaluator|
227
+ total_votes = evaluator.number_of_votes
228
+ create_list(:in_person_vote, evaluator.number_of_votes, :accepted, voting: closure.election.participatory_space, election: closure.election)
229
+
230
+ closure.election.questions.each do |question|
231
+ max = total_votes
232
+ question.answers.each do |answer|
233
+ value = Faker::Number.between(from: 0, to: max)
234
+ closure.results << create(:election_result, closurable: closure, election: closure.election, question: question, answer: answer, value: value)
235
+ max -= value
236
+ end
237
+ value = Faker::Number.between(from: 0, to: max)
238
+ closure.results << create(:election_result, :null_ballots, election: closure.election, question: question, value: value)
239
+ max -= value
240
+ closure.results << create(:election_result, :blank_ballots, election: closure.election, question: question, value: max)
241
+ end
242
+ closure.results << create(:election_result, :total_ballots, closurable: closure, election: closure.election, value: total_votes)
243
+ end
244
+ end
245
+ end
83
246
  end
@@ -36,6 +36,7 @@ module Decidim
36
36
  private
37
37
 
38
38
  attr_reader :voting
39
+ alias resource voting
39
40
 
40
41
  def translated_voting_type
41
42
  translation_hash = {}
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ namespace :decidim_votings_census do
4
+ # Removes the census access code export files older than the configured expiry time.
5
+ desc "Deletes the census access codes export file `Decidim::Votings::Census.census_access_codes_export_expiry_time` from now."
6
+ task delete_census_access_codes_export: :environment do
7
+ puts "DELETE CENSUS ACCESS CODES EXPORT: -------------- START"
8
+ attachments = ActiveStorage::Attachment.joins(:blob).where(
9
+ name: "access_codes_file",
10
+ record_type: "Decidim::Votings::Census::Dataset"
11
+ ).where(
12
+ "active_storage_blobs.created_at < ?", Decidim::Votings::Census.census_access_codes_export_expiry_time.ago
13
+ )
14
+ attachments.each do |attachment|
15
+ delete_census_access_codes_export_file attachment
16
+ end
17
+ puts "DELETE CENSUS ACCESS CODES EXPORT: --------------- END"
18
+ end
19
+
20
+ def delete_census_access_codes_export_file(attachment)
21
+ puts "------"
22
+ puts "!! deleting: #{attachment.filename}"
23
+ attachment.purge
24
+ puts "ok----"
25
+ end
26
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-elections
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.3
4
+ version: 0.25.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonardo Diez
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-06-01 00:00:00.000000000 Z
12
+ date: 2021-07-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: decidim-bulletin_board
@@ -17,84 +17,126 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 0.9.2
20
+ version: 0.21.2
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 0.9.2
27
+ version: 0.21.2
28
+ - !ruby/object:Gem::Dependency
29
+ name: voting_schemes-dummy
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - '='
33
+ - !ruby/object:Gem::Version
34
+ version: 0.21.2
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - '='
40
+ - !ruby/object:Gem::Version
41
+ version: 0.21.2
42
+ - !ruby/object:Gem::Dependency
43
+ name: voting_schemes-electionguard
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - '='
47
+ - !ruby/object:Gem::Version
48
+ version: 0.21.2
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - '='
54
+ - !ruby/object:Gem::Version
55
+ version: 0.21.2
28
56
  - !ruby/object:Gem::Dependency
29
57
  name: decidim-core
30
58
  requirement: !ruby/object:Gem::Requirement
31
59
  requirements:
32
60
  - - '='
33
61
  - !ruby/object:Gem::Version
34
- version: 0.24.3
62
+ version: 0.25.0.rc1
35
63
  type: :runtime
36
64
  prerelease: false
37
65
  version_requirements: !ruby/object:Gem::Requirement
38
66
  requirements:
39
67
  - - '='
40
68
  - !ruby/object:Gem::Version
41
- version: 0.24.3
69
+ version: 0.25.0.rc1
42
70
  - !ruby/object:Gem::Dependency
43
71
  name: decidim-forms
44
72
  requirement: !ruby/object:Gem::Requirement
45
73
  requirements:
46
74
  - - '='
47
75
  - !ruby/object:Gem::Version
48
- version: 0.24.3
76
+ version: 0.25.0.rc1
49
77
  type: :runtime
50
78
  prerelease: false
51
79
  version_requirements: !ruby/object:Gem::Requirement
52
80
  requirements:
53
81
  - - '='
54
82
  - !ruby/object:Gem::Version
55
- version: 0.24.3
83
+ version: 0.25.0.rc1
56
84
  - !ruby/object:Gem::Dependency
57
85
  name: decidim-proposals
58
86
  requirement: !ruby/object:Gem::Requirement
59
87
  requirements:
60
88
  - - '='
61
89
  - !ruby/object:Gem::Version
62
- version: 0.24.3
90
+ version: 0.25.0.rc1
63
91
  type: :runtime
64
92
  prerelease: false
65
93
  version_requirements: !ruby/object:Gem::Requirement
66
94
  requirements:
67
95
  - - '='
68
96
  - !ruby/object:Gem::Version
69
- version: 0.24.3
97
+ version: 0.25.0.rc1
98
+ - !ruby/object:Gem::Dependency
99
+ name: rack-attack
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '6.0'
105
+ type: :runtime
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: '6.0'
70
112
  - !ruby/object:Gem::Dependency
71
113
  name: decidim-admin
72
114
  requirement: !ruby/object:Gem::Requirement
73
115
  requirements:
74
116
  - - '='
75
117
  - !ruby/object:Gem::Version
76
- version: 0.24.3
118
+ version: 0.25.0.rc1
77
119
  type: :development
78
120
  prerelease: false
79
121
  version_requirements: !ruby/object:Gem::Requirement
80
122
  requirements:
81
123
  - - '='
82
124
  - !ruby/object:Gem::Version
83
- version: 0.24.3
125
+ version: 0.25.0.rc1
84
126
  - !ruby/object:Gem::Dependency
85
127
  name: decidim-dev
86
128
  requirement: !ruby/object:Gem::Requirement
87
129
  requirements:
88
130
  - - '='
89
131
  - !ruby/object:Gem::Version
90
- version: 0.24.3
132
+ version: 0.25.0.rc1
91
133
  type: :development
92
134
  prerelease: false
93
135
  version_requirements: !ruby/object:Gem::Requirement
94
136
  requirements:
95
137
  - - '='
96
138
  - !ruby/object:Gem::Version
97
- version: 0.24.3
139
+ version: 0.25.0.rc1
98
140
  description: The Elections module adds elections to any participatory space.
99
141
  email:
100
142
  - leo@codegram.com
@@ -105,38 +147,21 @@ extra_rdoc_files: []
105
147
  files:
106
148
  - README.md
107
149
  - Rakefile
108
- - app/assets/config/admin/decidim_votings_manifest.css
109
- - app/assets/config/admin/decidim_votings_manifest.js
110
- - app/assets/config/decidim_elections_manifest.css
111
- - app/assets/config/decidim_elections_manifest.js
112
- - app/assets/config/decidim_votings_manifest.css
113
- - app/assets/config/decidim_votings_manifest.js
114
- - app/assets/images/decidim/elections/icon.svg
115
- - app/assets/images/decidim/votings/icon.svg
116
- - app/assets/javascripts/decidim/elections/admin/pending_action.js.es6
117
- - app/assets/javascripts/decidim/elections/admin/vote_statistics.js.es6
118
- - app/assets/javascripts/decidim/elections/trustee_zone.js.es6
119
- - app/assets/javascripts/decidim/elections/trustee_zone/key_ceremony.js.es6
120
- - app/assets/javascripts/decidim/elections/trustee_zone/tally.js.es6
121
- - app/assets/javascripts/decidim/elections/vote.js.es6
122
- - app/assets/javascripts/decidim/elections/vote_questions.component.js.es6
123
- - app/assets/javascripts/decidim/elections/vote_verify.js.es6
124
- - app/assets/javascripts/decidim/votings/admin/monitoring_committee_members_form.js.es6
125
- - app/assets/javascripts/decidim/votings/admin/polling_officers_form.js.es6
126
- - app/assets/javascripts/decidim/votings/admin/polling_officers_picker.js.es6
127
- - app/assets/javascripts/decidim/votings/admin/polling_stations_form.js.es6
128
- - app/assets/stylesheets/decidim/elections/elections.scss
129
- - app/assets/stylesheets/decidim/elections/focus/_accordion.scss
130
- - app/assets/stylesheets/decidim/elections/focus/_evote.scss
131
- - app/assets/stylesheets/decidim/elections/focus/_focus.scss
132
- - app/assets/stylesheets/decidim/elections/trustee_zone.scss
133
- - app/assets/stylesheets/decidim/votings/votings.scss
134
- - app/assets/stylesheets/decidim/votings/votings/_votings-header.scss
135
- - app/assets/stylesheets/decidim/votings/votings/_votings-home-banner.scss
136
150
  - app/cells/decidim/elections/election_cell.rb
137
151
  - app/cells/decidim/elections/election_m/data.erb
138
152
  - app/cells/decidim/elections/election_m/footer.erb
153
+ - app/cells/decidim/elections/election_m/tags.erb
139
154
  - app/cells/decidim/elections/election_m_cell.rb
155
+ - app/cells/decidim/elections/election_preview/show.erb
156
+ - app/cells/decidim/elections/election_preview_cell.rb
157
+ - app/cells/decidim/elections/election_results/blank_votes.erb
158
+ - app/cells/decidim/elections/election_results/progress_bar.erb
159
+ - app/cells/decidim/elections/election_results/show.erb
160
+ - app/cells/decidim/elections/election_results_cell.rb
161
+ - app/cells/decidim/elections/election_vote_cta/show.erb
162
+ - app/cells/decidim/elections/election_vote_cta_cell.rb
163
+ - app/cells/decidim/elections/remaining_time_callout/show.erb
164
+ - app/cells/decidim/elections/remaining_time_callout_cell.rb
140
165
  - app/cells/decidim/elections/voting_step_navigation/show.erb
141
166
  - app/cells/decidim/elections/voting_step_navigation_cell.rb
142
167
  - app/cells/decidim/votings/content_block_cell.rb
@@ -145,16 +170,31 @@ files:
145
170
  - app/cells/decidim/votings/content_blocks/highlighted_votings_settings_form/show.erb
146
171
  - app/cells/decidim/votings/content_blocks/highlighted_votings_settings_form_cell.rb
147
172
  - app/cells/decidim/votings/content_blocks/landing_page/attachments_and_folders_cell.rb
173
+ - app/cells/decidim/votings/content_blocks/landing_page/description/show.erb
148
174
  - app/cells/decidim/votings/content_blocks/landing_page/description_cell.rb
175
+ - app/cells/decidim/votings/content_blocks/landing_page/elections/show.erb
176
+ - app/cells/decidim/votings/content_blocks/landing_page/elections/single.erb
149
177
  - app/cells/decidim/votings/content_blocks/landing_page/elections_cell.rb
178
+ - app/cells/decidim/votings/content_blocks/landing_page/header/show.erb
150
179
  - app/cells/decidim/votings/content_blocks/landing_page/header_cell.rb
180
+ - app/cells/decidim/votings/content_blocks/landing_page/header_settings_form/show.erb
181
+ - app/cells/decidim/votings/content_blocks/landing_page/header_settings_form_cell.rb
182
+ - app/cells/decidim/votings/content_blocks/landing_page/metrics/show.erb
151
183
  - app/cells/decidim/votings/content_blocks/landing_page/metrics_cell.rb
184
+ - app/cells/decidim/votings/content_blocks/landing_page/polling_stations/address.erb
185
+ - app/cells/decidim/votings/content_blocks/landing_page/polling_stations/map.erb
186
+ - app/cells/decidim/votings/content_blocks/landing_page/polling_stations/show.erb
152
187
  - app/cells/decidim/votings/content_blocks/landing_page/polling_stations_cell.rb
153
- - app/cells/decidim/votings/content_blocks/landing_page/stats_cell.rb
188
+ - app/cells/decidim/votings/content_blocks/landing_page/statistics_cell.rb
189
+ - app/cells/decidim/votings/content_blocks/landing_page/timeline/show.erb
154
190
  - app/cells/decidim/votings/content_blocks/landing_page/timeline_cell.rb
155
191
  - app/cells/decidim/votings/polling_officers/polling_officers_picker/polling_officers.erb
156
192
  - app/cells/decidim/votings/polling_officers/polling_officers_picker/show.erb
157
193
  - app/cells/decidim/votings/polling_officers/polling_officers_picker_cell.rb
194
+ - app/cells/decidim/votings/polling_station_closure_certificate/show.erb
195
+ - app/cells/decidim/votings/polling_station_closure_certificate_cell.rb
196
+ - app/cells/decidim/votings/polling_station_closure_recount/show.erb
197
+ - app/cells/decidim/votings/polling_station_closure_recount_cell.rb
158
198
  - app/cells/decidim/votings/voting_cell.rb
159
199
  - app/cells/decidim/votings/voting_m/data.erb
160
200
  - app/cells/decidim/votings/voting_m/footer.erb
@@ -186,21 +226,42 @@ files:
186
226
  - app/commands/decidim/elections/trustee_zone/update_trustee.rb
187
227
  - app/commands/decidim/elections/voter/cast_vote.rb
188
228
  - app/commands/decidim/elections/voter/update_vote_status.rb
229
+ - app/commands/decidim/votings/admin/create_ballot_style.rb
189
230
  - app/commands/decidim/votings/admin/create_monitoring_committee_member.rb
190
231
  - app/commands/decidim/votings/admin/create_polling_officer.rb
191
232
  - app/commands/decidim/votings/admin/create_polling_station.rb
192
233
  - app/commands/decidim/votings/admin/create_voting.rb
234
+ - app/commands/decidim/votings/admin/destroy_ballot_style.rb
193
235
  - app/commands/decidim/votings/admin/destroy_monitoring_committee_member.rb
194
236
  - app/commands/decidim/votings/admin/destroy_polling_officer.rb
195
237
  - app/commands/decidim/votings/admin/destroy_polling_station.rb
196
238
  - app/commands/decidim/votings/admin/manage_polling_station.rb
239
+ - app/commands/decidim/votings/admin/monitoring_committee_validate_polling_station_closure.rb
197
240
  - app/commands/decidim/votings/admin/publish_voting.rb
198
241
  - app/commands/decidim/votings/admin/unpublish_voting.rb
242
+ - app/commands/decidim/votings/admin/update_ballot_style.rb
199
243
  - app/commands/decidim/votings/admin/update_polling_station.rb
200
244
  - app/commands/decidim/votings/admin/update_voting.rb
245
+ - app/commands/decidim/votings/census/admin/create_dataset.rb
246
+ - app/commands/decidim/votings/census/admin/create_datum.rb
247
+ - app/commands/decidim/votings/census/admin/destroy_dataset.rb
248
+ - app/commands/decidim/votings/census/admin/increment_dataset_processed_rows.rb
249
+ - app/commands/decidim/votings/census/admin/launch_access_codes_export.rb
250
+ - app/commands/decidim/votings/census/admin/launch_access_codes_generation.rb
251
+ - app/commands/decidim/votings/census/admin/update_dataset.rb
252
+ - app/commands/decidim/votings/certify_polling_station_closure.rb
253
+ - app/commands/decidim/votings/check_census.rb
254
+ - app/commands/decidim/votings/create_polling_station_closure.rb
255
+ - app/commands/decidim/votings/create_polling_station_results.rb
256
+ - app/commands/decidim/votings/send_access_code.rb
257
+ - app/commands/decidim/votings/sign_polling_station_closure.rb
258
+ - app/commands/decidim/votings/voter/in_person_vote.rb
259
+ - app/commands/decidim/votings/voter/update_in_person_vote_status.rb
201
260
  - app/constraints/decidim/votings/current_component.rb
202
261
  - app/constraints/decidim/votings/current_voting.rb
262
+ - app/controllers/concerns/decidim/elections/has_vote_flow.rb
203
263
  - app/controllers/concerns/decidim/elections/orderable.rb
264
+ - app/controllers/concerns/decidim/monitoring_committee_polling_station_closures/admin/filterable.rb
204
265
  - app/controllers/concerns/decidim/polling_officers/admin/filterable.rb
205
266
  - app/controllers/concerns/decidim/polling_stations/admin/filterable.rb
206
267
  - app/controllers/concerns/decidim/votings/admin/filterable.rb
@@ -223,9 +284,13 @@ files:
223
284
  - app/controllers/decidim/elections/trustee_zone/trustees_controller.rb
224
285
  - app/controllers/decidim/elections/votes_controller.rb
225
286
  - app/controllers/decidim/votings/admin/application_controller.rb
287
+ - app/controllers/decidim/votings/admin/ballot_styles_controller.rb
226
288
  - app/controllers/decidim/votings/admin/component_permissions_controller.rb
227
289
  - app/controllers/decidim/votings/admin/components_controller.rb
290
+ - app/controllers/decidim/votings/admin/monitoring_committee_election_results_controller.rb
228
291
  - app/controllers/decidim/votings/admin/monitoring_committee_members_controller.rb
292
+ - app/controllers/decidim/votings/admin/monitoring_committee_polling_station_closures_controller.rb
293
+ - app/controllers/decidim/votings/admin/monitoring_committee_verify_elections_controller.rb
229
294
  - app/controllers/decidim/votings/admin/polling_officers_controller.rb
230
295
  - app/controllers/decidim/votings/admin/polling_stations_controller.rb
231
296
  - app/controllers/decidim/votings/admin/voting_attachment_collections_controller.rb
@@ -234,9 +299,12 @@ files:
234
299
  - app/controllers/decidim/votings/admin/votings_landing_page_content_blocks_controller.rb
235
300
  - app/controllers/decidim/votings/admin/votings_landing_page_controller.rb
236
301
  - app/controllers/decidim/votings/application_controller.rb
302
+ - app/controllers/decidim/votings/census/admin/application_controller.rb
303
+ - app/controllers/decidim/votings/census/admin/census_controller.rb
237
304
  - app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
305
+ - app/controllers/decidim/votings/polling_officer_zone/closures_controller.rb
306
+ - app/controllers/decidim/votings/polling_officer_zone/in_person_votes_controller.rb
238
307
  - app/controllers/decidim/votings/polling_officer_zone/polling_officers_controller.rb
239
- - app/controllers/decidim/votings/polling_officer_zone/polling_stations_controller.rb
240
308
  - app/controllers/decidim/votings/votings_controller.rb
241
309
  - app/events/decidim/elections/election_published_event.rb
242
310
  - app/events/decidim/elections/trustees/notify_new_trustee_event.rb
@@ -251,35 +319,134 @@ files:
251
319
  - app/forms/decidim/elections/admin/setup_form.rb
252
320
  - app/forms/decidim/elections/admin/trustees_participatory_space_form.rb
253
321
  - app/forms/decidim/elections/admin/vote_period_form.rb
254
- - app/forms/decidim/elections/ballot/verify_vote_form.rb
255
322
  - app/forms/decidim/elections/trustee_zone/trustee_form.rb
256
- - app/forms/decidim/elections/voter/encrypted_vote_form.rb
323
+ - app/forms/decidim/elections/voter/verify_vote_form.rb
324
+ - app/forms/decidim/elections/voter/vote_form.rb
325
+ - app/forms/decidim/votings/admin/ballot_style_form.rb
257
326
  - app/forms/decidim/votings/admin/monitoring_committee_member_form.rb
327
+ - app/forms/decidim/votings/admin/monitoring_committee_polling_station_closure_form.rb
258
328
  - app/forms/decidim/votings/admin/polling_officer_form.rb
259
329
  - app/forms/decidim/votings/admin/polling_station_form.rb
330
+ - app/forms/decidim/votings/admin/publish_results_form.rb
260
331
  - app/forms/decidim/votings/admin/voting_form.rb
332
+ - app/forms/decidim/votings/answer_result_form.rb
333
+ - app/forms/decidim/votings/ballot_result_form.rb
334
+ - app/forms/decidim/votings/census/admin/dataset_form.rb
335
+ - app/forms/decidim/votings/census/admin/datum_form.rb
336
+ - app/forms/decidim/votings/census/check_fields.rb
337
+ - app/forms/decidim/votings/census/check_form.rb
338
+ - app/forms/decidim/votings/census/frontend_fields.rb
339
+ - app/forms/decidim/votings/census/in_person_fields.rb
340
+ - app/forms/decidim/votings/census/in_person_form.rb
341
+ - app/forms/decidim/votings/census/login_form.rb
342
+ - app/forms/decidim/votings/census/online_fields.rb
343
+ - app/forms/decidim/votings/closure_certify_form.rb
344
+ - app/forms/decidim/votings/closure_result_form.rb
345
+ - app/forms/decidim/votings/closure_sign_form.rb
346
+ - app/forms/decidim/votings/envelopes_result_form.rb
347
+ - app/forms/decidim/votings/question_result_form.rb
348
+ - app/forms/decidim/votings/voter/in_person_vote_form.rb
261
349
  - app/helpers/decidim/elections/admin/answers_helper.rb
262
350
  - app/helpers/decidim/elections/admin/steps_helper.rb
263
351
  - app/helpers/decidim/elections/admin/trustees_participatory_spaces_helper.rb
264
352
  - app/helpers/decidim/elections/application_helper.rb
265
353
  - app/helpers/decidim/elections/election_cells_helper.rb
266
- - app/helpers/decidim/elections/elections_helper.rb
267
354
  - app/helpers/decidim/elections/votes_helper.rb
268
355
  - app/helpers/decidim/votings/admin/polling_officers_picker_helper.rb
269
356
  - app/helpers/decidim/votings/votings_helper.rb
357
+ - app/jobs/decidim/votings/census/admin/create_datum_job.rb
358
+ - app/jobs/decidim/votings/census/admin/export_access_codes_job.rb
359
+ - app/jobs/decidim/votings/census/admin/generate_access_codes_job.rb
360
+ - app/mailers/decidim/elections/vote_accepted_mailer.rb
361
+ - app/mailers/decidim/votings/access_code_mailer.rb
362
+ - app/mailers/decidim/votings/census/export_mailer.rb
270
363
  - app/models/decidim/elections/action.rb
271
364
  - app/models/decidim/elections/answer.rb
272
365
  - app/models/decidim/elections/application_record.rb
366
+ - app/models/decidim/elections/bulletin_board_closure.rb
273
367
  - app/models/decidim/elections/election.rb
274
368
  - app/models/decidim/elections/elections_trustee.rb
275
369
  - app/models/decidim/elections/question.rb
370
+ - app/models/decidim/elections/result.rb
276
371
  - app/models/decidim/elections/trustee.rb
277
372
  - app/models/decidim/elections/trustees_participatory_space.rb
278
373
  - app/models/decidim/elections/vote.rb
374
+ - app/models/decidim/votings/ballot_style.rb
375
+ - app/models/decidim/votings/ballot_style_question.rb
376
+ - app/models/decidim/votings/census/dataset.rb
377
+ - app/models/decidim/votings/census/datum.rb
378
+ - app/models/decidim/votings/in_person_vote.rb
279
379
  - app/models/decidim/votings/monitoring_committee_member.rb
280
380
  - app/models/decidim/votings/polling_officer.rb
281
381
  - app/models/decidim/votings/polling_station.rb
382
+ - app/models/decidim/votings/polling_station_closure.rb
282
383
  - app/models/decidim/votings/voting.rb
384
+ - app/packs/entrypoints/decidim_elections.js
385
+ - app/packs/entrypoints/decidim_elections_admin_pending_action.js
386
+ - app/packs/entrypoints/decidim_elections_admin_vote_statistics.js
387
+ - app/packs/entrypoints/decidim_elections_election_log.js
388
+ - app/packs/entrypoints/decidim_elections_onboarding.js
389
+ - app/packs/entrypoints/decidim_elections_trustee_key_ceremony.js
390
+ - app/packs/entrypoints/decidim_elections_trustee_tally.js
391
+ - app/packs/entrypoints/decidim_elections_trustee_trustee_zone.js
392
+ - app/packs/entrypoints/decidim_elections_trustee_zone.js
393
+ - app/packs/entrypoints/decidim_elections_trustee_zone.scss
394
+ - app/packs/entrypoints/decidim_elections_voter_casting-vote.js
395
+ - app/packs/entrypoints/decidim_elections_voter_new-vote.js
396
+ - app/packs/entrypoints/decidim_elections_voter_setup-preview.js
397
+ - app/packs/entrypoints/decidim_elections_voter_setup-vote.js
398
+ - app/packs/entrypoints/decidim_elections_voter_verify-vote.js
399
+ - app/packs/entrypoints/decidim_votings_admin_monitoring_committee_members_form.js
400
+ - app/packs/entrypoints/decidim_votings_admin_polling_officers_form.js
401
+ - app/packs/entrypoints/decidim_votings_admin_polling_officers_picker.js
402
+ - app/packs/entrypoints/decidim_votings_admin_polling_stations_form.js
403
+ - app/packs/entrypoints/decidim_votings_admin_update_census_dataset_status.js
404
+ - app/packs/entrypoints/decidim_votings_admin_votings.js
405
+ - app/packs/entrypoints/decidim_votings_admin_votings.scss
406
+ - app/packs/entrypoints/decidim_votings_in-person-vote.js
407
+ - app/packs/entrypoints/decidim_votings_voting-description-cell.js
408
+ - app/packs/entrypoints/decidim_votings_voting_polling_officer_zone-edit-closure.js
409
+ - app/packs/entrypoints/decidim_votings_voting_polling_officer_zone-in-person-vote.js
410
+ - app/packs/entrypoints/decidim_votings_voting_polling_officer_zone-new-closure.js
411
+ - app/packs/entrypoints/decidim_votings_voting_polling_officer_zone-sign-closure.js
412
+ - app/packs/images/decidim/elections/decidim_elections.svg
413
+ - app/packs/images/decidim/votings/decidim_votings.svg
414
+ - app/packs/src/decidim/elections/admin/pending_action.js
415
+ - app/packs/src/decidim/elections/admin/vote_statistics.js
416
+ - app/packs/src/decidim/elections/election_log.js
417
+ - app/packs/src/decidim/elections/onboarding.js
418
+ - app/packs/src/decidim/elections/trustee/key_ceremony.js
419
+ - app/packs/src/decidim/elections/trustee/tally.js
420
+ - app/packs/src/decidim/elections/trustee/trustee_zone.js
421
+ - app/packs/src/decidim/elections/voter/casting-vote.js
422
+ - app/packs/src/decidim/elections/voter/new-vote.js
423
+ - app/packs/src/decidim/elections/voter/setup-preview.js
424
+ - app/packs/src/decidim/elections/voter/setup-vote.js
425
+ - app/packs/src/decidim/elections/voter/verify-vote.js
426
+ - app/packs/src/decidim/elections/voter/vote_questions.component.js
427
+ - app/packs/src/decidim/votings/admin/monitoring_committee_members_form.js
428
+ - app/packs/src/decidim/votings/admin/polling_officers_form.js
429
+ - app/packs/src/decidim/votings/admin/polling_officers_picker.js
430
+ - app/packs/src/decidim/votings/admin/polling_stations_form.js
431
+ - app/packs/src/decidim/votings/admin/update_census_dataset_status.js
432
+ - app/packs/src/decidim/votings/in-person-vote.js
433
+ - app/packs/src/decidim/votings/polling_officer_zone/edit-closure.js
434
+ - app/packs/src/decidim/votings/polling_officer_zone/in-person-vote.js
435
+ - app/packs/src/decidim/votings/polling_officer_zone/new-closure.js
436
+ - app/packs/src/decidim/votings/polling_officer_zone/sign-closure.js
437
+ - app/packs/src/decidim/votings/voting-description-cell.js
438
+ - app/packs/stylesheets/decidim/elections/elections.scss
439
+ - app/packs/stylesheets/decidim/elections/focus/_accordion.scss
440
+ - app/packs/stylesheets/decidim/elections/focus/_evote.scss
441
+ - app/packs/stylesheets/decidim/elections/focus/_focus.scss
442
+ - app/packs/stylesheets/decidim/elections/trustee_zone.scss
443
+ - app/packs/stylesheets/decidim/votings/admin/votings.scss
444
+ - app/packs/stylesheets/decidim/votings/admin/votings/_ballot-styles.scss
445
+ - app/packs/stylesheets/decidim/votings/admin/votings/_monitoring-committee-polling-station-closures.scss
446
+ - app/packs/stylesheets/decidim/votings/admin/votings/_results.scss
447
+ - app/packs/stylesheets/decidim/votings/votings.scss
448
+ - app/packs/stylesheets/decidim/votings/votings/_polling-stations-cell.scss
449
+ - app/packs/stylesheets/decidim/votings/votings/_voting-description-cell.scss
283
450
  - app/permissions/decidim/elections/admin/permissions.rb
284
451
  - app/permissions/decidim/elections/permissions.rb
285
452
  - app/permissions/decidim/elections/trustee_zone/permissions.rb
@@ -290,8 +457,10 @@ files:
290
457
  - app/presenters/decidim/elections/election_presenter.rb
291
458
  - app/presenters/decidim/elections/trustee_presenter.rb
292
459
  - app/presenters/decidim/votings/admin_log/voting_presenter.rb
460
+ - app/presenters/decidim/votings/census/admin_log/dataset_presenter.rb
293
461
  - app/presenters/decidim/votings/polling_station_presenter.rb
294
462
  - app/presenters/decidim/votings/voting_presenter.rb
463
+ - app/presenters/decidim/votings/voting_stats_presenter.rb
295
464
  - app/queries/decidim/elections/admin/pending_actions.rb
296
465
  - app/queries/decidim/elections/admin/votes_for_statistics.rb
297
466
  - app/queries/decidim/elections/elections_finished_to_end.rb
@@ -299,11 +468,10 @@ files:
299
468
  - app/queries/decidim/elections/filtered_elections.rb
300
469
  - app/queries/decidim/elections/trustees/by_participatory_space.rb
301
470
  - app/queries/decidim/elections/trustees/by_participatory_space_trustee_ids.rb
302
- - app/queries/decidim/elections/votes/election_votes.rb
471
+ - app/queries/decidim/elections/votes/last_vote_for_voter.rb
303
472
  - app/queries/decidim/elections/votes/pending_votes.rb
304
- - app/queries/decidim/elections/votes/user_election_last_vote.rb
305
- - app/queries/decidim/elections/votes/user_votes.rb
306
473
  - app/queries/decidim/votings/admin/admin_users.rb
474
+ - app/queries/decidim/votings/admin/ballot_style_by_voting_code.rb
307
475
  - app/queries/decidim/votings/admin/polling_officers_join_polling_stations.rb
308
476
  - app/queries/decidim/votings/admin/polling_officers_join_polling_stations_and_user.rb
309
477
  - app/queries/decidim/votings/admin/polling_officers_join_user.rb
@@ -313,8 +481,16 @@ files:
313
481
  - app/queries/decidim/votings/organization_votings.rb
314
482
  - app/queries/decidim/votings/prioritized_votings.rb
315
483
  - app/queries/decidim/votings/published_votings.rb
484
+ - app/queries/decidim/votings/votes/in_person_vote_for_voter.rb
485
+ - app/queries/decidim/votings/votes/pending_in_person_votes.rb
486
+ - app/serializers/decidim/votings/census/datum_serializer.rb
487
+ - app/services/decidim/elections/current_user_vote_flow.rb
316
488
  - app/services/decidim/elections/election_search.rb
489
+ - app/services/decidim/elections/vote_flow.rb
490
+ - app/services/decidim/votings/census/access_codes_exporter.rb
491
+ - app/services/decidim/votings/census_vote_flow.rb
317
492
  - app/services/decidim/votings/voting_search.rb
493
+ - app/uploaders/decidim/cw/votings/census/voting_census_uploader.rb
318
494
  - app/views/decidim/elections/admin/answers/_form.html.erb
319
495
  - app/views/decidim/elections/admin/answers/edit.html.erb
320
496
  - app/views/decidim/elections/admin/answers/index.html.erb
@@ -334,6 +510,7 @@ files:
334
510
  - app/views/decidim/elections/admin/steps/_created.html.erb
335
511
  - app/views/decidim/elections/admin/steps/_key_ceremony.html.erb
336
512
  - app/views/decidim/elections/admin/steps/_key_ceremony_ended.html.erb
513
+ - app/views/decidim/elections/admin/steps/_results_published.html.erb
337
514
  - app/views/decidim/elections/admin/steps/_tally.html.erb
338
515
  - app/views/decidim/elections/admin/steps/_tally_ended.html.erb
339
516
  - app/views/decidim/elections/admin/steps/_vote.html.erb
@@ -348,8 +525,7 @@ files:
348
525
  - app/views/decidim/elections/elections/_elections.html.erb
349
526
  - app/views/decidim/elections/elections/_filters.html.erb
350
527
  - app/views/decidim/elections/elections/_filters_small_view.html.erb
351
- - app/views/decidim/elections/elections/_preview.html.erb
352
- - app/views/decidim/elections/elections/_results.html.erb
528
+ - app/views/decidim/elections/elections/election_log.html.erb
353
529
  - app/views/decidim/elections/elections/index.html.erb
354
530
  - app/views/decidim/elections/elections/index.js.erb
355
531
  - app/views/decidim/elections/elections/show.html.erb
@@ -360,22 +536,39 @@ files:
360
536
  - app/views/decidim/elections/trustee_zone/elections/show.html.erb
361
537
  - app/views/decidim/elections/trustee_zone/elections/update.js.erb
362
538
  - app/views/decidim/elections/trustee_zone/trustees/show.html.erb
363
- - app/views/decidim/elections/votes/_election_votes_confirm.html.erb
364
- - app/views/decidim/elections/votes/_election_votes_confirm_footer.html.erb
365
- - app/views/decidim/elections/votes/_election_votes_confirmed.html.erb
366
- - app/views/decidim/elections/votes/_election_votes_encrypting.html.erb
367
- - app/views/decidim/elections/votes/_election_votes_failed.html.erb
368
- - app/views/decidim/elections/votes/_election_votes_header.html.erb
369
- - app/views/decidim/elections/votes/_election_votes_modal.html.erb
370
- - app/views/decidim/elections/votes/_election_votes_question.html.erb
371
- - app/views/decidim/elections/votes/_election_votes_steps_header.html.erb
372
- - app/views/decidim/elections/votes/cast_failed.js.erb
373
- - app/views/decidim/elections/votes/cast_success.js.erb
539
+ - app/views/decidim/elections/vote_accepted_mailer/notification.html.erb
540
+ - app/views/decidim/elections/votes/_focus_header.html.erb
541
+ - app/views/decidim/elections/votes/_new_ballot_decision_step.html.erb
542
+ - app/views/decidim/elections/votes/_new_confirm_step.html.erb
543
+ - app/views/decidim/elections/votes/_new_confirm_step_footer.html.erb
544
+ - app/views/decidim/elections/votes/_new_encrypting_step.html.erb
545
+ - app/views/decidim/elections/votes/_new_question.html.erb
546
+ - app/views/decidim/elections/votes/_new_question_modal.html.erb
547
+ - app/views/decidim/elections/votes/_onboarding_modal.html.erb
548
+ - app/views/decidim/elections/votes/_show_casted.html.erb
549
+ - app/views/decidim/elections/votes/_show_casting.html.erb
550
+ - app/views/decidim/elections/votes/_show_failed.html.erb
374
551
  - app/views/decidim/elections/votes/new.html.erb
552
+ - app/views/decidim/elections/votes/show.html.erb
375
553
  - app/views/decidim/elections/votes/verify.html.erb
554
+ - app/views/decidim/votings/access_code_mailer/send_access_code.html.erb
555
+ - app/views/decidim/votings/admin/ballot_styles/_form.html.erb
556
+ - app/views/decidim/votings/admin/ballot_styles/edit.html.erb
557
+ - app/views/decidim/votings/admin/ballot_styles/index.html.erb
558
+ - app/views/decidim/votings/admin/ballot_styles/new.html.erb
559
+ - app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb
560
+ - app/views/decidim/votings/admin/monitoring_committee_election_results/index.html.erb
561
+ - app/views/decidim/votings/admin/monitoring_committee_election_results/show.html.erb
376
562
  - app/views/decidim/votings/admin/monitoring_committee_members/_form.html.erb
377
563
  - app/views/decidim/votings/admin/monitoring_committee_members/index.html.erb
378
564
  - app/views/decidim/votings/admin/monitoring_committee_members/new.html.erb
565
+ - app/views/decidim/votings/admin/monitoring_committee_polling_station_closures/_closure_certificate_results.erb
566
+ - app/views/decidim/votings/admin/monitoring_committee_polling_station_closures/_closures.html.erb
567
+ - app/views/decidim/votings/admin/monitoring_committee_polling_station_closures/_elections.html.erb
568
+ - app/views/decidim/votings/admin/monitoring_committee_polling_station_closures/edit.html.erb
569
+ - app/views/decidim/votings/admin/monitoring_committee_polling_station_closures/index.html.erb
570
+ - app/views/decidim/votings/admin/monitoring_committee_polling_station_closures/show.html.erb
571
+ - app/views/decidim/votings/admin/monitoring_committee_verify_elections/index.html.erb
379
572
  - app/views/decidim/votings/admin/polling_officers/_form.html.erb
380
573
  - app/views/decidim/votings/admin/polling_officers/index.html.erb
381
574
  - app/views/decidim/votings/admin/polling_officers/new.html.erb
@@ -388,23 +581,55 @@ files:
388
581
  - app/views/decidim/votings/admin/votings/index.html.erb
389
582
  - app/views/decidim/votings/admin/votings/new.html.erb
390
583
  - app/views/decidim/votings/admin/votings/polling_officers_picker.html.erb
391
- - app/views/decidim/votings/polling_officer_zone/polling_officers/show.html.erb
392
- - app/views/decidim/votings/polling_officer_zone/polling_stations/show.html.erb
584
+ - app/views/decidim/votings/census/admin/census/_creating_data.html.erb
585
+ - app/views/decidim/votings/census/admin/census/_export_codes.html.erb
586
+ - app/views/decidim/votings/census/admin/census/_exporting_codes.html.erb
587
+ - app/views/decidim/votings/census/admin/census/_freeze.html.erb
588
+ - app/views/decidim/votings/census/admin/census/_generate_codes.html.erb
589
+ - app/views/decidim/votings/census/admin/census/_generating_codes.html.erb
590
+ - app/views/decidim/votings/census/admin/census/_new_census.html.erb
591
+ - app/views/decidim/votings/census/admin/census/_upload_info.html.erb
592
+ - app/views/decidim/votings/census/admin/census/show.html.erb
593
+ - app/views/decidim/votings/census/admin/census/status.js.erb
594
+ - app/views/decidim/votings/census/export_mailer/access_codes_export.erb
595
+ - app/views/decidim/votings/polling_officer_zone/closures/_answer_results_form_fields.html.erb
596
+ - app/views/decidim/votings/polling_officer_zone/closures/_ballot_results_form_fields.html.erb
597
+ - app/views/decidim/votings/polling_officer_zone/closures/_certify_form.html.erb
598
+ - app/views/decidim/votings/polling_officer_zone/closures/_modal_ballots_count_error.html.erb
599
+ - app/views/decidim/votings/polling_officer_zone/closures/_modal_ballots_results_count_error.html.erb
600
+ - app/views/decidim/votings/polling_officer_zone/closures/_question_results_form_fields.html.erb
601
+ - app/views/decidim/votings/polling_officer_zone/closures/_sign_form.html.erb
602
+ - app/views/decidim/votings/polling_officer_zone/closures/edit.html.erb
603
+ - app/views/decidim/votings/polling_officer_zone/closures/new.html.erb
604
+ - app/views/decidim/votings/polling_officer_zone/closures/show.html.erb
605
+ - app/views/decidim/votings/polling_officer_zone/in_person_votes/_complete_voting.html.erb
606
+ - app/views/decidim/votings/polling_officer_zone/in_person_votes/_in_person_form.html.erb
607
+ - app/views/decidim/votings/polling_officer_zone/in_person_votes/_verify_document.html.erb
608
+ - app/views/decidim/votings/polling_officer_zone/in_person_votes/new.html.erb
609
+ - app/views/decidim/votings/polling_officer_zone/in_person_votes/show.html.erb
610
+ - app/views/decidim/votings/polling_officer_zone/polling_officers/_polling_station.html.erb
611
+ - app/views/decidim/votings/polling_officer_zone/polling_officers/index.html.erb
612
+ - app/views/decidim/votings/votings/_access_code_modal.html.erb
613
+ - app/views/decidim/votings/votings/_check_fields.html.erb
393
614
  - app/views/decidim/votings/votings/_count.html.erb
394
615
  - app/views/decidim/votings/votings/_filters.html.erb
395
616
  - app/views/decidim/votings/votings/_filters_small_view.html.erb
396
617
  - app/views/decidim/votings/votings/_promoted_voting.html.erb
397
- - app/views/decidim/votings/votings/_voting_details.html.erb
398
618
  - app/views/decidim/votings/votings/_votings.html.erb
619
+ - app/views/decidim/votings/votings/check_census.html.erb
620
+ - app/views/decidim/votings/votings/elections_log.html.erb
399
621
  - app/views/decidim/votings/votings/index.html.erb
400
622
  - app/views/decidim/votings/votings/index.js.erb
623
+ - app/views/decidim/votings/votings/login.html.erb
401
624
  - app/views/decidim/votings/votings/show.html.erb
402
625
  - app/views/layouts/decidim/_election_votes_header.html.erb
403
- - app/views/layouts/decidim/_voting_header.html.erb
404
626
  - app/views/layouts/decidim/admin/voting.html.erb
405
627
  - app/views/layouts/decidim/election_votes.html.erb
406
- - app/views/layouts/decidim/voting.html.erb
628
+ - app/views/layouts/decidim/voting_landing.html.erb
629
+ - app/views/layouts/decidim/votings.html.erb
630
+ - config/assets.rb
407
631
  - config/initializers/decidim_bulletin_board.rb
632
+ - config/initializers/rack_attack.rb
408
633
  - config/locales/am-ET.yml
409
634
  - config/locales/ar.yml
410
635
  - config/locales/bg-BG.yml
@@ -427,6 +652,7 @@ files:
427
652
  - config/locales/fi-plain.yml
428
653
  - config/locales/fi.yml
429
654
  - config/locales/fr-CA.yml
655
+ - config/locales/fr-LU.yml
430
656
  - config/locales/fr.yml
431
657
  - config/locales/ga-IE.yml
432
658
  - config/locales/gl.yml
@@ -437,10 +663,10 @@ files:
437
663
  - config/locales/is-IS.yml
438
664
  - config/locales/is.yml
439
665
  - config/locales/it.yml
440
- - config/locales/ja-JP.yml
441
666
  - config/locales/ja.yml
442
667
  - config/locales/ko-KR.yml
443
668
  - config/locales/ko.yml
669
+ - config/locales/lb-LU.yml
444
670
  - config/locales/lt-LT.yml
445
671
  - config/locales/lt.yml
446
672
  - config/locales/lv.yml
@@ -494,12 +720,35 @@ files:
494
720
  - db/migrate/20210208090441_add_polling_officers_to_votings.rb
495
721
  - db/migrate/20210210090738_add_votings_polling_station_references_to_votings_polling_officer.rb
496
722
  - db/migrate/20210216074707_add_monitoring_committee_member.rb
723
+ - db/migrate/20210308104024_add_decidim_votings_census_datasets.rb
724
+ - db/migrate/20210308104154_add_decidim_votings_census_data.rb
497
725
  - db/migrate/20210310120708_add_followable_counter_cache_to_votings.rb
726
+ - db/migrate/20210326090435_create_elections_results.rb
727
+ - db/migrate/20210330102348_remove_votes_count_from_answer.rb
728
+ - db/migrate/20210330123606_add_voting_ballot_style.rb
729
+ - db/migrate/20210330183204_add_email_to_votes.rb
730
+ - db/migrate/20210331152729_add_census_contact_information_to_votings.rb
731
+ - db/migrate/20210401095507_add_organization_to_decidim_elections_trustee.rb
732
+ - db/migrate/20210402102215_add_ballot_style_to_decidim_votings_census_data.rb
733
+ - db/migrate/20210402140402_add_salt_to_elections.rb
734
+ - db/migrate/20210412144721_change_elections_results.rb
735
+ - db/migrate/20210412144740_create_elections_bulletin_board_closures.rb
736
+ - db/migrate/20210412144741_create_votings_polling_station_closures.rb
737
+ - db/migrate/20210420112721_create_decidim_votings_in_person_votes.rb
738
+ - db/migrate/20210422124826_add_verifiable_results_to_decidim_elections_election.rb
739
+ - db/migrate/20210426072845_add_signed_at_to_polling_station_closure.rb
740
+ - db/migrate/20210427131742_add_validated_at_to_votings_polling_station_closures.rb
741
+ - db/seeds/Exampledocument.pdf
498
742
  - db/seeds/city.jpeg
743
+ - db/seeds/city2.jpeg
744
+ - lib/decidim/api/bulletin_board_closure_type.rb
499
745
  - lib/decidim/api/election_answer_type.rb
500
746
  - lib/decidim/api/election_question_type.rb
747
+ - lib/decidim/api/election_result_type.rb
501
748
  - lib/decidim/api/election_type.rb
502
749
  - lib/decidim/api/elections_type.rb
750
+ - lib/decidim/api/polling_station_closure_type.rb
751
+ - lib/decidim/api/polling_station_type.rb
503
752
  - lib/decidim/api/trustee_type.rb
504
753
  - lib/decidim/api/voting_type.rb
505
754
  - lib/decidim/elections.rb
@@ -518,6 +767,10 @@ files:
518
767
  - lib/decidim/votings/admin.rb
519
768
  - lib/decidim/votings/admin_engine.rb
520
769
  - lib/decidim/votings/api.rb
770
+ - lib/decidim/votings/census.rb
771
+ - lib/decidim/votings/census_admin.rb
772
+ - lib/decidim/votings/census_admin_engine.rb
773
+ - lib/decidim/votings/census_engine.rb
521
774
  - lib/decidim/votings/engine.rb
522
775
  - lib/decidim/votings/participatory_space.rb
523
776
  - lib/decidim/votings/polling_officer_zone.rb
@@ -527,6 +780,7 @@ files:
527
780
  - lib/decidim/votings/test/factories.rb
528
781
  - lib/decidim/votings/voting_serializer.rb
529
782
  - lib/tasks/decidim_elections.rake
783
+ - lib/tasks/decidim_voting_census.rake
530
784
  homepage: https://github.com/decidim/decidim-elections
531
785
  licenses:
532
786
  - AGPL-3.0
@@ -542,11 +796,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
542
796
  version: '2.7'
543
797
  required_rubygems_version: !ruby/object:Gem::Requirement
544
798
  requirements:
545
- - - ">="
799
+ - - ">"
546
800
  - !ruby/object:Gem::Version
547
- version: '0'
801
+ version: 1.3.1
548
802
  requirements: []
549
- rubygems_version: 3.1.2
803
+ rubygems_version: 3.1.4
550
804
  signing_key:
551
805
  specification_version: 4
552
806
  summary: A decidim elections module (votings space and elections component)