decidim-elections 0.26.2 → 0.27.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/cells/decidim/votings/content_blocks/highlighted_votings/show.erb +2 -2
  4. data/app/cells/decidim/votings/content_blocks/highlighted_votings_cell.rb +1 -4
  5. data/app/cells/decidim/votings/content_blocks/landing_page/description/show.erb +1 -1
  6. data/app/cells/decidim/votings/content_blocks/landing_page/header/show.erb +2 -2
  7. data/app/cells/decidim/votings/content_blocks/landing_page/header_cell.rb +1 -1
  8. data/app/commands/decidim/elections/admin/add_user_as_trustee.rb +1 -1
  9. data/app/commands/decidim/elections/admin/create_answer.rb +1 -1
  10. data/app/commands/decidim/elections/admin/create_election.rb +1 -1
  11. data/app/commands/decidim/elections/admin/create_question.rb +1 -2
  12. data/app/commands/decidim/elections/admin/destroy_answer.rb +1 -1
  13. data/app/commands/decidim/elections/admin/destroy_election.rb +1 -1
  14. data/app/commands/decidim/elections/admin/destroy_question.rb +1 -1
  15. data/app/commands/decidim/elections/admin/end_vote.rb +1 -1
  16. data/app/commands/decidim/elections/admin/import_proposals_to_elections.rb +1 -1
  17. data/app/commands/decidim/elections/admin/publish_election.rb +1 -1
  18. data/app/commands/decidim/elections/admin/publish_results.rb +1 -1
  19. data/app/commands/decidim/elections/admin/remove_trustee_from_participatory_space.rb +1 -1
  20. data/app/commands/decidim/elections/admin/report_missing_trustee.rb +1 -1
  21. data/app/commands/decidim/elections/admin/setup_election.rb +4 -2
  22. data/app/commands/decidim/elections/admin/start_key_ceremony.rb +1 -1
  23. data/app/commands/decidim/elections/admin/start_tally.rb +1 -1
  24. data/app/commands/decidim/elections/admin/start_vote.rb +1 -1
  25. data/app/commands/decidim/elections/admin/unpublish_election.rb +1 -1
  26. data/app/commands/decidim/elections/admin/update_action_status.rb +1 -1
  27. data/app/commands/decidim/elections/admin/update_answer.rb +1 -1
  28. data/app/commands/decidim/elections/admin/update_answer_selection.rb +1 -1
  29. data/app/commands/decidim/elections/admin/update_election.rb +1 -1
  30. data/app/commands/decidim/elections/admin/update_question.rb +1 -2
  31. data/app/commands/decidim/elections/admin/update_trustee_participatory_space.rb +1 -1
  32. data/app/commands/decidim/elections/trustee_zone/update_election_bulletin_board_status.rb +1 -1
  33. data/app/commands/decidim/elections/trustee_zone/update_trustee.rb +1 -1
  34. data/app/commands/decidim/elections/voter/cast_vote.rb +1 -1
  35. data/app/commands/decidim/elections/voter/update_vote_status.rb +2 -2
  36. data/app/commands/decidim/votings/admin/create_ballot_style.rb +1 -1
  37. data/app/commands/decidim/votings/admin/create_monitoring_committee_member.rb +1 -1
  38. data/app/commands/decidim/votings/admin/create_polling_officer.rb +1 -1
  39. data/app/commands/decidim/votings/admin/create_voting.rb +3 -2
  40. data/app/commands/decidim/votings/admin/destroy_ballot_style.rb +1 -1
  41. data/app/commands/decidim/votings/admin/destroy_monitoring_committee_member.rb +1 -1
  42. data/app/commands/decidim/votings/admin/destroy_polling_officer.rb +1 -1
  43. data/app/commands/decidim/votings/admin/destroy_polling_station.rb +1 -1
  44. data/app/commands/decidim/votings/admin/manage_polling_station.rb +2 -2
  45. data/app/commands/decidim/votings/admin/monitoring_committee_validate_polling_station_closure.rb +1 -1
  46. data/app/commands/decidim/votings/admin/publish_voting.rb +1 -1
  47. data/app/commands/decidim/votings/admin/unpublish_voting.rb +1 -1
  48. data/app/commands/decidim/votings/admin/update_ballot_style.rb +1 -1
  49. data/app/commands/decidim/votings/admin/update_voting.rb +3 -2
  50. data/app/commands/decidim/votings/census/admin/create_dataset.rb +32 -21
  51. data/app/commands/decidim/votings/census/admin/create_datum.rb +1 -1
  52. data/app/commands/decidim/votings/census/admin/destroy_dataset.rb +1 -1
  53. data/app/commands/decidim/votings/census/admin/increment_dataset_processed_rows.rb +1 -1
  54. data/app/commands/decidim/votings/census/admin/launch_access_codes_export.rb +4 -2
  55. data/app/commands/decidim/votings/census/admin/launch_access_codes_generation.rb +2 -2
  56. data/app/commands/decidim/votings/census/admin/update_dataset.rb +1 -1
  57. data/app/commands/decidim/votings/certify_polling_station_closure.rb +1 -1
  58. data/app/commands/decidim/votings/check_census.rb +1 -1
  59. data/app/commands/decidim/votings/create_polling_station_closure.rb +1 -1
  60. data/app/commands/decidim/votings/create_polling_station_results.rb +1 -1
  61. data/app/commands/decidim/votings/send_access_code.rb +1 -1
  62. data/app/commands/decidim/votings/sign_polling_station_closure.rb +1 -1
  63. data/app/commands/decidim/votings/voter/in_person_vote.rb +1 -1
  64. data/app/commands/decidim/votings/voter/update_in_person_vote_status.rb +1 -1
  65. data/app/controllers/decidim/elections/admin/steps_controller.rb +2 -2
  66. data/app/controllers/decidim/elections/elections_controller.rb +10 -12
  67. data/app/controllers/decidim/elections/trustee_zone/elections_controller.rb +1 -1
  68. data/app/controllers/decidim/votings/census/admin/census_controller.rb +6 -2
  69. data/app/controllers/decidim/votings/votings_controller.rb +10 -13
  70. data/app/forms/decidim/elections/admin/question_form.rb +0 -2
  71. data/app/forms/decidim/elections/admin/setup_form.rb +46 -3
  72. data/app/forms/decidim/elections/admin/vote_period_form.rb +2 -2
  73. data/app/forms/decidim/votings/admin/ballot_style_form.rb +1 -1
  74. data/app/forms/decidim/votings/admin/voting_form.rb +4 -3
  75. data/app/forms/decidim/votings/census/admin/dataset_form.rb +2 -5
  76. data/app/forms/decidim/votings/census/admin/datum_form.rb +1 -1
  77. data/app/helpers/decidim/elections/application_helper.rb +1 -1
  78. data/app/helpers/decidim/votings/votings_helper.rb +1 -1
  79. data/app/models/decidim/elections/answer.rb +1 -6
  80. data/app/models/decidim/elections/election.rb +15 -4
  81. data/app/models/decidim/elections/question.rb +2 -7
  82. data/app/models/decidim/votings/census/dataset.rb +1 -1
  83. data/app/models/decidim/votings/polling_station.rb +2 -3
  84. data/app/models/decidim/votings/voting.rb +15 -0
  85. data/app/packs/entrypoints/{decidim_elections_trustee_tally.js → decidim_elections_trustee_tally_started.js} +0 -0
  86. data/app/packs/src/decidim/elections/admin/pending_action.js +2 -0
  87. data/app/packs/src/decidim/elections/admin/trustees_process.js +2 -0
  88. data/app/packs/src/decidim/elections/broken_promises_handler.js +11 -0
  89. data/app/packs/src/decidim/elections/trustee/key_ceremony.js +3 -0
  90. data/app/packs/src/decidim/elections/trustee/tally.js +4 -1
  91. data/app/packs/src/decidim/elections/voter/casting-vote.js +3 -0
  92. data/app/packs/src/decidim/elections/voter/setup-vote.js +3 -0
  93. data/app/packs/src/decidim/votings/admin/update_census_dataset_status.js +2 -2
  94. data/app/packs/src/decidim/votings/in-person-vote.js +3 -0
  95. data/app/permissions/decidim/votings/admin/permissions.rb +2 -14
  96. data/app/permissions/decidim/votings/permissions.rb +1 -3
  97. data/app/presenters/decidim/votings/voting_stats_presenter.rb +4 -1
  98. data/app/queries/decidim/elections/admin/pending_actions.rb +1 -1
  99. data/app/queries/decidim/elections/admin/votes_for_statistics.rb +1 -1
  100. data/app/queries/decidim/elections/elections_finished_to_end.rb +1 -1
  101. data/app/queries/decidim/elections/elections_ready_to_start.rb +1 -1
  102. data/app/queries/decidim/elections/filtered_elections.rb +1 -1
  103. data/app/queries/decidim/elections/trustees/by_participatory_space.rb +1 -1
  104. data/app/queries/decidim/elections/trustees/by_participatory_space_trustee_ids.rb +1 -1
  105. data/app/queries/decidim/elections/votes/last_vote_for_voter.rb +1 -1
  106. data/app/queries/decidim/elections/votes/pending_votes.rb +1 -1
  107. data/app/queries/decidim/votings/admin/admin_users.rb +1 -1
  108. data/app/queries/decidim/votings/admin/ballot_style_by_voting_code.rb +1 -1
  109. data/app/queries/decidim/votings/admin/polling_officers_join_polling_stations.rb +1 -1
  110. data/app/queries/decidim/votings/admin/polling_officers_join_polling_stations_and_user.rb +2 -2
  111. data/app/queries/decidim/votings/admin/polling_officers_join_user.rb +1 -1
  112. data/app/queries/decidim/votings/organization_prioritized_votings.rb +2 -2
  113. data/app/queries/decidim/votings/organization_promoted_votings.rb +1 -1
  114. data/app/queries/decidim/votings/organization_published_votings.rb +2 -2
  115. data/app/queries/decidim/votings/organization_votings.rb +1 -1
  116. data/app/queries/decidim/votings/prioritized_votings.rb +1 -1
  117. data/app/queries/decidim/votings/published_votings.rb +1 -1
  118. data/app/queries/decidim/votings/votes/in_person_vote_for_voter.rb +1 -1
  119. data/app/queries/decidim/votings/votes/pending_in_person_votes.rb +1 -1
  120. data/app/services/decidim/votings/census_vote_flow.rb +1 -3
  121. data/app/views/decidim/elections/admin/questions/_form.html.erb +0 -4
  122. data/app/views/decidim/elections/admin/steps/_create_election.html.erb +14 -1
  123. data/app/views/decidim/elections/admin/steps/{_tally.html.erb → _tally_started.html.erb} +1 -1
  124. data/app/views/decidim/elections/admin/steps/index.html.erb +2 -0
  125. data/app/views/decidim/elections/elections/_filters.html.erb +2 -2
  126. data/app/views/decidim/elections/elections/election_log.html.erb +3 -1
  127. data/app/views/decidim/elections/shared/_broken_promises_modal.html.erb +33 -0
  128. data/app/views/decidim/elections/trustee_zone/elections/{_tally_steps.html.erb → _tally_started_steps.html.erb} +0 -0
  129. data/app/views/decidim/elections/trustee_zone/elections/show.html.erb +5 -1
  130. data/app/views/decidim/elections/trustee_zone/trustees/show.html.erb +3 -1
  131. data/app/views/decidim/elections/votes/_onboarding_modal.html.erb +3 -1
  132. data/app/views/decidim/elections/votes/_show_casting.html.erb +5 -1
  133. data/app/views/decidim/elections/votes/new.html.erb +11 -5
  134. data/app/views/decidim/elections/votes/verify.html.erb +4 -1
  135. data/app/views/decidim/votings/admin/votings/_form.html.erb +9 -0
  136. data/app/views/decidim/votings/census/admin/census/_creating_data.html.erb +1 -1
  137. data/app/views/decidim/votings/census/admin/census/_exporting_codes.html.erb +1 -1
  138. data/app/views/decidim/votings/census/admin/census/_freeze.html.erb +2 -0
  139. data/app/views/decidim/votings/census/admin/census/_generate_codes.html.erb +14 -4
  140. data/app/views/decidim/votings/census/admin/census/show.html.erb +1 -1
  141. data/app/views/decidim/votings/polling_officer_zone/closures/_certify_form.html.erb +3 -1
  142. data/app/views/decidim/votings/polling_officer_zone/closures/_sign_form.html.erb +3 -1
  143. data/app/views/decidim/votings/polling_officer_zone/closures/edit.html.erb +3 -1
  144. data/app/views/decidim/votings/polling_officer_zone/closures/new.html.erb +3 -1
  145. data/app/views/decidim/votings/polling_officer_zone/in_person_votes/_complete_voting.html.erb +8 -2
  146. data/app/views/decidim/votings/polling_officer_zone/in_person_votes/new.html.erb +5 -1
  147. data/app/views/decidim/votings/polling_officer_zone/in_person_votes/show.html.erb +5 -1
  148. data/app/views/decidim/votings/votings/_filters.html.erb +2 -3
  149. data/app/views/decidim/votings/votings/_promoted_voting.html.erb +1 -1
  150. data/app/views/layouts/decidim/election_votes.html.erb +3 -1
  151. data/config/assets.rb +1 -1
  152. data/config/locales/ar.yml +2 -3
  153. data/config/locales/bg.yml +1 -0
  154. data/config/locales/ca.yml +64 -30
  155. data/config/locales/cs.yml +66 -27
  156. data/config/locales/de.yml +53 -30
  157. data/config/locales/el.yml +1 -1
  158. data/config/locales/en.yml +63 -27
  159. data/config/locales/es-MX.yml +65 -31
  160. data/config/locales/es-PY.yml +65 -31
  161. data/config/locales/es.yml +67 -33
  162. data/config/locales/eu.yml +5 -40
  163. data/config/locales/fi-plain.yml +64 -29
  164. data/config/locales/fi.yml +66 -31
  165. data/config/locales/fr-CA.yml +64 -29
  166. data/config/locales/fr.yml +62 -27
  167. data/config/locales/ga-IE.yml +1 -15
  168. data/config/locales/gl.yml +22 -32
  169. data/config/locales/hu.yml +28 -13
  170. data/config/locales/it.yml +5 -34
  171. data/config/locales/ja.yml +65 -33
  172. data/config/locales/lb.yml +1 -0
  173. data/config/locales/lt.yml +1445 -0
  174. data/config/locales/lv.yml +1 -1
  175. data/config/locales/nl.yml +10 -51
  176. data/config/locales/no.yml +11 -39
  177. data/config/locales/pl.yml +16 -35
  178. data/config/locales/pt-BR.yml +6 -34
  179. data/config/locales/pt.yml +12 -40
  180. data/config/locales/ro-RO.yml +11 -25
  181. data/config/locales/sl.yml +1 -0
  182. data/config/locales/sv.yml +60 -11
  183. data/config/locales/tr-TR.yml +4 -14
  184. data/config/locales/zh-CN.yml +1 -5
  185. data/db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb +19 -0
  186. data/db/migrate/20220424121541_add_show_check_census_to_votings.rb +7 -0
  187. data/db/migrate/20220615102642_remove_description_from_elections_questions.rb +7 -0
  188. data/db/migrate/20220711112802_rename_dataset_file_to_filename.rb +7 -0
  189. data/lib/decidim/api/election_question_type.rb +0 -1
  190. data/lib/decidim/elections/component.rb +4 -16
  191. data/lib/decidim/elections/test/factories.rb +4 -5
  192. data/lib/decidim/elections/version.rb +1 -1
  193. data/lib/decidim/votings/participatory_space.rb +3 -3
  194. data/lib/decidim/votings/test/factories.rb +3 -2
  195. metadata +31 -27
  196. data/app/services/decidim/elections/election_search.rb +0 -35
  197. data/app/services/decidim/votings/voting_search.rb +0 -46
