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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/cells/decidim/votings/content_blocks/highlighted_votings/show.erb +2 -2
- data/app/cells/decidim/votings/content_blocks/highlighted_votings_cell.rb +1 -4
- data/app/cells/decidim/votings/content_blocks/landing_page/description/show.erb +1 -1
- data/app/cells/decidim/votings/content_blocks/landing_page/header/show.erb +2 -2
- data/app/cells/decidim/votings/content_blocks/landing_page/header_cell.rb +1 -1
- data/app/commands/decidim/elections/admin/add_user_as_trustee.rb +1 -1
- data/app/commands/decidim/elections/admin/create_answer.rb +1 -1
- data/app/commands/decidim/elections/admin/create_election.rb +1 -1
- data/app/commands/decidim/elections/admin/create_question.rb +1 -2
- data/app/commands/decidim/elections/admin/destroy_answer.rb +1 -1
- data/app/commands/decidim/elections/admin/destroy_election.rb +1 -1
- data/app/commands/decidim/elections/admin/destroy_question.rb +1 -1
- data/app/commands/decidim/elections/admin/end_vote.rb +1 -1
- data/app/commands/decidim/elections/admin/import_proposals_to_elections.rb +1 -1
- data/app/commands/decidim/elections/admin/publish_election.rb +1 -1
- data/app/commands/decidim/elections/admin/publish_results.rb +1 -1
- data/app/commands/decidim/elections/admin/remove_trustee_from_participatory_space.rb +1 -1
- data/app/commands/decidim/elections/admin/report_missing_trustee.rb +1 -1
- data/app/commands/decidim/elections/admin/setup_election.rb +4 -2
- data/app/commands/decidim/elections/admin/start_key_ceremony.rb +1 -1
- data/app/commands/decidim/elections/admin/start_tally.rb +1 -1
- data/app/commands/decidim/elections/admin/start_vote.rb +1 -1
- data/app/commands/decidim/elections/admin/unpublish_election.rb +1 -1
- data/app/commands/decidim/elections/admin/update_action_status.rb +1 -1
- data/app/commands/decidim/elections/admin/update_answer.rb +1 -1
- data/app/commands/decidim/elections/admin/update_answer_selection.rb +1 -1
- data/app/commands/decidim/elections/admin/update_election.rb +1 -1
- data/app/commands/decidim/elections/admin/update_question.rb +1 -2
- data/app/commands/decidim/elections/admin/update_trustee_participatory_space.rb +1 -1
- data/app/commands/decidim/elections/trustee_zone/update_election_bulletin_board_status.rb +1 -1
- data/app/commands/decidim/elections/trustee_zone/update_trustee.rb +1 -1
- data/app/commands/decidim/elections/voter/cast_vote.rb +1 -1
- data/app/commands/decidim/elections/voter/update_vote_status.rb +2 -2
- data/app/commands/decidim/votings/admin/create_ballot_style.rb +1 -1
- data/app/commands/decidim/votings/admin/create_monitoring_committee_member.rb +1 -1
- data/app/commands/decidim/votings/admin/create_polling_officer.rb +1 -1
- data/app/commands/decidim/votings/admin/create_voting.rb +3 -2
- data/app/commands/decidim/votings/admin/destroy_ballot_style.rb +1 -1
- data/app/commands/decidim/votings/admin/destroy_monitoring_committee_member.rb +1 -1
- data/app/commands/decidim/votings/admin/destroy_polling_officer.rb +1 -1
- data/app/commands/decidim/votings/admin/destroy_polling_station.rb +1 -1
- data/app/commands/decidim/votings/admin/manage_polling_station.rb +2 -2
- data/app/commands/decidim/votings/admin/monitoring_committee_validate_polling_station_closure.rb +1 -1
- data/app/commands/decidim/votings/admin/publish_voting.rb +1 -1
- data/app/commands/decidim/votings/admin/unpublish_voting.rb +1 -1
- data/app/commands/decidim/votings/admin/update_ballot_style.rb +1 -1
- data/app/commands/decidim/votings/admin/update_voting.rb +3 -2
- data/app/commands/decidim/votings/census/admin/create_dataset.rb +32 -21
- data/app/commands/decidim/votings/census/admin/create_datum.rb +1 -1
- data/app/commands/decidim/votings/census/admin/destroy_dataset.rb +1 -1
- data/app/commands/decidim/votings/census/admin/increment_dataset_processed_rows.rb +1 -1
- data/app/commands/decidim/votings/census/admin/launch_access_codes_export.rb +4 -2
- data/app/commands/decidim/votings/census/admin/launch_access_codes_generation.rb +2 -2
- data/app/commands/decidim/votings/census/admin/update_dataset.rb +1 -1
- data/app/commands/decidim/votings/certify_polling_station_closure.rb +1 -1
- data/app/commands/decidim/votings/check_census.rb +1 -1
- data/app/commands/decidim/votings/create_polling_station_closure.rb +1 -1
- data/app/commands/decidim/votings/create_polling_station_results.rb +1 -1
- data/app/commands/decidim/votings/send_access_code.rb +1 -1
- data/app/commands/decidim/votings/sign_polling_station_closure.rb +1 -1
- data/app/commands/decidim/votings/voter/in_person_vote.rb +1 -1
- data/app/commands/decidim/votings/voter/update_in_person_vote_status.rb +1 -1
- data/app/controllers/decidim/elections/admin/steps_controller.rb +2 -2
- data/app/controllers/decidim/elections/elections_controller.rb +10 -12
- data/app/controllers/decidim/elections/trustee_zone/elections_controller.rb +1 -1
- data/app/controllers/decidim/votings/census/admin/census_controller.rb +6 -2
- data/app/controllers/decidim/votings/votings_controller.rb +10 -13
- data/app/forms/decidim/elections/admin/question_form.rb +0 -2
- data/app/forms/decidim/elections/admin/setup_form.rb +46 -3
- data/app/forms/decidim/elections/admin/vote_period_form.rb +2 -2
- data/app/forms/decidim/votings/admin/ballot_style_form.rb +1 -1
- data/app/forms/decidim/votings/admin/voting_form.rb +4 -3
- data/app/forms/decidim/votings/census/admin/dataset_form.rb +2 -5
- data/app/forms/decidim/votings/census/admin/datum_form.rb +1 -1
- data/app/helpers/decidim/elections/application_helper.rb +1 -1
- data/app/helpers/decidim/votings/votings_helper.rb +1 -1
- data/app/models/decidim/elections/answer.rb +1 -6
- data/app/models/decidim/elections/election.rb +15 -4
- data/app/models/decidim/elections/question.rb +2 -7
- data/app/models/decidim/votings/census/dataset.rb +1 -1
- data/app/models/decidim/votings/polling_station.rb +2 -3
- data/app/models/decidim/votings/voting.rb +15 -0
- data/app/packs/entrypoints/{decidim_elections_trustee_tally.js → decidim_elections_trustee_tally_started.js} +0 -0
- data/app/packs/src/decidim/elections/admin/pending_action.js +2 -0
- data/app/packs/src/decidim/elections/admin/trustees_process.js +2 -0
- data/app/packs/src/decidim/elections/broken_promises_handler.js +11 -0
- data/app/packs/src/decidim/elections/trustee/key_ceremony.js +3 -0
- data/app/packs/src/decidim/elections/trustee/tally.js +4 -1
- data/app/packs/src/decidim/elections/voter/casting-vote.js +3 -0
- data/app/packs/src/decidim/elections/voter/setup-vote.js +3 -0
- data/app/packs/src/decidim/votings/admin/update_census_dataset_status.js +2 -2
- data/app/packs/src/decidim/votings/in-person-vote.js +3 -0
- data/app/permissions/decidim/votings/admin/permissions.rb +2 -14
- data/app/permissions/decidim/votings/permissions.rb +1 -3
- data/app/presenters/decidim/votings/voting_stats_presenter.rb +4 -1
- data/app/queries/decidim/elections/admin/pending_actions.rb +1 -1
- data/app/queries/decidim/elections/admin/votes_for_statistics.rb +1 -1
- data/app/queries/decidim/elections/elections_finished_to_end.rb +1 -1
- data/app/queries/decidim/elections/elections_ready_to_start.rb +1 -1
- data/app/queries/decidim/elections/filtered_elections.rb +1 -1
- data/app/queries/decidim/elections/trustees/by_participatory_space.rb +1 -1
- data/app/queries/decidim/elections/trustees/by_participatory_space_trustee_ids.rb +1 -1
- data/app/queries/decidim/elections/votes/last_vote_for_voter.rb +1 -1
- data/app/queries/decidim/elections/votes/pending_votes.rb +1 -1
- data/app/queries/decidim/votings/admin/admin_users.rb +1 -1
- data/app/queries/decidim/votings/admin/ballot_style_by_voting_code.rb +1 -1
- data/app/queries/decidim/votings/admin/polling_officers_join_polling_stations.rb +1 -1
- data/app/queries/decidim/votings/admin/polling_officers_join_polling_stations_and_user.rb +2 -2
- data/app/queries/decidim/votings/admin/polling_officers_join_user.rb +1 -1
- data/app/queries/decidim/votings/organization_prioritized_votings.rb +2 -2
- data/app/queries/decidim/votings/organization_promoted_votings.rb +1 -1
- data/app/queries/decidim/votings/organization_published_votings.rb +2 -2
- data/app/queries/decidim/votings/organization_votings.rb +1 -1
- data/app/queries/decidim/votings/prioritized_votings.rb +1 -1
- data/app/queries/decidim/votings/published_votings.rb +1 -1
- data/app/queries/decidim/votings/votes/in_person_vote_for_voter.rb +1 -1
- data/app/queries/decidim/votings/votes/pending_in_person_votes.rb +1 -1
- data/app/services/decidim/votings/census_vote_flow.rb +1 -3
- data/app/views/decidim/elections/admin/questions/_form.html.erb +0 -4
- data/app/views/decidim/elections/admin/steps/_create_election.html.erb +14 -1
- data/app/views/decidim/elections/admin/steps/{_tally.html.erb → _tally_started.html.erb} +1 -1
- data/app/views/decidim/elections/admin/steps/index.html.erb +2 -0
- data/app/views/decidim/elections/elections/_filters.html.erb +2 -2
- data/app/views/decidim/elections/elections/election_log.html.erb +3 -1
- data/app/views/decidim/elections/shared/_broken_promises_modal.html.erb +33 -0
- data/app/views/decidim/elections/trustee_zone/elections/{_tally_steps.html.erb → _tally_started_steps.html.erb} +0 -0
- data/app/views/decidim/elections/trustee_zone/elections/show.html.erb +5 -1
- data/app/views/decidim/elections/trustee_zone/trustees/show.html.erb +3 -1
- data/app/views/decidim/elections/votes/_onboarding_modal.html.erb +3 -1
- data/app/views/decidim/elections/votes/_show_casting.html.erb +5 -1
- data/app/views/decidim/elections/votes/new.html.erb +11 -5
- data/app/views/decidim/elections/votes/verify.html.erb +4 -1
- data/app/views/decidim/votings/admin/votings/_form.html.erb +9 -0
- data/app/views/decidim/votings/census/admin/census/_creating_data.html.erb +1 -1
- data/app/views/decidim/votings/census/admin/census/_exporting_codes.html.erb +1 -1
- data/app/views/decidim/votings/census/admin/census/_freeze.html.erb +2 -0
- data/app/views/decidim/votings/census/admin/census/_generate_codes.html.erb +14 -4
- data/app/views/decidim/votings/census/admin/census/show.html.erb +1 -1
- data/app/views/decidim/votings/polling_officer_zone/closures/_certify_form.html.erb +3 -1
- data/app/views/decidim/votings/polling_officer_zone/closures/_sign_form.html.erb +3 -1
- data/app/views/decidim/votings/polling_officer_zone/closures/edit.html.erb +3 -1
- data/app/views/decidim/votings/polling_officer_zone/closures/new.html.erb +3 -1
- data/app/views/decidim/votings/polling_officer_zone/in_person_votes/_complete_voting.html.erb +8 -2
- data/app/views/decidim/votings/polling_officer_zone/in_person_votes/new.html.erb +5 -1
- data/app/views/decidim/votings/polling_officer_zone/in_person_votes/show.html.erb +5 -1
- data/app/views/decidim/votings/votings/_filters.html.erb +2 -3
- data/app/views/decidim/votings/votings/_promoted_voting.html.erb +1 -1
- data/app/views/layouts/decidim/election_votes.html.erb +3 -1
- data/config/assets.rb +1 -1
- data/config/locales/ar.yml +2 -3
- data/config/locales/bg.yml +1 -0
- data/config/locales/ca.yml +64 -30
- data/config/locales/cs.yml +66 -27
- data/config/locales/de.yml +53 -30
- data/config/locales/el.yml +1 -1
- data/config/locales/en.yml +63 -27
- data/config/locales/es-MX.yml +65 -31
- data/config/locales/es-PY.yml +65 -31
- data/config/locales/es.yml +67 -33
- data/config/locales/eu.yml +5 -40
- data/config/locales/fi-plain.yml +64 -29
- data/config/locales/fi.yml +66 -31
- data/config/locales/fr-CA.yml +64 -29
- data/config/locales/fr.yml +62 -27
- data/config/locales/ga-IE.yml +1 -15
- data/config/locales/gl.yml +22 -32
- data/config/locales/hu.yml +28 -13
- data/config/locales/it.yml +5 -34
- data/config/locales/ja.yml +65 -33
- data/config/locales/lb.yml +1 -0
- data/config/locales/lt.yml +1445 -0
- data/config/locales/lv.yml +1 -1
- data/config/locales/nl.yml +10 -51
- data/config/locales/no.yml +11 -39
- data/config/locales/pl.yml +16 -35
- data/config/locales/pt-BR.yml +6 -34
- data/config/locales/pt.yml +12 -40
- data/config/locales/ro-RO.yml +11 -25
- data/config/locales/sl.yml +1 -0
- data/config/locales/sv.yml +60 -11
- data/config/locales/tr-TR.yml +4 -14
- data/config/locales/zh-CN.yml +1 -5
- data/db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb +19 -0
- data/db/migrate/20220424121541_add_show_check_census_to_votings.rb +7 -0
- data/db/migrate/20220615102642_remove_description_from_elections_questions.rb +7 -0
- data/db/migrate/20220711112802_rename_dataset_file_to_filename.rb +7 -0
- data/lib/decidim/api/election_question_type.rb +0 -1
- data/lib/decidim/elections/component.rb +4 -16
- data/lib/decidim/elections/test/factories.rb +4 -5
- data/lib/decidim/elections/version.rb +1 -1
- data/lib/decidim/votings/participatory_space.rb +3 -3
- data/lib/decidim/votings/test/factories.rb +3 -2
- metadata +31 -27
- data/app/services/decidim/elections/election_search.rb +0 -35
- data/app/services/decidim/votings/voting_search.rb +0 -46
@@ -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 :
|
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 :
|
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 %>
|
@@ -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">×</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>
|
File without changes
|
@@ -18,5 +18,9 @@
|
|
18
18
|
<%= render("#{current_step}_steps") %>
|
19
19
|
</div>
|
20
20
|
|
21
|
-
<%=
|
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 %>
|
@@ -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
|
-
<%=
|
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
|
-
|
63
|
-
|
64
|
-
<%
|
65
|
-
|
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
|
-
|
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.
|
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> #{t("exporting_access_codes.info_message", scope: "decidim.votings.census.admin.census")}", callout_class: "warning") %>
|
2
|
+
<%= cell("decidim/announcement", "<span class='loading-spinner'></span> #{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.
|
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.
|
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
|
-
|
21
|
-
|
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>
|
@@ -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.
|
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>
|
@@ -45,4 +45,6 @@
|
|
45
45
|
|
46
46
|
<%= render "modal_ballots_results_count_error" %>
|
47
47
|
|
48
|
-
|
48
|
+
<% content_for :js_content do %>
|
49
|
+
<%= javascript_pack_tag "decidim_votings_voting_polling_officer_zone_edit_closure" %>
|
50
|
+
<% end %>
|
data/app/views/decidim/votings/polling_officer_zone/in_person_votes/_complete_voting.html.erb
CHANGED
@@ -2,7 +2,11 @@
|
|
2
2
|
<div class="columns">
|
3
3
|
<% if vote_check.allowed? %>
|
4
4
|
<div class="callout success mt-s">
|
5
|
-
|
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
|
-
|
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
|
-
<%=
|
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
|
-
<%=
|
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 :
|
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 :
|
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
|
-
|
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",
|
data/config/locales/ar.yml
CHANGED
@@ -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
|
-
|
13
|
+
tally_started:
|
15
14
|
invalid: كانت هناك مشكلة في الإبلاغ عن الأمين المفقود
|
16
15
|
mark_as_missing: وضع علامة مفقود
|
17
16
|
mark_as_missing_description: يجب أن يشارك جميع الأمناء في هذه العملية، ولكن إذا لم يتمكن الأمين من المشاركة في العملية، يمكنك وضع علامة على أنها مفقودة.
|
data/config/locales/bg.yml
CHANGED