decidim-elections 0.23.1 → 0.24.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (327) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -0
  3. data/app/assets/config/admin/decidim_votings_manifest.css +0 -0
  4. data/app/assets/config/admin/decidim_votings_manifest.js +4 -0
  5. data/app/assets/config/decidim_elections_manifest.css +3 -0
  6. data/app/assets/config/decidim_elections_manifest.js +6 -0
  7. data/app/assets/config/decidim_votings_manifest.css +3 -0
  8. data/app/assets/config/decidim_votings_manifest.js +0 -0
  9. data/app/assets/images/decidim/votings/icon.svg +1 -0
  10. data/app/assets/javascripts/decidim/elections/admin/pending_action.js.es6 +16 -0
  11. data/app/assets/javascripts/decidim/elections/admin/vote_statistics.js.es6 +11 -0
  12. data/app/assets/javascripts/decidim/elections/trustee_zone.js.es6 +54 -0
  13. data/app/assets/javascripts/decidim/elections/trustee_zone/key_ceremony.js.es6 +126 -0
  14. data/app/assets/javascripts/decidim/elections/trustee_zone/tally.js.es6 +104 -0
  15. data/app/assets/javascripts/decidim/elections/vote.js.es6 +107 -160
  16. data/app/assets/javascripts/decidim/elections/vote_questions.component.js.es6 +129 -0
  17. data/app/assets/javascripts/decidim/elections/vote_verify.js.es6 +71 -0
  18. data/app/assets/javascripts/decidim/votings/admin/monitoring_committee_members_form.js.es6 +35 -0
  19. data/app/assets/javascripts/decidim/votings/admin/polling_officers_form.js.es6 +35 -0
  20. data/app/assets/javascripts/decidim/votings/admin/polling_officers_picker.js.es6 +35 -0
  21. data/app/assets/javascripts/decidim/votings/admin/polling_stations_form.js.es6 +5 -0
  22. data/app/assets/stylesheets/decidim/elections/elections.scss +0 -4
  23. data/app/assets/stylesheets/decidim/elections/focus/_accordion.scss +36 -0
  24. data/app/assets/stylesheets/decidim/elections/focus/_evote.scss +58 -0
  25. data/app/assets/stylesheets/decidim/elections/trustee_zone.scss +24 -0
  26. data/app/assets/stylesheets/decidim/votings/votings.scss +1 -0
  27. data/app/assets/stylesheets/decidim/votings/votings/_votings-header.scss +99 -0
  28. data/app/assets/stylesheets/decidim/votings/votings/_votings-home-banner.scss +11 -0
  29. data/app/cells/decidim/votings/content_block_cell.rb +17 -0
  30. data/app/cells/decidim/votings/content_blocks/highlighted_votings/show.erb +30 -0
  31. data/app/cells/decidim/votings/content_blocks/highlighted_votings_cell.rb +33 -0
  32. data/app/cells/decidim/votings/content_blocks/highlighted_votings_settings_form/show.erb +3 -0
  33. data/app/cells/decidim/votings/content_blocks/highlighted_votings_settings_form_cell.rb +19 -0
  34. data/app/cells/decidim/votings/content_blocks/landing_page/attachments_and_folders_cell.rb +15 -0
  35. data/app/cells/decidim/votings/content_blocks/landing_page/description_cell.rb +15 -0
  36. data/app/cells/decidim/votings/content_blocks/landing_page/elections_cell.rb +15 -0
  37. data/app/cells/decidim/votings/content_blocks/landing_page/header_cell.rb +15 -0
  38. data/app/cells/decidim/votings/content_blocks/landing_page/metrics_cell.rb +15 -0
  39. data/app/cells/decidim/votings/content_blocks/landing_page/polling_stations_cell.rb +15 -0
  40. data/app/cells/decidim/votings/content_blocks/landing_page/stats_cell.rb +15 -0
  41. data/app/cells/decidim/votings/content_blocks/landing_page/timeline_cell.rb +15 -0
  42. data/app/cells/decidim/votings/polling_officers/polling_officers_picker/polling_officers.erb +12 -0
  43. data/app/cells/decidim/votings/polling_officers/polling_officers_picker/show.erb +14 -0
  44. data/app/cells/decidim/votings/polling_officers/polling_officers_picker_cell.rb +73 -0
  45. data/app/cells/decidim/votings/voting_cell.rb +19 -0
  46. data/app/cells/decidim/votings/voting_m/data.erb +21 -0
  47. data/app/cells/decidim/votings/voting_m/footer.erb +5 -0
  48. data/app/cells/decidim/votings/voting_m_cell.rb +94 -0
  49. data/app/commands/decidim/elections/admin/add_user_as_trustee.rb +81 -0
  50. data/app/commands/decidim/elections/admin/create_election.rb +2 -1
  51. data/app/commands/decidim/elections/admin/end_vote.rb +63 -0
  52. data/app/commands/decidim/elections/admin/publish_results.rb +59 -0
  53. data/app/commands/decidim/elections/admin/remove_trustee_from_participatory_space.rb +37 -0
  54. data/app/commands/decidim/elections/admin/setup_election.rb +160 -0
  55. data/app/commands/decidim/elections/admin/start_key_ceremony.rb +63 -0
  56. data/app/commands/decidim/elections/admin/start_tally.rb +63 -0
  57. data/app/commands/decidim/elections/admin/start_vote.rb +63 -0
  58. data/app/commands/decidim/elections/admin/update_action_status.rb +47 -0
  59. data/app/commands/decidim/elections/admin/update_answer_selection.rb +41 -0
  60. data/app/commands/decidim/elections/admin/update_trustee_participatory_space.rb +40 -0
  61. data/app/commands/decidim/elections/trustee_zone/update_election_bulletin_board_status.rb +39 -0
  62. data/app/commands/decidim/elections/trustee_zone/update_trustee.rb +41 -0
  63. data/app/commands/decidim/elections/voter/cast_vote.rb +59 -0
  64. data/app/commands/decidim/elections/voter/update_vote_status.rb +70 -0
  65. data/app/commands/decidim/votings/admin/create_monitoring_committee_member.rb +99 -0
  66. data/app/commands/decidim/votings/admin/create_polling_officer.rb +99 -0
  67. data/app/commands/decidim/votings/admin/create_polling_station.rb +59 -0
  68. data/app/commands/decidim/votings/admin/create_voting.rb +59 -0
  69. data/app/commands/decidim/votings/admin/destroy_monitoring_committee_member.rb +51 -0
  70. data/app/commands/decidim/votings/admin/destroy_polling_officer.rb +52 -0
  71. data/app/commands/decidim/votings/admin/destroy_polling_station.rb +40 -0
  72. data/app/commands/decidim/votings/admin/manage_polling_station.rb +64 -0
  73. data/app/commands/decidim/votings/admin/publish_voting.rb +40 -0
  74. data/app/commands/decidim/votings/admin/unpublish_voting.rb +40 -0
  75. data/app/commands/decidim/votings/admin/update_polling_station.rb +50 -0
  76. data/app/commands/decidim/votings/admin/update_voting.rb +85 -0
  77. data/app/constraints/decidim/votings/current_component.rb +28 -0
  78. data/app/constraints/decidim/votings/current_voting.rb +43 -0
  79. data/app/controllers/concerns/decidim/elections/orderable.rb +2 -2
  80. data/app/controllers/concerns/decidim/polling_officers/admin/filterable.rb +58 -0
  81. data/app/controllers/concerns/decidim/polling_stations/admin/filterable.rb +57 -0
  82. data/app/controllers/concerns/decidim/votings/admin/filterable.rb +27 -0
  83. data/app/controllers/concerns/decidim/votings/admin/voting_admin.rb +48 -0
  84. data/app/controllers/concerns/decidim/votings/needs_voting.rb +44 -0
  85. data/app/controllers/concerns/decidim/votings/orderable.rb +32 -0
  86. data/app/controllers/decidim/elections/admin/answers_controller.rb +32 -0
  87. data/app/controllers/decidim/elections/admin/elections_controller.rb +2 -2
  88. data/app/controllers/decidim/elections/admin/feedback_forms_controller.rb +55 -0
  89. data/app/controllers/decidim/elections/admin/steps_controller.rb +96 -0
  90. data/app/controllers/decidim/elections/admin/trustees_participatory_spaces_controller.rb +89 -0
  91. data/app/controllers/decidim/elections/elections_controller.rb +5 -1
  92. data/app/controllers/decidim/elections/feedbacks_controller.rb +38 -0
  93. data/app/controllers/decidim/elections/trustee_zone/application_controller.rb +45 -0
  94. data/app/controllers/decidim/elections/trustee_zone/elections_controller.rb +35 -0
  95. data/app/controllers/decidim/elections/trustee_zone/trustees_controller.rb +36 -0
  96. data/app/controllers/decidim/elections/votes_controller.rb +54 -2
  97. data/app/controllers/decidim/votings/admin/application_controller.rb +26 -0
  98. data/app/controllers/decidim/votings/admin/component_permissions_controller.rb +13 -0
  99. data/app/controllers/decidim/votings/admin/components_controller.rb +15 -0
  100. data/app/controllers/decidim/votings/admin/monitoring_committee_members_controller.rb +62 -0
  101. data/app/controllers/decidim/votings/admin/polling_officers_controller.rb +66 -0
  102. data/app/controllers/decidim/votings/admin/polling_stations_controller.rb +92 -0
  103. data/app/controllers/decidim/votings/admin/voting_attachment_collections_controller.rb +22 -0
  104. data/app/controllers/decidim/votings/admin/voting_attachments_controller.rb +21 -0
  105. data/app/controllers/decidim/votings/admin/votings_controller.rb +124 -0
  106. data/app/controllers/decidim/votings/admin/votings_landing_page_content_blocks_controller.rb +44 -0
  107. data/app/controllers/decidim/votings/admin/votings_landing_page_controller.rb +46 -0
  108. data/app/controllers/decidim/votings/application_controller.rb +26 -0
  109. data/app/controllers/decidim/votings/polling_officer_zone/application_controller.rb +33 -0
  110. data/app/controllers/decidim/votings/polling_officer_zone/polling_officers_controller.rb +17 -0
  111. data/app/controllers/decidim/votings/polling_officer_zone/polling_stations_controller.rb +22 -0
  112. data/app/controllers/decidim/votings/votings_controller.rb +98 -0
  113. data/app/events/decidim/elections/trustees/notify_new_trustee_event.rb +28 -0
  114. data/app/events/decidim/elections/trustees/notify_trustee_new_election_event.rb +14 -0
  115. data/app/events/decidim/elections/votes/vote_accepted_event.rb +24 -0
  116. data/app/events/decidim/votings/polling_officers/polling_station_assigned_event.rb +44 -0
  117. data/app/forms/decidim/elections/admin/action_form.rb +34 -0
  118. data/app/forms/decidim/elections/admin/answer_form.rb +3 -2
  119. data/app/forms/decidim/elections/admin/election_form.rb +3 -2
  120. data/app/forms/decidim/elections/admin/setup_form.rb +79 -0
  121. data/app/forms/decidim/elections/admin/trustees_participatory_space_form.rb +22 -0
  122. data/app/forms/decidim/elections/admin/vote_period_form.rb +37 -0
  123. data/app/forms/decidim/elections/ballot/verify_vote_form.rb +29 -0
  124. data/app/forms/decidim/elections/trustee_zone/trustee_form.rb +26 -0
  125. data/app/forms/decidim/elections/voter/encrypted_vote_form.rb +49 -0
  126. data/app/forms/decidim/votings/admin/monitoring_committee_member_form.rb +27 -0
  127. data/app/forms/decidim/votings/admin/polling_officer_form.rb +27 -0
  128. data/app/forms/decidim/votings/admin/polling_station_form.rb +58 -0
  129. data/app/forms/decidim/votings/admin/voting_form.rb +71 -0
  130. data/app/helpers/decidim/elections/admin/answers_helper.rb +19 -0
  131. data/app/helpers/decidim/elections/admin/steps_helper.rb +23 -0
  132. data/app/helpers/decidim/elections/admin/trustees_participatory_spaces_helper.rb +31 -0
  133. data/app/helpers/decidim/elections/elections_helper.rb +29 -0
  134. data/app/helpers/decidim/votings/admin/polling_officers_picker_helper.rb +29 -0
  135. data/app/helpers/decidim/votings/votings_helper.rb +20 -0
  136. data/app/models/decidim/elections/action.rb +13 -0
  137. data/app/models/decidim/elections/election.rb +54 -3
  138. data/app/models/decidim/elections/elections_trustee.rb +11 -0
  139. data/app/models/decidim/elections/question.rb +19 -0
  140. data/app/models/decidim/elections/trustee.rb +26 -0
  141. data/app/models/decidim/elections/trustees_participatory_space.rb +13 -0
  142. data/app/models/decidim/elections/vote.rb +15 -0
  143. data/app/models/decidim/votings/monitoring_committee_member.rb +24 -0
  144. data/app/models/decidim/votings/polling_officer.rb +76 -0
  145. data/app/models/decidim/votings/polling_station.rb +64 -0
  146. data/app/models/decidim/votings/voting.rb +138 -0
  147. data/app/permissions/decidim/elections/admin/permissions.rb +50 -10
  148. data/app/permissions/decidim/elections/permissions.rb +20 -2
  149. data/app/permissions/decidim/elections/trustee_zone/permissions.rb +32 -0
  150. data/app/permissions/decidim/votings/admin/permissions.rb +127 -0
  151. data/app/permissions/decidim/votings/permissions.rb +40 -0
  152. data/app/permissions/decidim/votings/polling_officer_zone/permissions.rb +32 -0
  153. data/app/presenters/decidim/elections/admin_log/election_presenter.rb +1 -1
  154. data/app/presenters/decidim/elections/trustee_presenter.rb +24 -0
  155. data/app/presenters/decidim/votings/admin_log/voting_presenter.rb +45 -0
  156. data/app/presenters/decidim/votings/polling_station_presenter.rb +27 -0
  157. data/app/presenters/decidim/votings/voting_presenter.rb +36 -0
  158. data/app/queries/decidim/elections/admin/pending_actions.rb +20 -0
  159. data/app/queries/decidim/elections/admin/votes_for_statistics.rb +24 -0
  160. data/app/queries/decidim/elections/elections_finished_to_end.rb +19 -0
  161. data/app/queries/decidim/elections/elections_ready_to_start.rb +25 -0
  162. data/app/queries/decidim/elections/trustees/by_participatory_space.rb +24 -0
  163. data/app/queries/decidim/elections/trustees/by_participatory_space_trustee_ids.rb +24 -0
  164. data/app/queries/decidim/elections/votes/election_votes.rb +19 -0
  165. data/app/queries/decidim/elections/votes/pending_votes.rb +20 -0
  166. data/app/queries/decidim/elections/votes/user_election_last_vote.rb +26 -0
  167. data/app/queries/decidim/elections/votes/user_votes.rb +19 -0
  168. data/app/queries/decidim/votings/admin/admin_users.rb +39 -0
  169. data/app/queries/decidim/votings/admin/polling_officers_join_polling_stations.rb +33 -0
  170. data/app/queries/decidim/votings/admin/polling_officers_join_polling_stations_and_user.rb +34 -0
  171. data/app/queries/decidim/votings/admin/polling_officers_join_user.rb +32 -0
  172. data/app/queries/decidim/votings/organization_prioritized_votings.rb +21 -0
  173. data/app/queries/decidim/votings/organization_promoted_votings.rb +16 -0
  174. data/app/queries/decidim/votings/organization_published_votings.rb +19 -0
  175. data/app/queries/decidim/votings/organization_votings.rb +16 -0
  176. data/app/queries/decidim/votings/prioritized_votings.rb +13 -0
  177. data/app/queries/decidim/votings/published_votings.rb +12 -0
  178. data/app/services/decidim/votings/voting_search.rb +46 -0
  179. data/app/views/decidim/elections/admin/answers/index.html.erb +12 -0
  180. data/app/views/decidim/elections/admin/elections/index.html.erb +13 -1
  181. data/app/views/decidim/elections/admin/proposals_imports/new.html.erb +1 -1
  182. data/app/views/decidim/elections/admin/questions/index.html.erb +5 -1
  183. data/app/views/decidim/elections/admin/shared/_trustees_secondary_nav.html.erb +3 -0
  184. data/app/views/decidim/elections/admin/steps/_create_election.html.erb +38 -0
  185. data/app/views/decidim/elections/admin/steps/_created.html.erb +16 -0
  186. data/app/views/decidim/elections/admin/steps/_key_ceremony.html.erb +16 -0
  187. data/app/views/decidim/elections/admin/steps/_key_ceremony_ended.html.erb +15 -0
  188. data/app/views/decidim/elections/admin/steps/_tally.html.erb +17 -0
  189. data/app/views/decidim/elections/admin/steps/_tally_ended.html.erb +9 -0
  190. data/app/views/decidim/elections/admin/steps/_vote.html.erb +21 -0
  191. data/app/views/decidim/elections/admin/steps/_vote_ended.html.erb +15 -0
  192. data/app/views/decidim/elections/admin/steps/_vote_stats.html.erb +31 -0
  193. data/app/views/decidim/elections/admin/steps/index.html.erb +43 -0
  194. data/app/views/decidim/elections/admin/trustees_participatory_spaces/_form.html.erb +19 -0
  195. data/app/views/decidim/elections/admin/trustees_participatory_spaces/index.html.erb +64 -0
  196. data/app/views/decidim/elections/admin/trustees_participatory_spaces/new.html.erb +7 -0
  197. data/app/views/decidim/elections/elections/_filters_small_view.html.erb +1 -1
  198. data/app/views/decidim/elections/elections/_preview.html.erb +26 -0
  199. data/app/views/decidim/elections/elections/_results.html.erb +47 -0
  200. data/app/views/decidim/elections/elections/show.html.erb +39 -12
  201. data/app/views/decidim/elections/trustee_zone/elections/_backup_modal.html.erb +24 -0
  202. data/app/views/decidim/elections/trustee_zone/elections/_key_ceremony_steps.html.erb +44 -0
  203. data/app/views/decidim/elections/trustee_zone/elections/_restore_modal.html.erb +25 -0
  204. data/app/views/decidim/elections/trustee_zone/elections/_tally_steps.html.erb +43 -0
  205. data/app/views/decidim/elections/trustee_zone/elections/show.html.erb +38 -0
  206. data/app/views/decidim/elections/trustee_zone/elections/update.js.erb +5 -0
  207. data/app/views/decidim/elections/trustee_zone/trustees/show.html.erb +102 -0
  208. data/app/views/decidim/elections/votes/_election_votes_confirmed.html.erb +38 -17
  209. data/app/views/decidim/elections/votes/_election_votes_failed.html.erb +21 -0
  210. data/app/views/decidim/elections/votes/_election_votes_question.html.erb +4 -4
  211. data/app/views/decidim/elections/votes/cast_failed.js.erb +1 -0
  212. data/app/views/decidim/elections/votes/cast_success.js.erb +1 -0
  213. data/app/views/decidim/elections/votes/new.html.erb +41 -33
  214. data/app/views/decidim/elections/votes/verify.html.erb +78 -0
  215. data/app/views/decidim/votings/admin/monitoring_committee_members/_form.html.erb +27 -0
  216. data/app/views/decidim/votings/admin/monitoring_committee_members/index.html.erb +41 -0
  217. data/app/views/decidim/votings/admin/monitoring_committee_members/new.html.erb +7 -0
  218. data/app/views/decidim/votings/admin/polling_officers/_form.html.erb +27 -0
  219. data/app/views/decidim/votings/admin/polling_officers/index.html.erb +50 -0
  220. data/app/views/decidim/votings/admin/polling_officers/new.html.erb +7 -0
  221. data/app/views/decidim/votings/admin/polling_stations/_form.html.erb +40 -0
  222. data/app/views/decidim/votings/admin/polling_stations/edit.html.erb +7 -0
  223. data/app/views/decidim/votings/admin/polling_stations/index.html.erb +55 -0
  224. data/app/views/decidim/votings/admin/polling_stations/new.html.erb +7 -0
  225. data/app/views/decidim/votings/admin/votings/_form.html.erb +63 -0
  226. data/app/views/decidim/votings/admin/votings/edit.html.erb +31 -0
  227. data/app/views/decidim/votings/admin/votings/index.html.erb +87 -0
  228. data/app/views/decidim/votings/admin/votings/new.html.erb +13 -0
  229. data/app/views/decidim/votings/admin/votings/polling_officers_picker.html.erb +2 -0
  230. data/app/views/decidim/votings/polling_officer_zone/polling_officers/show.html.erb +42 -0
  231. data/app/views/decidim/votings/polling_officer_zone/polling_stations/show.html.erb +1 -0
  232. data/app/views/decidim/votings/votings/_count.html.erb +1 -0
  233. data/app/views/decidim/votings/votings/_filters.html.erb +25 -0
  234. data/app/views/decidim/votings/votings/_filters_small_view.html.erb +23 -0
  235. data/app/views/decidim/votings/votings/_promoted_voting.html.erb +27 -0
  236. data/app/views/decidim/votings/votings/_voting_details.html.erb +7 -0
  237. data/app/views/decidim/votings/votings/_votings.html.erb +25 -0
  238. data/app/views/decidim/votings/votings/index.html.erb +42 -0
  239. data/app/views/decidim/votings/votings/index.js.erb +10 -0
  240. data/app/views/decidim/votings/votings/show.html.erb +20 -0
  241. data/app/views/layouts/decidim/_voting_header.html.erb +16 -0
  242. data/app/views/layouts/decidim/admin/voting.html.erb +101 -0
  243. data/app/views/layouts/decidim/voting.html.erb +16 -0
  244. data/config/initializers/decidim_bulletin_board.rb +23 -0
  245. data/config/locales/ca.yml +635 -6
  246. data/config/locales/cs.yml +635 -6
  247. data/config/locales/de.yml +677 -10
  248. data/config/locales/el.yml +4 -2
  249. data/config/locales/en.yml +636 -6
  250. data/config/locales/es-MX.yml +636 -7
  251. data/config/locales/es-PY.yml +636 -7
  252. data/config/locales/es.yml +636 -7
  253. data/config/locales/fi-plain.yml +636 -7
  254. data/config/locales/fi.yml +637 -8
  255. data/config/locales/fr-CA.yml +419 -6
  256. data/config/locales/fr.yml +419 -6
  257. data/config/locales/gl.yml +168 -0
  258. data/config/locales/it.yml +108 -6
  259. data/config/locales/ja.yml +12 -6
  260. data/config/locales/lv.yml +4 -2
  261. data/config/locales/nl.yml +502 -6
  262. data/config/locales/no.yml +0 -6
  263. data/config/locales/pl.yml +657 -9
  264. data/config/locales/pt.yml +4 -6
  265. data/config/locales/ro-RO.yml +4 -6
  266. data/config/locales/si-LK.yml +1 -0
  267. data/config/locales/sv.yml +11 -6
  268. data/config/locales/sw-KE.yml +1 -0
  269. data/config/locales/tr-TR.yml +366 -0
  270. data/config/locales/zh-CN.yml +4 -6
  271. data/db/migrate/20200915142713_add_questionnaire_to_existing_elections.rb +29 -0
  272. data/db/migrate/20200918153813_create_decidim_elections_trustees_participatory_spaces.rb +13 -0
  273. data/db/migrate/20200918153824_create_decidim_elections_elections_trustees.rb +10 -0
  274. data/db/migrate/20200918153835_create_decidim_elections_trustees.rb +12 -0
  275. data/db/migrate/20201026163334_add_blocked_at_and_bb_status_to_elections.rb +8 -0
  276. data/db/migrate/20201028090110_add_votes_to_decidim_elections_answers.rb +7 -0
  277. data/db/migrate/20201028135614_add_selected_to_decidim_elections_answers.rb +7 -0
  278. data/db/migrate/20201209110653_create_decidim_elections_votes.rb +14 -0
  279. data/db/migrate/20201216091123_add_name_to_trustees.rb +7 -0
  280. data/db/migrate/20210113113818_add_message_id_to_decidim_elections_votes.rb +7 -0
  281. data/db/migrate/20210113120115_create_decidim_elections_votings.rb +20 -0
  282. data/db/migrate/20210114100749_add_published_at_to_decidim_votings_votings.rb +7 -0
  283. data/db/migrate/20210114111850_add_user_to_decidim_elections_votes.rb +7 -0
  284. data/db/migrate/20210120164634_add_promoted_to_voting.rb +7 -0
  285. data/db/migrate/20210125124801_add_voting_type_to_voting_voting.rb +7 -0
  286. data/db/migrate/20210129124956_create_decidim_elections_actions.rb +14 -0
  287. data/db/migrate/20210204132111_add_votings_polling_stations.rb +19 -0
  288. data/db/migrate/20210208090441_add_polling_officers_to_votings.rb +12 -0
  289. data/db/migrate/20210210090738_add_votings_polling_station_references_to_votings_polling_officer.rb +8 -0
  290. data/db/migrate/20210216074707_add_monitoring_committee_member.rb +12 -0
  291. data/db/seeds/city.jpeg +0 -0
  292. data/lib/decidim/api/election_answer_type.rb +23 -0
  293. data/lib/decidim/api/election_question_type.rb +22 -0
  294. data/lib/decidim/api/election_type.rb +27 -0
  295. data/lib/decidim/api/elections_type.rb +32 -0
  296. data/lib/decidim/api/trustee_type.rb +16 -0
  297. data/lib/decidim/api/voting_type.rb +20 -0
  298. data/lib/decidim/elections.rb +19 -2
  299. data/lib/decidim/elections/admin_engine.rb +42 -1
  300. data/lib/decidim/elections/answer_serializer.rb +48 -0
  301. data/lib/decidim/elections/api.rb +11 -0
  302. data/lib/decidim/elections/component.rb +367 -24
  303. data/lib/decidim/elections/engine.rb +8 -1
  304. data/lib/decidim/elections/test/factories.rb +201 -4
  305. data/lib/decidim/elections/trustee_zone.rb +10 -0
  306. data/lib/decidim/elections/trustee_zone_engine.rb +35 -0
  307. data/lib/decidim/elections/version.rb +1 -1
  308. data/lib/decidim/votings.rb +16 -0
  309. data/lib/decidim/votings/admin.rb +10 -0
  310. data/lib/decidim/votings/admin_engine.rb +71 -0
  311. data/lib/decidim/votings/api.rb +7 -0
  312. data/lib/decidim/votings/engine.rb +147 -0
  313. data/lib/decidim/votings/participatory_space.rb +92 -0
  314. data/lib/decidim/votings/polling_officer_zone.rb +10 -0
  315. data/lib/decidim/votings/polling_officer_zone_engine.rb +33 -0
  316. data/lib/decidim/votings/query_extensions.rb +43 -0
  317. data/lib/decidim/votings/test/capybara_polling_officers_picker.rb +49 -0
  318. data/lib/decidim/votings/test/factories.rb +83 -0
  319. data/lib/decidim/votings/voting_serializer.rb +54 -0
  320. data/lib/tasks/decidim_elections.rake +68 -5
  321. metadata +309 -24
  322. data/app/types/decidim/elections/election_answer_type.rb +0 -24
  323. data/app/types/decidim/elections/election_question_type.rb +0 -25
  324. data/app/types/decidim/elections/election_type.rb +0 -27
  325. data/app/types/decidim/elections/elections_type.rb +0 -32
  326. data/config/i18n-tasks.yml +0 -10
  327. data/lib/decidim/elections/bulletin_board_client.rb +0 -35