@@ -43,3 +43,5 @@
43
43
  <%= render partial: current_step.to_s %>
44
44
  </div>
45
45
  <% end %>
46
+
47
+ <%= render "decidim/elections/shared/broken_promises_modal" %>
@@ -4,7 +4,7 @@
4
4
  <div class="filters__section">
5
5
  <div class="filters__search">
6
6
  <div class="input-group">
7
- <%= form.search_field :search_text,
7
+ <%= form.search_field :search_text_cont,
8
8
  label: false,
9
9
  class: "input-group-field",
10
10
  placeholder: t(".search"),
@@ -20,6 +20,6 @@
20
20
  </div>
21
21
  </div>
22
22
 
23
- <%= form.check_boxes_tree :state, state_filter_values, legend_title: t(".state") %>
23
+ <%= form.check_boxes_tree :with_any_date, date_filter_values, legend_title: t(".date") %>
24
24
  <%= hidden_field_tag :order, order, id: nil, class: "order_filter" %>
25
25
  <% end %>
@@ -179,4 +179,6 @@
179
179
  </div>
180
180
  </div>
181
181
 
182
- <%= javascript_pack_tag "decidim_elections_election_log" %>
182
+ <% content_for :js_content do %>
183
+ <%= javascript_pack_tag "decidim_elections_election_log" %>
184
+ <% end %>
@@ -0,0 +1,33 @@
1
+ <% i18n_scope ||= "decidim.elections.connection.failed" %>
2
+
3
+ <div class="reveal" id="server-failure" data-reveal>
4
+ <div class="reveal__header">
5
+ <h3 class="reveal__title">
6
+ <%= t("modal.title", scope: i18n_scope) %>
7
+ </h3>
8
+
9
+ <button class="close-button" data-close aria-label="<%= t("modal.close", scope: i18n_scope) %>"
10
+ type="button">
11
+ <span aria-hidden="true">&times;</span>
12
+ </button>
13
+ </div>
14
+
15
+ <div class="row">
16
+ <p class="communication_error">
17
+ <%= t("modal.communication_lost", scope: i18n_scope).html_safe %>
18
+ </p>
19
+ <p class="generic_error hide">
20
+ <%= t("modal.generic_error", scope: i18n_scope).html_safe %>
21
+ </p>
22
+
23
+ <p class="help-text tech-info"></p>
24
+ </div>
25
+
26
+ <div class="row">
27
+ <div class="column flex-center">
28
+ <button class="button primary expanded" data-close type="button">
29
+ <%= t("modal.close", scope: i18n_scope) %>
30
+ </button>
31
+ </div>
32
+ </div>
33
+ </div>
@@ -18,5 +18,9 @@
18
18
  <%= render("#{current_step}_steps") %>
19
19
  </div>
20
20
 
21
- <%= javascript_pack_tag "decidim_elections_trustee_#{current_step}" %>
21
+ <%= render "decidim/elections/shared/broken_promises_modal" %>
22
+
23
+ <% content_for :js_content do %>
24
+ <%= javascript_pack_tag "decidim_elections_trustee_#{current_step}" %>
25
+ <% end %>
22
26
  <% end %>
@@ -99,4 +99,6 @@
99
99
  <% end %>
100
100
  </div>
101
101
 
102
- <%= javascript_pack_tag "decidim_elections_trustee_trustee_zone" %>
102
+ <% content_for :js_content do %>
103
+ <%= javascript_pack_tag "decidim_elections_trustee_trustee_zone" %>
104
+ <% end %>
@@ -20,4 +20,6 @@
20
20
  </div>
21
21
  </div>
22
22
 
23
- <%= javascript_pack_tag "decidim_elections_onboarding" %>
23
+ <% content_for :js_content do %>
24
+ <%= javascript_pack_tag "decidim_elections_onboarding" %>
25
+ <% end %>
@@ -22,4 +22,8 @@
22
22
  <%= form_tag election_vote_path(election, id: vote.encrypted_vote_hash), method: :patch, class: "update_vote_status" %>
23
23
  </div>