metadata CHANGED
@@ -1,135 +1,320 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-elections
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.1
4
+ version: 0.24.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonardo Diez
8
- autorequire:
8
+ - Agustí B.R.
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2020-11-12 00:00:00.000000000 Z
12
+ date: 2021-03-10 00:00:00.000000000 Z
12
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: decidim-bulletin_board
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '='
19
+ - !ruby/object:Gem::Version
20
+ version: 0.9.2
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - '='
26
+ - !ruby/object:Gem::Version
27
+ version: 0.9.2
13
28
  - !ruby/object:Gem::Dependency
14
29
  name: decidim-core
15
30
  requirement: !ruby/object:Gem::Requirement
16
31
  requirements:
17
32
  - - '='
18
33
  - !ruby/object:Gem::Version
19
- version: 0.23.1
34
+ version: 0.24.0.rc2
20
35
  type: :runtime
21
36
  prerelease: false
22
37
  version_requirements: !ruby/object:Gem::Requirement
23
38
  requirements:
24
39
  - - '='
25
40
  - !ruby/object:Gem::Version
26
- version: 0.23.1
41
+ version: 0.24.0.rc2
42
+ - !ruby/object:Gem::Dependency
43
+ name: decidim-forms
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - '='
47
+ - !ruby/object:Gem::Version
48
+ version: 0.24.0.rc2
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - '='
54
+ - !ruby/object:Gem::Version
55
+ version: 0.24.0.rc2
27
56
  - !ruby/object:Gem::Dependency