24
24
 
25
- <%= javascript_pack_tag "decidim_elections_voter_casting_vote" %>
25
+ <%= render "decidim/elections/shared/broken_promises_modal" %>
26
+
27
+ <% content_for :js_content do %>
28
+ <%= javascript_pack_tag "decidim_elections_voter_casting_vote" %>
29
+ <% end %>
@@ -59,9 +59,15 @@
59
59
  </div>
60
60
  </div>
61
61
 
62
- <% if preview_mode? %>
63
- <%= javascript_pack_tag "decidim_elections_voter_setup_preview" %>
64
- <% else %>
65
- <%= javascript_pack_tag "decidim_elections_voter_setup_vote" %>
62
+ <%= render "decidim/elections/shared/broken_promises_modal" %>
63
+
64
+ <% content_for :js_content do %>
65
+
66
+ <% if preview_mode? %>
67
+ <%= javascript_pack_tag "decidim_elections_voter_setup_preview" %>
68
+ <% else %>
69
+ <%= javascript_pack_tag "decidim_elections_voter_setup_vote" %>
70
+ <% end %>
71
+
72
+ <%= javascript_pack_tag "decidim_elections_voter_new_vote" %>
66
73
  <% end %>
67
- <%= javascript_pack_tag "decidim_elections_voter_new_vote" %>
@@ -54,6 +54,7 @@
54
54
 
55
55
  <input type="text" class="vote-identifier" name="vote-identifier" value="<%= params[:vote_id].gsub("_","") %>">
56
56
  </label>
57
+ <p class="help-text"><%= t("decidim.elections.votes.verify.form.vote_identifier_help") %></p>
57
58
  <div>
58
59
  <%= link_to(
59
60
  "#",
@@ -72,4 +73,6 @@
72
73
 
73
74
  </div>
74
75
 
75
- <%= javascript_pack_tag "decidim_elections_voter_verify_vote" %>
76
+ <% content_for :js_content do %>
77
+ <%= javascript_pack_tag "decidim_elections_voter_verify_vote" %>
78
+ <% end %>
@@ -44,6 +44,15 @@
44
44
  </div>
45
45
  </div>
46
46
 
47
+ <div class="row">
48
+ <div class="columns xlarge-6 show_check_census">
49
+ <%= form.check_box :show_check_census %>
50
+ <p class="help-text">
51
+ <%== t(".show_check_census_help") %>
52
+ </p>
53
+ </div>
54
+ </div>
55
+
47
56
  <div class="row">
48
57
  <div class="columns xlarge-6 census_contact_information">
49
58
  <%= form.text_field :census_contact_information, label: t(".census_contact_information") %>
@@ -4,7 +4,7 @@
4
4
  scope: "decidim.votings.census.admin.census",
5
5
  processed_count: current_census.csv_row_processed_count,
6
6
  raw_count: current_census.csv_row_raw_count,
7
- file: current_census.file)}" %>
7
+ file: current_census.filename)}" %>
8
8
 