28
57
  name: decidim-proposals
29
58
  requirement: !ruby/object:Gem::Requirement
30
59
  requirements:
31
60
  - - '='
32
61
  - !ruby/object:Gem::Version
33
- version: 0.23.1
62
+ version: 0.24.0.rc2
34
63
  type: :runtime
35
64
  prerelease: false
36
65
  version_requirements: !ruby/object:Gem::Requirement
37
66
  requirements:
38
67
  - - '='
39
68
  - !ruby/object:Gem::Version
40
- version: 0.23.1
69
+ version: 0.24.0.rc2
41
70
  - !ruby/object:Gem::Dependency
42
71
  name: decidim-admin
43
72
  requirement: !ruby/object:Gem::Requirement
44
73
  requirements:
45
74
  - - '='
46
75
  - !ruby/object:Gem::Version
47
- version: 0.23.1
76
+ version: 0.24.0.rc2
48
77
  type: :development
49
78
  prerelease: false
50
79
  version_requirements: !ruby/object:Gem::Requirement
51
80
  requirements:
52
81
  - - '='
53
82
  - !ruby/object:Gem::Version
54
- version: 0.23.1
83
+ version: 0.24.0.rc2
55
84
  - !ruby/object:Gem::Dependency
56
85
  name: decidim-dev