9
9
  <%= cell("decidim/announcement", info_message, callout_class: "warning") %>
10
10
  </div>
@@ -1,3 +1,3 @@
1
1
  <div class="card-section" id="census-creating-data-wrapper" data-update-status-url="<%= admin_status_voting_census_path %>">
2
- <%= cell("decidim/announcement", "<span class='loading-spinner'></span> &nbsp;#{t("exporting_access_codes.info_message", scope: "decidim.votings.census.admin.census")}", callout_class: "warning") %>
2
+ <%= cell("decidim/announcement", "<span class='loading-spinner'></span> &nbsp;#{t("exporting_access_codes.info_message", scope: "decidim.votings.census.admin.census", email: user_email)}", callout_class: "warning") %>
3
3
  </div>
@@ -1,3 +1,5 @@
1
1
  <div class="card-section">
2
2
  <%= cell("decidim/announcement", t("freeze.callout", scope: "decidim.votings.census.admin.census", email: user_email), callout_class: "warning" ) %>
3
+
4
+ <p><%= t("freeze.help_html", scope: "decidim.votings.census.admin.census") %></p>
3
5
  </div>
@@ -3,23 +3,33 @@
3
3
  scope: "decidim.votings.census.admin.census",
4
4
  data_count: current_census.data.size,
5
5
  raw_count: current_census.csv_row_raw_count,
6
- file: current_census.file) %>
6
+ file: current_census.filename) %>
7
7
  <% callout_class = "warning" %>
8
8
  <% else %>
9
9
  <% info_message = t("generate_access_codes.info_message_all",
10
10
  scope: "decidim.votings.census.admin.census",
11
11
  data_count: current_census.data.size,
12
12
  raw_count: current_census.csv_row_raw_count,
13
- file: current_census.file) %>
13
+ file: current_census.filename) %>
14
14
  <% callout_class = "success" %>
15
15
  <% end %>
16
16
 
17
17
  <div class="card-section">
18
18
  <%= cell("decidim/announcement", info_message, callout_class: callout_class ) %>
19
19
 
20
- <%= cell("decidim/announcement", t("generate_access_codes.callout", scope: "decidim.votings.census.admin.census"), callout_class: "warning" ) %>
21
- <%= link_to t("generate_access_codes.button", scope: "decidim.votings.census.admin.census"),
20
+ <% if current_census.data.size.zero? %>
21
+ <%= cell("decidim/announcement", t("generate_access_codes.start_over", scope: "decidim.votings.census.admin.census"), callout_class: "warning" ) %>
22
+ <%= link_to t("delete.button", scope: "decidim.votings.census.admin.census"),
23
+ admin_voting_census_path,
24
+ class: "button alert destroy",
25
+ method: :delete,
26
+ data: { confirm: t("delete.confirm", scope: "decidim.votings.census.admin.census") } %>
27
+
28
+ <% else %>
29
+ <%= cell("decidim/announcement", t("generate_access_codes.callout", scope: "decidim.votings.census.admin.census"), callout_class: "warning" ) %>
30
+ <%= link_to t("generate_access_codes.button", scope: "decidim.votings.census.admin.census"),
22
31
  generate_access_codes_path,