57
86
  requirement: !ruby/object:Gem::Requirement
58
87
  requirements:
59
88
  - - '='
60
89
  - !ruby/object:Gem::Version
61
- version: 0.23.1
90
+ version: 0.24.0.rc2
62
91
  type: :development
63
92
  prerelease: false
64
93
  version_requirements: !ruby/object:Gem::Requirement
65
94
  requirements:
66
95
  - - '='
67
96
  - !ruby/object:Gem::Version
68
- version: 0.23.1
97
+ version: 0.24.0.rc2
69
98
  description: The Elections module adds elections to any participatory space.
70
99
  email:
71
100
  - leo@codegram.com
101
+ - agusti@codegram.com
72
102
  executables: []
73
103
  extensions: []
74
104
  extra_rdoc_files: []
75
105
  files:
76
106
  - README.md
77
107
  - 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
78
111
  - app/assets/config/decidim_elections_manifest.js
112
+ - app/assets/config/decidim_votings_manifest.css
113
+ - app/assets/config/decidim_votings_manifest.js
79
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
80
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
81
128
  - app/assets/stylesheets/decidim/elections/elections.scss
129
+ - app/assets/stylesheets/decidim/elections/focus/_accordion.scss
82
130
  - app/assets/stylesheets/decidim/elections/focus/_evote.scss
83
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
84
136
  - app/cells/decidim/elections/election_cell.rb
85
137
  - app/cells/decidim/elections/election_m/data.erb
86
138
  - app/cells/decidim/elections/election_m/footer.erb
87
139
  - app/cells/decidim/elections/election_m_cell.rb
88
140
  - app/cells/decidim/elections/voting_step_navigation/show.erb
89
141
  - app/cells/decidim/elections/voting_step_navigation_cell.rb
142
+ - app/cells/decidim/votings/content_block_cell.rb
143
+ - app/cells/decidim/votings/content_blocks/highlighted_votings/show.erb
144
+ - app/cells/decidim/votings/content_blocks/highlighted_votings_cell.rb
145
+ - app/cells/decidim/votings/content_blocks/highlighted_votings_settings_form/show.erb
146
+ - app/cells/decidim/votings/content_blocks/highlighted_votings_settings_form_cell.rb
147
+ - app/cells/decidim/votings/content_blocks/landing_page/attachments_and_folders_cell.rb
148
+ - app/cells/decidim/votings/content_blocks/landing_page/description_cell.rb
149
+ - app/cells/decidim/votings/content_blocks/landing_page/elections_cell.rb
150
+ - app/cells/decidim/votings/content_blocks/landing_page/header_cell.rb
151
+ - app/cells/decidim/votings/content_blocks/landing_page/metrics_cell.rb
152
+ - app/cells/decidim/votings/content_blocks/landing_page/polling_stations_cell.rb
153
+ - app/cells/decidim/votings/content_blocks/landing_page/stats_cell.rb
154
+ - app/cells/decidim/votings/content_blocks/landing_page/timeline_cell.rb
155
+ - app/cells/decidim/votings/polling_officers/polling_officers_picker/polling_officers.erb
156
+ - app/cells/decidim/votings/polling_officers/polling_officers_picker/show.erb
157
+ - app/cells/decidim/votings/polling_officers/polling_officers_picker_cell.rb
158
+ - app/cells/decidim/votings/voting_cell.rb
159
+ - app/cells/decidim/votings/voting_m/data.erb
160
+ - app/cells/decidim/votings/voting_m/footer.erb
161
+ - app/cells/decidim/votings/voting_m_cell.rb
162
+ - app/commands/decidim/elections/admin/add_user_as_trustee.rb
90
163
  - app/commands/decidim/elections/admin/create_answer.rb
91
164
  - app/commands/decidim/elections/admin/create_election.rb
92
165
  - app/commands/decidim/elections/admin/create_question.rb
93
166
  - app/commands/decidim/elections/admin/destroy_answer.rb
94
167
  - app/commands/decidim/elections/admin/destroy_election.rb
95
168
  - app/commands/decidim/elections/admin/destroy_question.rb
169
+ - app/commands/decidim/elections/admin/end_vote.rb
96
170
  - app/commands/decidim/elections/admin/import_proposals_to_elections.rb
97
171
  - app/commands/decidim/elections/admin/publish_election.rb
172
+ - app/commands/decidim/elections/admin/publish_results.rb
173
+ - app/commands/decidim/elections/admin/remove_trustee_from_participatory_space.rb
174
+ - app/commands/decidim/elections/admin/setup_election.rb
175
+ - app/commands/decidim/elections/admin/start_key_ceremony.rb
176
+ - app/commands/decidim/elections/admin/start_tally.rb
177
+ - app/commands/decidim/elections/admin/start_vote.rb
98
178
  - app/commands/decidim/elections/admin/unpublish_election.rb
179
+ - app/commands/decidim/elections/admin/update_action_status.rb
99
180
  - app/commands/decidim/elections/admin/update_answer.rb
181
+ - app/commands/decidim/elections/admin/update_answer_selection.rb
100
182
  - app/commands/decidim/elections/admin/update_election.rb
101
183
  - app/commands/decidim/elections/admin/update_question.rb