23
32
  class: "button",
24
33
  data: { confirm: t("generate_access_codes.confirm", scope: "decidim.votings.census.admin.census") } %>
34
+ <% end %>
25
35
  </div>
@@ -18,6 +18,6 @@
18
18
  </div>
19
19
  </div>
20
20
 
21
- <% if current_census.creating_data? || current_census.generating_codes? %>
21
+ <% if waiting_status? %>
22
22
  <%= javascript_pack_tag "decidim_votings_admin_update_census_dataset_status" %>
23
23
  <% end %>
@@ -6,7 +6,9 @@
6
6
  <fieldset>
7
7
  <legend><%= t("form_legend", scope: "decidim.votings.polling_officer_zone.closures.certify") %></legend>
8
8
  <div class="row column">
9
- <%= form.file_field :add_photos, multiple: true, label: t("add_images", scope: "decidim.votings.polling_officer_zone.closures.certify") %>
9
+ <%= form.attachment :photos,
10
+ multiple: true,
11
+ label: t("add_images", scope: "decidim.votings.polling_officer_zone.closures.certify") %>
10
12
  </div>
11
13
  </fieldset>
12
14
  </div>
@@ -53,4 +53,6 @@
53
53
  </div>
54
54
  <% end %>
55
55
 
56
- <%= javascript_pack_tag "decidim_votings_voting_polling_officer_zone_sign_closure" %>
56
+ <% content_for :js_content do %>
57
+ <%= javascript_pack_tag "decidim_votings_voting_polling_officer_zone_sign_closure" %>
58
+ <% end %>
@@ -45,4 +45,6 @@
45
45
 
46
46
  <%= render "modal_ballots_results_count_error" %>
47
47
 
48
- <%= javascript_pack_tag "decidim_votings_voting_polling_officer_zone_edit_closure" %>
48
+ <% content_for :js_content do %>
49
+ <%= javascript_pack_tag "decidim_votings_voting_polling_officer_zone_edit_closure" %>
50
+ <% end %>
@@ -59,4 +59,6 @@
59
59
  </div>
60
60
  </div>
61
61
 
62
- <%= javascript_pack_tag "decidim_votings_voting_polling_officer_zone_new_closure" %>
62
+ <% content_for :js_content do %>
63
+ <%= javascript_pack_tag "decidim_votings_voting_polling_officer_zone_new_closure" %>
64
+ <% end %>
@@ -2,7 +2,11 @@
2
2
  <div class="columns">
3
3
  <% if vote_check.allowed? %>
4
4
  <div class="callout success mt-s">
5
- <h5><%= t(".census_verified") %></h5>
5
+ <% if voted_online? %>
6
+ <h5><%= t(".census_verified_with_online_vote") %></h5>
7
+ <% else %>
8
+ <h5><%= t(".census_verified") %></h5>
9
+ <% end %>
6
10
  </div>
7
11
  <div class="row mt-sm">
8
12
  <div class="columns large-7">
@@ -56,4 +60,6 @@
56
60
  </div>
57
61
  </div>
58
62
 
59
- <%= javascript_pack_tag "decidim_votings_voting_polling_officer_zone_in_person_vote" %>
63
+ <% content_for :js_content do %>
64
+ <%= javascript_pack_tag "decidim_votings_voting_polling_officer_zone_in_person_vote" %>
65
+ <% end %>
@@ -18,4 +18,8 @@
18
18
  <% end %>
19
19
  </div>
20
20
 
21
- <%= javascript_pack_tag "decidim_votings_in_person_vote" %>
21
+ <%= render "decidim/elections/shared/broken_promises_modal" %>
22
+
23
+ <% content_for :js_content do %>
24
+ <%= javascript_pack_tag "decidim_votings_in_person_vote" %>
25
+ <% end %>
@@ -22,4 +22,8 @@
22
22
  <%= form_tag polling_officer_election_in_person_vote_path(polling_officer, election, in_person_vote), method: :patch, class: "update_vote_status" %>