184
+ - app/commands/decidim/elections/admin/update_trustee_participatory_space.rb
185
+ - app/commands/decidim/elections/trustee_zone/update_election_bulletin_board_status.rb
186
+ - app/commands/decidim/elections/trustee_zone/update_trustee.rb
187
+ - app/commands/decidim/elections/voter/cast_vote.rb
188
+ - app/commands/decidim/elections/voter/update_vote_status.rb
189
+ - app/commands/decidim/votings/admin/create_monitoring_committee_member.rb
190
+ - app/commands/decidim/votings/admin/create_polling_officer.rb
191
+ - app/commands/decidim/votings/admin/create_polling_station.rb
192
+ - app/commands/decidim/votings/admin/create_voting.rb
193
+ - app/commands/decidim/votings/admin/destroy_monitoring_committee_member.rb
194
+ - app/commands/decidim/votings/admin/destroy_polling_officer.rb
195
+ - app/commands/decidim/votings/admin/destroy_polling_station.rb
196
+ - app/commands/decidim/votings/admin/manage_polling_station.rb
197
+ - app/commands/decidim/votings/admin/publish_voting.rb
198
+ - app/commands/decidim/votings/admin/unpublish_voting.rb
199
+ - app/commands/decidim/votings/admin/update_polling_station.rb
200
+ - app/commands/decidim/votings/admin/update_voting.rb
201
+ - app/constraints/decidim/votings/current_component.rb
202
+ - app/constraints/decidim/votings/current_voting.rb
102
203
  - app/controllers/concerns/decidim/elections/orderable.rb
204
+ - app/controllers/concerns/decidim/polling_officers/admin/filterable.rb
205
+ - app/controllers/concerns/decidim/polling_stations/admin/filterable.rb
206
+ - app/controllers/concerns/decidim/votings/admin/filterable.rb
207
+ - app/controllers/concerns/decidim/votings/admin/voting_admin.rb
208
+ - app/controllers/concerns/decidim/votings/needs_voting.rb
209
+ - app/controllers/concerns/decidim/votings/orderable.rb
103
210
  - app/controllers/decidim/elections/admin/answers_controller.rb
104
211
  - app/controllers/decidim/elections/admin/application_controller.rb
105
212
  - app/controllers/decidim/elections/admin/elections_controller.rb
213
+ - app/controllers/decidim/elections/admin/feedback_forms_controller.rb
106
214
  - app/controllers/decidim/elections/admin/proposals_imports_controller.rb
107
215
  - app/controllers/decidim/elections/admin/questions_controller.rb
216
+ - app/controllers/decidim/elections/admin/steps_controller.rb
217
+ - app/controllers/decidim/elections/admin/trustees_participatory_spaces_controller.rb
108
218
  - app/controllers/decidim/elections/application_controller.rb
109
219
  - app/controllers/decidim/elections/elections_controller.rb
220
+ - app/controllers/decidim/elections/feedbacks_controller.rb
221
+ - app/controllers/decidim/elections/trustee_zone/application_controller.rb
222
+ - app/controllers/decidim/elections/trustee_zone/elections_controller.rb
223
+ - app/controllers/decidim/elections/trustee_zone/trustees_controller.rb
110
224
  - app/controllers/decidim/elections/votes_controller.rb
225
+ - app/controllers/decidim/votings/admin/application_controller.rb
226
+ - app/controllers/decidim/votings/admin/component_permissions_controller.rb
227
+ - app/controllers/decidim/votings/admin/components_controller.rb
228
+ - app/controllers/decidim/votings/admin/monitoring_committee_members_controller.rb
229
+ - app/controllers/decidim/votings/admin/polling_officers_controller.rb
230
+ - app/controllers/decidim/votings/admin/polling_stations_controller.rb
231
+ - app/controllers/decidim/votings/admin/voting_attachment_collections_controller.rb
232
+ - app/controllers/decidim/votings/admin/voting_attachments_controller.rb
233
+ - app/controllers/decidim/votings/admin/votings_controller.rb
234
+ - app/controllers/decidim/votings/admin/votings_landing_page_content_blocks_controller.rb
235
+ - app/controllers/decidim/votings/admin/votings_landing_page_controller.rb
236
+ - app/controllers/decidim/votings/application_controller.rb
237
+ - app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
238
+ - app/controllers/decidim/votings/polling_officer_zone/polling_officers_controller.rb
239
+ - app/controllers/decidim/votings/polling_officer_zone/polling_stations_controller.rb
240
+ - app/controllers/decidim/votings/votings_controller.rb
111
241
  - app/events/decidim/elections/election_published_event.rb
242
+ - app/events/decidim/elections/trustees/notify_new_trustee_event.rb
243
+ - app/events/decidim/elections/trustees/notify_trustee_new_election_event.rb
244
+ - app/events/decidim/elections/votes/vote_accepted_event.rb
245
+ - app/events/decidim/votings/polling_officers/polling_station_assigned_event.rb
246
+ - app/forms/decidim/elections/admin/action_form.rb
112
247
  - app/forms/decidim/elections/admin/answer_form.rb
113
248
  - app/forms/decidim/elections/admin/answer_import_proposals_form.rb
114
249
  - app/forms/decidim/elections/admin/election_form.rb
115
250
  - app/forms/decidim/elections/admin/question_form.rb
251
+ - app/forms/decidim/elections/admin/setup_form.rb
252
+ - app/forms/decidim/elections/admin/trustees_participatory_space_form.rb
253
+ - app/forms/decidim/elections/admin/vote_period_form.rb
254
+ - app/forms/decidim/elections/ballot/verify_vote_form.rb
255
+ - app/forms/decidim/elections/trustee_zone/trustee_form.rb
256
+ - app/forms/decidim/elections/voter/encrypted_vote_form.rb
257
+ - app/forms/decidim/votings/admin/monitoring_committee_member_form.rb
258
+ - app/forms/decidim/votings/admin/polling_officer_form.rb
259
+ - app/forms/decidim/votings/admin/polling_station_form.rb
260
+ - app/forms/decidim/votings/admin/voting_form.rb
261
+ - app/helpers/decidim/elections/admin/answers_helper.rb
262
+ - app/helpers/decidim/elections/admin/steps_helper.rb
263
+ - app/helpers/decidim/elections/admin/trustees_participatory_spaces_helper.rb
116
264
  - app/helpers/decidim/elections/application_helper.rb
117
265
  - app/helpers/decidim/elections/election_cells_helper.rb
266
+ - app/helpers/decidim/elections/elections_helper.rb
118
267
  - app/helpers/decidim/elections/votes_helper.rb
268
+ - app/helpers/decidim/votings/admin/polling_officers_picker_helper.rb
269
+ - app/helpers/decidim/votings/votings_helper.rb
270
+ - app/models/decidim/elections/action.rb
119
271
  - app/models/decidim/elections/answer.rb
120
272
  - app/models/decidim/elections/application_record.rb
121
273
  - app/models/decidim/elections/election.rb
274
+ - app/models/decidim/elections/elections_trustee.rb
122
275
  - app/models/decidim/elections/question.rb
276
+ - app/models/decidim/elections/trustee.rb
277
+ - app/models/decidim/elections/trustees_participatory_space.rb
278
+ - app/models/decidim/elections/vote.rb
279
+ - app/models/decidim/votings/monitoring_committee_member.rb
280
+ - app/models/decidim/votings/polling_officer.rb
281
+ - app/models/decidim/votings/polling_station.rb
282
+ - app/models/decidim/votings/voting.rb
123
283
  - app/permissions/decidim/elections/admin/permissions.rb
124
284
  - app/permissions/decidim/elections/permissions.rb
285
+ - app/permissions/decidim/elections/trustee_zone/permissions.rb
286
+ - app/permissions/decidim/votings/admin/permissions.rb
287
+ - app/permissions/decidim/votings/permissions.rb
288
+ - app/permissions/decidim/votings/polling_officer_zone/permissions.rb
125
289
  - app/presenters/decidim/elections/admin_log/election_presenter.rb
126
290
  - app/presenters/decidim/elections/election_presenter.rb
291
+ - app/presenters/decidim/elections/trustee_presenter.rb
292
+ - app/presenters/decidim/votings/admin_log/voting_presenter.rb
293
+ - app/presenters/decidim/votings/polling_station_presenter.rb
294
+ - app/presenters/decidim/votings/voting_presenter.rb
295
+ - app/queries/decidim/elections/admin/pending_actions.rb
296
+ - app/queries/decidim/elections/admin/votes_for_statistics.rb
297
+ - app/queries/decidim/elections/elections_finished_to_end.rb
298
+ - app/queries/decidim/elections/elections_ready_to_start.rb
127
299
  - app/queries/decidim/elections/filtered_elections.rb
300
+ - app/queries/decidim/elections/trustees/by_participatory_space.rb
301
+ - app/queries/decidim/elections/trustees/by_participatory_space_trustee_ids.rb
302
+ - app/queries/decidim/elections/votes/election_votes.rb
303
+ - 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
+ - app/queries/decidim/votings/admin/admin_users.rb
307
+ - app/queries/decidim/votings/admin/polling_officers_join_polling_stations.rb
308
+ - app/queries/decidim/votings/admin/polling_officers_join_polling_stations_and_user.rb
309
+ - app/queries/decidim/votings/admin/polling_officers_join_user.rb
310
+ - app/queries/decidim/votings/organization_prioritized_votings.rb
311
+ - app/queries/decidim/votings/organization_promoted_votings.rb
312
+ - app/queries/decidim/votings/organization_published_votings.rb
313
+ - app/queries/decidim/votings/organization_votings.rb
314
+ - app/queries/decidim/votings/prioritized_votings.rb
315
+ - app/queries/decidim/votings/published_votings.rb
128
316
  - app/services/decidim/elections/election_search.rb
129
- - app/types/decidim/elections/election_answer_type.rb
130
- - app/types/decidim/elections/election_question_type.rb
131
- - app/types/decidim/elections/election_type.rb
132
- - app/types/decidim/elections/elections_type.rb
317
+ - app/services/decidim/votings/voting_search.rb
133
318
  - app/views/decidim/elections/admin/answers/_form.html.erb
134
319
  - app/views/decidim/elections/admin/answers/edit.html.erb
135
320
  - app/views/decidim/elections/admin/answers/index.html.erb
@@ -144,26 +329,82 @@ files:
144
329
  - app/views/decidim/elections/admin/questions/edit.html.erb
145
330
  - app/views/decidim/elections/admin/questions/index.html.erb
146
331
  - app/views/decidim/elections/admin/questions/new.html.erb
332
+ - app/views/decidim/elections/admin/shared/_trustees_secondary_nav.html.erb
333
+ - app/views/decidim/elections/admin/steps/_create_election.html.erb
334
+ - app/views/decidim/elections/admin/steps/_created.html.erb
335
+ - app/views/decidim/elections/admin/steps/_key_ceremony.html.erb
336
+ - app/views/decidim/elections/admin/steps/_key_ceremony_ended.html.erb
337
+ - app/views/decidim/elections/admin/steps/_tally.html.erb
338
+ - app/views/decidim/elections/admin/steps/_tally_ended.html.erb
339
+ - app/views/decidim/elections/admin/steps/_vote.html.erb
340
+ - app/views/decidim/elections/admin/steps/_vote_ended.html.erb
341
+ - app/views/decidim/elections/admin/steps/_vote_stats.html.erb
342
+ - app/views/decidim/elections/admin/steps/index.html.erb
343
+ - app/views/decidim/elections/admin/trustees_participatory_spaces/_form.html.erb
344
+ - app/views/decidim/elections/admin/trustees_participatory_spaces/index.html.erb
345
+ - app/views/decidim/elections/admin/trustees_participatory_spaces/new.html.erb
147
346
  - app/views/decidim/elections/elections/_count.html.erb
148
347
  - app/views/decidim/elections/elections/_election.html.erb
149
348
  - app/views/decidim/elections/elections/_elections.html.erb
150
349
  - app/views/decidim/elections/elections/_filters.html.erb
151
350
  - 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
152
353
  - app/views/decidim/elections/elections/index.html.erb
153
354
  - app/views/decidim/elections/elections/index.js.erb
154
355
  - app/views/decidim/elections/elections/show.html.erb
356
+ - app/views/decidim/elections/trustee_zone/elections/_backup_modal.html.erb
357
+ - app/views/decidim/elections/trustee_zone/elections/_key_ceremony_steps.html.erb
358
+ - app/views/decidim/elections/trustee_zone/elections/_restore_modal.html.erb
359
+ - app/views/decidim/elections/trustee_zone/elections/_tally_steps.html.erb
360
+ - app/views/decidim/elections/trustee_zone/elections/show.html.erb
361
+ - app/views/decidim/elections/trustee_zone/elections/update.js.erb
362
+ - app/views/decidim/elections/trustee_zone/trustees/show.html.erb
155
363
  - app/views/decidim/elections/votes/_election_votes_confirm.html.erb
156
364
  - app/views/decidim/elections/votes/_election_votes_confirm_footer.html.erb
157
365
  - app/views/decidim/elections/votes/_election_votes_confirmed.html.erb
158
366
  - app/views/decidim/elections/votes/_election_votes_encrypting.html.erb
367
+ - app/views/decidim/elections/votes/_election_votes_failed.html.erb
159
368
  - app/views/decidim/elections/votes/_election_votes_header.html.erb
160
369
  - app/views/decidim/elections/votes/_election_votes_modal.html.erb
161
370
  - app/views/decidim/elections/votes/_election_votes_question.html.erb
162
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
163
374
  - app/views/decidim/elections/votes/new.html.erb
375
+ - app/views/decidim/elections/votes/verify.html.erb
376
+ - app/views/decidim/votings/admin/monitoring_committee_members/_form.html.erb
377
+ - app/views/decidim/votings/admin/monitoring_committee_members/index.html.erb
378
+ - app/views/decidim/votings/admin/monitoring_committee_members/new.html.erb
379
+ - app/views/decidim/votings/admin/polling_officers/_form.html.erb
380
+ - app/views/decidim/votings/admin/polling_officers/index.html.erb
381
+ - app/views/decidim/votings/admin/polling_officers/new.html.erb
382
+ - app/views/decidim/votings/admin/polling_stations/_form.html.erb
383
+ - app/views/decidim/votings/admin/polling_stations/edit.html.erb
384
+ - app/views/decidim/votings/admin/polling_stations/index.html.erb
385
+ - app/views/decidim/votings/admin/polling_stations/new.html.erb
386
+ - app/views/decidim/votings/admin/votings/_form.html.erb
387
+ - app/views/decidim/votings/admin/votings/edit.html.erb
388
+ - app/views/decidim/votings/admin/votings/index.html.erb
389
+ - app/views/decidim/votings/admin/votings/new.html.erb
390
+ - 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
393
+ - app/views/decidim/votings/votings/_count.html.erb
394
+ - app/views/decidim/votings/votings/_filters.html.erb
395
+ - app/views/decidim/votings/votings/_filters_small_view.html.erb
396
+ - app/views/decidim/votings/votings/_promoted_voting.html.erb
397
+ - app/views/decidim/votings/votings/_voting_details.html.erb
398
+ - app/views/decidim/votings/votings/_votings.html.erb
399
+ - app/views/decidim/votings/votings/index.html.erb
400
+ - app/views/decidim/votings/votings/index.js.erb
401
+ - app/views/decidim/votings/votings/show.html.erb
164
402
  - app/views/layouts/decidim/_election_votes_header.html.erb
403
+ - app/views/layouts/decidim/_voting_header.html.erb
404
+ - app/views/layouts/decidim/admin/voting.html.erb
165
405
  - app/views/layouts/decidim/election_votes.html.erb
166
- - config/i18n-tasks.yml
406
+ - app/views/layouts/decidim/voting.html.erb
407
+ - config/initializers/decidim_bulletin_board.rb
167
408
  - config/locales/am-ET.yml
168
409
  - config/locales/ar.yml
169
410
  - config/locales/bg-BG.yml
@@ -213,11 +454,13 @@ files:
213
454
  - config/locales/pt.yml
214
455
  - config/locales/ro-RO.yml
215
456
  - config/locales/ru.yml
457
+ - config/locales/si-LK.yml
216
458
  - config/locales/sk.yml
217
459
  - config/locales/sl.yml
218
460
  - config/locales/so-SO.yml
219
461
  - config/locales/sr-CS.yml
220
462
  - config/locales/sv.yml
463
+ - config/locales/sw-KE.yml
221
464
  - config/locales/ti-ER.yml
222
465
  - config/locales/tr-TR.yml
223
466
  - config/locales/uk.yml
@@ -231,21 +474,63 @@ files:
231
474
  - db/migrate/20200601141412_add_published_at_to_elections.rb
232
475
  - db/migrate/20200807125040_remove_subtitle_from_decidim_elections.rb
233
476
  - db/migrate/20200910103648_add_min_selections_to_decidim_elections_questions.rb
477
+ - db/migrate/20200915142713_add_questionnaire_to_existing_elections.rb
478
+ - db/migrate/20200918153813_create_decidim_elections_trustees_participatory_spaces.rb
479
+ - db/migrate/20200918153824_create_decidim_elections_elections_trustees.rb
480
+ - db/migrate/20200918153835_create_decidim_elections_trustees.rb
481
+ - db/migrate/20201026163334_add_blocked_at_and_bb_status_to_elections.rb
482
+ - db/migrate/20201028090110_add_votes_to_decidim_elections_answers.rb
483
+ - db/migrate/20201028135614_add_selected_to_decidim_elections_answers.rb
484
+ - db/migrate/20201209110653_create_decidim_elections_votes.rb
485
+ - db/migrate/20201216091123_add_name_to_trustees.rb
486
+ - db/migrate/20210113113818_add_message_id_to_decidim_elections_votes.rb
487
+ - db/migrate/20210113120115_create_decidim_elections_votings.rb
488
+ - db/migrate/20210114100749_add_published_at_to_decidim_votings_votings.rb
489
+ - db/migrate/20210114111850_add_user_to_decidim_elections_votes.rb
490
+ - db/migrate/20210120164634_add_promoted_to_voting.rb
491
+ - db/migrate/20210125124801_add_voting_type_to_voting_voting.rb
492
+ - db/migrate/20210129124956_create_decidim_elections_actions.rb
493
+ - db/migrate/20210204132111_add_votings_polling_stations.rb
494
+ - db/migrate/20210208090441_add_polling_officers_to_votings.rb
495
+ - db/migrate/20210210090738_add_votings_polling_station_references_to_votings_polling_officer.rb
496
+ - db/migrate/20210216074707_add_monitoring_committee_member.rb
497
+ - db/seeds/city.jpeg
498
+ - lib/decidim/api/election_answer_type.rb
499
+ - lib/decidim/api/election_question_type.rb
500
+ - lib/decidim/api/election_type.rb
501
+ - lib/decidim/api/elections_type.rb
502
+ - lib/decidim/api/trustee_type.rb
503
+ - lib/decidim/api/voting_type.rb
234
504
  - lib/decidim/elections.rb
235
505
  - lib/decidim/elections/admin.rb
236
506
  - lib/decidim/elections/admin_engine.rb
237
- - lib/decidim/elections/bulletin_board_client.rb
507
+ - lib/decidim/elections/answer_serializer.rb
508
+ - lib/decidim/elections/api.rb
238
509
  - lib/decidim/elections/component.rb
239
510
  - lib/decidim/elections/engine.rb
240
511
  - lib/decidim/elections/seeds/city.jpeg
241
512
  - lib/decidim/elections/test/factories.rb
513
+ - lib/decidim/elections/trustee_zone.rb
514
+ - lib/decidim/elections/trustee_zone_engine.rb
242
515
  - lib/decidim/elections/version.rb
516
+ - lib/decidim/votings.rb
517
+ - lib/decidim/votings/admin.rb
518
+ - lib/decidim/votings/admin_engine.rb
519
+ - lib/decidim/votings/api.rb
520
+ - lib/decidim/votings/engine.rb
521
+ - lib/decidim/votings/participatory_space.rb
522
+ - lib/decidim/votings/polling_officer_zone.rb
523
+ - lib/decidim/votings/polling_officer_zone_engine.rb
524
+ - lib/decidim/votings/query_extensions.rb
525
+ - lib/decidim/votings/test/capybara_polling_officers_picker.rb
526
+ - lib/decidim/votings/test/factories.rb
527
+ - lib/decidim/votings/voting_serializer.rb
243
528
  - lib/tasks/decidim_elections.rake
244
529
  homepage: https://github.com/decidim/decidim-elections
245
530
  licenses:
246
531
  - AGPL-3.0
247
532
  metadata: {}
248
- post_install_message:
533
+ post_install_message:
249
534
  rdoc_options: []
250
535
  require_paths:
251
536
  - lib
@@ -253,15 +538,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
253
538
  requirements:
254
539
  - - ">="
255
540
  - !ruby/object:Gem::Version
256
- version: '2.6'
541
+ version: '2.7'
257
542
  required_rubygems_version: !ruby/object:Gem::Requirement
258
543
  requirements:
259
- - - ">="
544
+ - - ">"
260
545
  - !ruby/object:Gem::Version
261
- version: '0'
546
+ version: 1.3.1
262
547
  requirements: []
263
- rubygems_version: 3.0.3
264
- signing_key:
548
+ rubygems_version: 3.1.2
549
+ signing_key:
265
550
  specification_version: 4
266
- summary: A decidim elections module
551
+ summary: A decidim elections module (votings space and elections component)
267
552
  test_files: []