23
23
  </div>
24
24
 
25
- <%= javascript_pack_tag "decidim_votings_in_person_vote" %>
25
+ <%= render "decidim/elections/shared/broken_promises_modal" %>
26
+
27
+ <% content_for :js_content do %>
28
+ <%= javascript_pack_tag "decidim_votings_in_person_vote" %>
29
+ <% end %>
@@ -4,7 +4,7 @@
4
4
  <div class="filters__section">
5
5
  <div class="filters__search">
6
6
  <div class="input-group">
7
- <%= form.search_field :search_text,
7
+ <%= form.search_field :search_text_cont,
8
8
  label: false,
9
9
  class: "input-group-field",
10
10
  placeholder: t(".search"),
@@ -20,7 +20,6 @@
20
20
  </div>
21
21
  </div>
22
22
 
23
- <%= form.check_boxes_tree :state, filter_states_values, legend_title: t(".state") %>
24
-
23
+ <%= form.check_boxes_tree :with_any_date, date_filter_values, legend_title: t(".date") %>
25
24
  <%= hidden_field_tag :order, order, id: nil, class: "order_filter" %>
26
25
  <% end %>
@@ -13,7 +13,7 @@
13
13
  </div>
14
14
  <div class="columns mediumlarge-8 large-6 card--process__column">
15
15
  <div class="card--full__image"
16
- style="background-image:url(<%= promoted_voting.attached_uploader(:banner_image).path %>)">
16
+ style="background-image:url('<%= promoted_voting.attached_uploader(:banner_image).path %>')">
17
17
  <div class="card__content row collapse">
18
18
  <div class="large-6 large-offset-6 columns">
19
19
  <%= link_to voting_path(promoted_voting), class: "button expanded button--sc" do %>
@@ -18,8 +18,10 @@
18
18
  <body>
19
19
  <main class="focus">
20
20
  <%= render partial: "layouts/decidim/election_votes_header" %>
21
+
21
22
  <%= yield %>
22
- <%= render partial: "layouts/decidim/js_configuration" %>
23
23
  </main>
24
+
25
+ <%= render partial: "layouts/decidim/decidim_javascript" %>
24
26
  </body>
25
27
  </html>
data/config/assets.rb CHANGED
@@ -11,7 +11,7 @@ Decidim::Webpacker.register_entrypoints(
11
11
  decidim_elections_admin_trustees_process: "#{base_path}/app/packs/entrypoints/decidim_elections_admin_trustees_process.js",
12
12
  decidim_elections_admin_vote_statistics: "#{base_path}/app/packs/entrypoints/decidim_elections_admin_vote_statistics.js",
13
13
  decidim_elections_trustee_key_ceremony: "#{base_path}/app/packs/entrypoints/decidim_elections_trustee_key_ceremony.js",
14
- decidim_elections_trustee_tally: "#{base_path}/app/packs/entrypoints/decidim_elections_trustee_tally.js",
14
+ decidim_elections_trustee_tally_started: "#{base_path}/app/packs/entrypoints/decidim_elections_trustee_tally_started.js",
15
15
  decidim_elections_trustee_zone: "#{base_path}/app/packs/entrypoints/decidim_elections_trustee_zone.js",
16
16
  decidim_elections_trustee_trustee_zone: "#{base_path}/app/packs/entrypoints/decidim_elections_trustee_trustee_zone.js",
17
17
  decidim_elections_voter_casting_vote: "#{base_path}/app/packs/entrypoints/decidim_elections_voter_casting-vote.js",
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ar:
2
3
  activemodel:
3
4
  attributes:
@@ -5,13 +6,11 @@ ar:
5
6
  description: الوصف
6
7
  election:
7
8
  description: الوصف
8
- question:
9
- description: الوصف
10
9
  decidim:
11
10
  elections:
12
11
  admin:
13
12
  steps:
14
- tally:
13
+ tally_started:
15
14
  invalid: كانت هناك مشكلة في الإبلاغ عن الأمين المفقود
16
15
  mark_as_missing: وضع علامة مفقود
17
16
  mark_as_missing_description: يجب أن يشارك جميع الأمناء في هذه العملية، ولكن إذا لم يتمكن الأمين من المشاركة في العملية، يمكنك وضع علامة على أنها مفقودة.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  bg:
2
3
  activemodel:
3
4
  attributes: