decidim-action_delegator 0.8.1 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +104 -58
  3. data/Rakefile +2 -2
  4. data/app/commands/decidim/action_delegator/admin/create_delegation.rb +1 -3
  5. data/app/commands/decidim/action_delegator/admin/create_setting.rb +5 -2
  6. data/app/commands/decidim/action_delegator/admin/update_setting.rb +4 -2
  7. data/app/controllers/concerns/decidim/action_delegator/devise/sessions_controller_override.rb +1 -1
  8. data/app/controllers/concerns/decidim/action_delegator/election_per_question_votes_controller_override.rb +65 -0
  9. data/app/controllers/concerns/decidim/action_delegator/election_votes_controller_override.rb +38 -0
  10. data/app/controllers/concerns/decidim/action_delegator/votes_controller_methods.rb +46 -0
  11. data/app/controllers/decidim/action_delegator/admin/application_controller.rb +11 -5
  12. data/app/controllers/decidim/action_delegator/admin/delegations_controller.rb +3 -11
  13. data/app/controllers/decidim/action_delegator/admin/invite_participants_controller.rb +0 -8
  14. data/app/controllers/decidim/action_delegator/admin/manage_delegations_controller.rb +13 -21
  15. data/app/controllers/decidim/action_delegator/admin/manage_participants_controller.rb +11 -20
  16. data/app/controllers/decidim/action_delegator/admin/participants_controller.rb +1 -9
  17. data/app/controllers/decidim/action_delegator/admin/permissions_controller.rb +1 -24
  18. data/app/controllers/decidim/action_delegator/admin/ponderations_controller.rb +0 -8
  19. data/app/controllers/decidim/action_delegator/admin/settings_controller.rb +12 -12
  20. data/app/controllers/decidim/action_delegator/application_controller.rb +3 -3
  21. data/app/controllers/decidim/action_delegator/elections/admin/results_controller.rb +58 -0
  22. data/app/controllers/decidim/action_delegator/elections/results_controller.rb +36 -0
  23. data/app/controllers/decidim/action_delegator/user_delegations_controller.rb +1 -1
  24. data/app/controllers/decidim/action_delegator/verifications/delegations_verifier/authorizations_controller.rb +14 -18
  25. data/app/forms/decidim/action_delegator/admin/action_delegator_census_form.rb +44 -0
  26. data/app/forms/decidim/action_delegator/admin/csv_import_form.rb +17 -0
  27. data/app/forms/decidim/action_delegator/admin/delegation_form.rb +6 -2
  28. data/app/forms/decidim/action_delegator/admin/ponderation_form.rb +2 -1
  29. data/app/forms/decidim/action_delegator/admin/setting_form.rb +16 -10
  30. data/app/forms/decidim/action_delegator/censuses/internal_users_form.rb +32 -0
  31. data/app/forms/decidim/action_delegator/verifications/delegations_verifier_form.rb +41 -25
  32. data/app/helpers/decidim/action_delegator/admin/{delegation_helper.rb → settings_helper.rb} +3 -16
  33. data/app/helpers/decidim/action_delegator/settings_helper.rb +124 -0
  34. data/app/jobs/decidim/action_delegator/admin/invite_participants_job.rb +1 -1
  35. data/app/jobs/decidim/action_delegator/send_sms_job.rb +2 -2
  36. data/app/jobs/decidim/action_delegator/twilio_send_sms_job.rb +2 -2
  37. data/app/models/decidim/action_delegator/delegation.rb +35 -9
  38. data/app/models/decidim/action_delegator/participant.rb +15 -9
  39. data/app/models/decidim/action_delegator/ponderation.rb +0 -2
  40. data/app/models/decidim/action_delegator/setting.rb +14 -32
  41. data/app/overrides/decidim/elections/admin/dashboard/_results/_add_results_contents.html.erb.deface +10 -0
  42. data/app/overrides/decidim/elections/admin/dashboard/_results/_add_results_tabs.html.erb.deface +3 -0
  43. data/app/overrides/decidim/elections/elections/_election_aside/add_delegation_buttons.html.erb.deface +3 -0
  44. data/app/overrides/decidim/elections/elections/_vote_results/replace_results_div.html.erb.deface +8 -0
  45. data/app/overrides/decidim/elections/per_question_votes/show/add_delegation_hidden_input.html.erb.deface +3 -0
  46. data/app/overrides/decidim/elections/per_question_votes/show/add_delegation_id_to_links.html.erb.deface +3 -0
  47. data/app/overrides/decidim/elections/per_question_votes/waiting/add_delegation_buttons.html.erb.deface +3 -0
  48. data/app/overrides/decidim/elections/votes/receipt/add_delegation_buttons.html.erb.deface +3 -0
  49. data/app/packs/entrypoints/decidim_action_delegator_elections.js +1 -0
  50. data/app/packs/src/decidim/action_delegator/elections_live_results.js +160 -0
  51. data/app/permissions/decidim/action_delegator/admin/permissions.rb +29 -0
  52. data/app/permissions/decidim/action_delegator/permissions.rb +6 -30
  53. data/app/presenters/decidim/action_delegator/setting_presenter.rb +33 -0
  54. data/app/queries/decidim/action_delegator/action_delegator_census_users.rb +51 -0
  55. data/app/queries/decidim/action_delegator/authorized_resources.rb +28 -0
  56. data/app/queries/decidim/action_delegator/election_settings.rb +23 -0
  57. data/app/queries/decidim/action_delegator/{delegated_votes_versions.rb → elections_delegated_votes_versions.rb} +8 -8
  58. data/app/queries/decidim/action_delegator/elections_question_responses_by_type.rb +33 -0
  59. data/app/queries/decidim/action_delegator/elections_question_weighted_responses.rb +28 -0
  60. data/app/queries/decidim/action_delegator/elections_votes_with_ponderations.rb +62 -0
  61. data/app/services/decidim/action_delegator/delegations_csv_importer.rb +3 -3
  62. data/app/services/decidim/action_delegator/participants_csv_importer.rb +1 -1
  63. data/app/services/decidim/action_delegator/sms_gateway.rb +2 -2
  64. data/app/views/decidim/action_delegator/admin/censuses/_action_delegator_census_form.html.erb +44 -0
  65. data/app/views/decidim/action_delegator/admin/censuses/_action_delegator_census_options_form.html.erb +25 -0
  66. data/app/views/decidim/action_delegator/admin/delegations/index.html.erb +12 -13
  67. data/app/views/decidim/action_delegator/admin/delegations/new.html.erb +29 -27
  68. data/app/views/decidim/action_delegator/admin/manage_delegations/new.html.erb +36 -24
  69. data/app/views/decidim/action_delegator/admin/manage_participants/new.html.erb +47 -33
  70. data/app/views/decidim/action_delegator/admin/participants/_form.html.erb +14 -8
  71. data/app/views/decidim/action_delegator/admin/participants/edit.html.erb +11 -13
  72. data/app/views/decidim/action_delegator/admin/participants/index.html.erb +20 -25
  73. data/app/views/decidim/action_delegator/admin/participants/new.html.erb +11 -13
  74. data/app/views/decidim/action_delegator/admin/ponderations/_form.html.erb +13 -7
  75. data/app/views/decidim/action_delegator/admin/ponderations/edit.html.erb +11 -13
  76. data/app/views/decidim/action_delegator/admin/ponderations/index.html.erb +8 -11
  77. data/app/views/decidim/action_delegator/admin/ponderations/new.html.erb +11 -13
  78. data/app/views/decidim/action_delegator/admin/settings/_form.html.erb +26 -12
  79. data/app/views/decidim/action_delegator/admin/settings/_participants_sync_check.html.erb +1 -1
  80. data/app/views/decidim/action_delegator/admin/settings/_setting_checks.html.erb +11 -16
  81. data/app/views/decidim/action_delegator/admin/settings/edit.html.erb +11 -12
  82. data/app/views/decidim/action_delegator/admin/settings/index.html.erb +22 -19
  83. data/app/views/decidim/action_delegator/admin/settings/new.html.erb +11 -12
  84. data/app/views/decidim/action_delegator/admin/shared/_tabs_menu.html.erb +15 -0
  85. data/app/views/decidim/action_delegator/censuses/_internal_users_form.html.erb +61 -0
  86. data/app/views/decidim/action_delegator/elections/_delegation_buttons.html.erb +10 -0
  87. data/app/views/decidim/action_delegator/elections/_normal_election_buttons.html.erb +13 -0
  88. data/app/views/decidim/action_delegator/elections/_per_question_buttons.html.erb +9 -0
  89. data/app/views/decidim/action_delegator/elections/_per_question_waiting_buttons.html.erb +19 -0
  90. data/app/views/decidim/action_delegator/elections/_vote_results.html.erb +10 -0
  91. data/app/views/decidim/action_delegator/elections/_vote_results_question.html.erb +13 -0
  92. data/app/views/decidim/action_delegator/elections/admin/dashboard/_by_type_and_weight.html.erb +45 -0
  93. data/app/views/decidim/action_delegator/elections/admin/dashboard/_results_tabs.html.erb +5 -0
  94. data/app/views/decidim/action_delegator/elections/admin/dashboard/_results_type_info.html.erb +4 -0
  95. data/app/views/decidim/action_delegator/elections/admin/dashboard/_sum_of_weights.html.erb +43 -0
  96. data/app/views/decidim/action_delegator/elections/admin/dashboard/_totals.html.erb +27 -0
  97. data/app/views/decidim/action_delegator/user_delegations/index.html.erb +13 -14
  98. data/app/views/decidim/action_delegator/verifications/delegations_verifier/authorizations/edit.html.erb +19 -29
  99. data/app/views/decidim/action_delegator/verifications/delegations_verifier/authorizations/new.html.erb +42 -40
  100. data/config/assets.rb +3 -35
  101. data/config/i18n-tasks.yml +27 -5
  102. data/config/locales/ca.yml +70 -56
  103. data/config/locales/cs.yml +161 -145
  104. data/config/locales/en.yml +110 -67
  105. data/config/locales/es.yml +70 -56
  106. data/db/migrate/20200824113801_create_settings.rb +1 -1
  107. data/db/migrate/20250729104037_add_title_to_action_delegator_settings.rb +31 -0
  108. data/lib/decidim/action_delegator/admin_engine.rb +72 -45
  109. data/lib/decidim/action_delegator/common_rake.rb +13 -0
  110. data/lib/decidim/action_delegator/engine.rb +49 -19
  111. data/lib/decidim/action_delegator/test/delegation_examples.rb +144 -0
  112. data/lib/decidim/action_delegator/test/factories.rb +11 -6
  113. data/lib/decidim/action_delegator/verifications/delegations_authorizer.rb +80 -47
  114. data/lib/decidim/action_delegator/version.rb +3 -3
  115. data/lib/decidim/action_delegator.rb +8 -26
  116. data/lib/tasks/migrate_consultations.rake +382 -0
  117. data/lib/tasks/upgrade_tasks.rake +5 -0
  118. data/package.json +10 -27
  119. metadata +72 -112
  120. data/app/commands/concerns/decidim/action_delegator/consultations/multiple_vote_question_override.rb +0 -31
  121. data/app/commands/concerns/decidim/action_delegator/consultations/vote_question_override.rb +0 -44
  122. data/app/commands/decidim/action_delegator/admin/fix_resource_permissions.rb +0 -46
  123. data/app/commands/decidim/action_delegator/vote_delegation.rb +0 -28
  124. data/app/controllers/concerns/decidim/action_delegator/consultations/consultations_controller_override.rb +0 -16
  125. data/app/controllers/concerns/decidim/action_delegator/consultations/question_multiple_votes_controller_override.rb +0 -29
  126. data/app/controllers/concerns/decidim/action_delegator/consultations/question_votes_controller_override.rb +0 -57
  127. data/app/controllers/concerns/decidim/action_delegator/consultations/questions_controller_override.rb +0 -16
  128. data/app/controllers/concerns/decidim/action_delegator/needs_consultation_styles.rb +0 -24
  129. data/app/controllers/decidim/action_delegator/admin/consultations/exports_controller.rb +0 -27
  130. data/app/controllers/decidim/action_delegator/admin/consultations_controller.rb +0 -47
  131. data/app/controllers/decidim/action_delegator/admin/exports/_sum_of_weights_controller.rb +0 -15
  132. data/app/forms/concerns/decidim/action_delegator/consultations/vote_form_override.rb +0 -15
  133. data/app/helpers/decidim/action_delegator/delegation_helper.rb +0 -13
  134. data/app/jobs/decidim/action_delegator/export_consultation_results_job.rb +0 -51
  135. data/app/models/concerns/decidim/action_delegator/consultations/question_override.rb +0 -18
  136. data/app/models/concerns/decidim/action_delegator/consultations/vote_override.rb +0 -15
  137. data/app/models/decidim/action_delegator/unversioned_vote.rb +0 -19
  138. data/app/models/decidim/action_delegator/whodunnit_vote.rb +0 -28
  139. data/app/overrides/decidim/consultations/admin/consultations/results/add_ongoing_warning.html.erb.deface +0 -3
  140. data/app/overrides/decidim/consultations/consultations/_question/add_delegation_link.html.erb.deface +0 -3
  141. data/app/overrides/decidim/consultations/consultations/_regular_questions/prevent_empty_questions.html.erb.deface +0 -10
  142. data/app/overrides/decidim/consultations/consultations/_regular_questions/remove_highlighted_scopes.html.erb.deface +0 -5
  143. data/app/overrides/decidim/consultations/question_multiple_votes/_form/add_delegation_notice.html.erb.deface +0 -8
  144. data/app/overrides/decidim/consultations/questions/_vote_button/add_delegations_link.html.erb.deface +0 -3
  145. data/app/overrides/decidim/consultations/questions/_vote_button/add_modal.html.erb.deface +0 -3
  146. data/app/overrides/decidim/consultations/questions/_vote_button/add_modal_javascript.html.erb.deface +0 -4
  147. data/app/overrides/decidim/consultations/questions/_vote_button/replace_delegation_to_multivote_link.html.erb.deface +0 -8
  148. data/app/overrides/decidim/consultations/questions/_vote_modal/add_delegation_callout.html.erb.deface +0 -3
  149. data/app/overrides/decidim/consultations/questions/_vote_modal_confirm/add_delegation_callout.html.erb.deface +0 -3
  150. data/app/overrides/decidim/consultations/questions/_vote_modal_confirm/add_hidden_field.html.erb.deface +0 -3
  151. data/app/overrides/layouts/decidim/admin/remove_deprecation.rb +0 -10
  152. data/app/packs/entrypoints/decidim_action_delegator.scss +0 -1
  153. data/app/packs/entrypoints/decidim_action_delegator_questions.js +0 -5
  154. data/app/packs/src/decidim/action_delegator/questions.js +0 -33
  155. data/app/packs/stylesheets/decidim/action_delegator/questions.scss +0 -26
  156. data/app/permissions/concerns/decidim/action_delegator/consultations/permissions_override.rb +0 -35
  157. data/app/presenters/decidim/action_delegator/question_with_totals.rb +0 -24
  158. data/app/queries/decidim/action_delegator/consultation_delegations.rb +0 -25
  159. data/app/queries/decidim/action_delegator/delegates_votes_by_consultation.rb +0 -24
  160. data/app/queries/decidim/action_delegator/delegates_votes_by_question.rb +0 -26
  161. data/app/queries/decidim/action_delegator/delegation_votes.rb +0 -30
  162. data/app/queries/decidim/action_delegator/grantee_delegations.rb +0 -24
  163. data/app/queries/decidim/action_delegator/organization_delegations.rb +0 -26
  164. data/app/queries/decidim/action_delegator/organization_settings.rb +0 -31
  165. data/app/queries/decidim/action_delegator/responses.rb +0 -24
  166. data/app/queries/decidim/action_delegator/responses_by_membership.rb +0 -58
  167. data/app/queries/decidim/action_delegator/scrutiny.rb +0 -87
  168. data/app/queries/decidim/action_delegator/setting_delegations.rb +0 -19
  169. data/app/queries/decidim/action_delegator/sum_of_membership_weight.rb +0 -44
  170. data/app/queries/decidim/action_delegator/sum_of_weights.rb +0 -25
  171. data/app/queries/decidim/action_delegator/type_and_weight.rb +0 -26
  172. data/app/queries/decidim/action_delegator/voted_with_ponderations.rb +0 -30
  173. data/app/queries/decidim/action_delegator/votes_count_aggregation.rb +0 -34
  174. data/app/serializers/decidim/action_delegator/consultation_results_serializer.rb +0 -19
  175. data/app/views/decidim/action_delegator/admin/consultations/_ongoing_consultation_warning.html.erb +0 -3
  176. data/app/views/decidim/action_delegator/admin/consultations/results.html.erb +0 -65
  177. data/app/views/decidim/action_delegator/admin/consultations/weighted_results.html.erb +0 -66
  178. data/app/views/decidim/action_delegator/consultations/_link_to_question.html.erb +0 -11
  179. data/app/views/decidim/action_delegator/consultations/questions/_callout.html.erb +0 -5
  180. data/app/views/decidim/action_delegator/consultations/questions/_delegations_modal.html.erb +0 -34
  181. data/app/views/decidim/action_delegator/consultations/questions/_link_to_delegations.html.erb +0 -11
  182. data/app/views/decidim/action_delegator/consultations/questions/_vote_delegated_active.html.erb +0 -32
  183. data/app/views/decidim/action_delegator/consultations/questions/_vote_delegated_finished.html.erb +0 -9
  184. data/app/views/decidim/action_delegator/consultations/questions/_vote_delegated_upcoming.html.erb +0 -8
  185. data/app/views/decidim/consultations/question_votes/update_vote_button.js.erb +0 -82
  186. data/lib/tasks/import_direct_verification.rake +0 -30
@@ -2,6 +2,8 @@
2
2
  cs:
3
3
  activemodel:
4
4
  attributes:
5
+ csv_import:
6
+ csv_file: CSV file
5
7
  delegations_verifier:
6
8
  email: E-mail
7
9
  phone: Mobilní telefonní číslo
@@ -13,26 +15,25 @@ cs:
13
15
  name: Typ členství
14
16
  name_help: Typ členství
15
17
  setting:
16
- decidim_consultation_id: Konzultace
17
- max_grants: Maximum vote delegations a participant can receive
18
+ active: Active
19
+ max_grants: Maximální počet delegací hlasů, které může uživatel obdržet
18
20
  phone_freezed: Použít telefonní číslo ze seznamu obyvatel. Nedovolte účastníkům jej upravovat.
19
21
  verify_with_sms: Ověřit pomocí SMS
20
22
  errors:
23
+ messages:
24
+ only_one_active_setting_per_phone_required: There can only be one active setting with phone verification at a time.
21
25
  models:
22
26
  delegations_verifier:
23
27
  attributes:
24
28
  email:
25
- email_not_found: Sorry, this email is not in the census. Please, contact us if you think this is a mistake.
29
+ email_not_found: Omlouváme se, tento e-mail není v seznamu obyvatel. Pokud se domníváte, že se jedná o chybu, kontaktujte nás prosím.
26
30
  phone:
27
- phone_not_found: Sorry, this phone number is not in the census. Please, contact us if you think this is a mistake.
31
+ phone_not_found: Omlouváme se, tento telefon není v seznamu obyvatel. Pokud se domníváte, že se jedná o chybu, kontaktujte nás prosím.
28
32
  decidim:
29
33
  action_delegator:
30
34
  admin:
31
- consultations:
32
- results:
33
- title: Výsledky podle odpovědi, typu členství a váhy
34
- weighted_results:
35
- title: Results by answer summing membership weights
35
+ census:
36
+ setting_group: Setting group
36
37
  delegations:
37
38
  create:
38
39
  error: Při vytváření delegace došlo k chybě
@@ -40,8 +41,8 @@ cs:
40
41
  error_max_grants: Dosáhli jste limitu povolených delegací pro tohoto příjemce
41
42
  success: Delegace úspěšně vytvořena
42
43
  csv_imports:
43
- invalid: There was a problem importing delegations
44
- success: Delegations imported successfully
44
+ invalid: Při importu delegací došlo k problému
45
+ success: Delegace úspěšně importovány
45
46
  destroy:
46
47
  error: Došlo k potížím při odstraňování této delegace
47
48
  success: Delegace úspěšně zničena
@@ -49,26 +50,21 @@ cs:
49
50
  granter_missing: The granter (from) is not registered into the platform
50
51
  index:
51
52
  actions:
52
- csv_import: Import via csv
53
+ csv_import: Importovat přes csv
53
54
  new_delegation: Nový účastník
54
- consultation: Konzultace
55
55
  created_at: Vytvořeno v
56
- delete: Smazat
57
56
  description_html: This is the current delegations for this consultation
58
57
  grantee: Příjemce
59
58
  grantee_voted: Grantee has voted in behalf of granter?
60
59
  granter: Delegující
61
- granter_voted: Granter has voted?
62
- title: Účastníci
63
60
  new:
64
61
  grantee: Příjemce
65
62
  granter: Delegující
66
63
  save: Vytvořit
67
64
  select_member: Vybrat člena
68
- title: Nová delegace
69
65
  invite_participants:
70
66
  invite_all_users:
71
- error: There was an error inviting the users
67
+ error: Při pozvání uživatelů došlo k chybě
72
68
  success: Uživatelé úspěšně pozváni
73
69
  invite_user:
74
70
  error: Při pozvání uživatele došlo k chybě
@@ -86,74 +82,82 @@ cs:
86
82
  import: Import
87
83
  required_fields: 'Required fields: granter email, grantee email'
88
84
  title: Import delegations
89
- title_example: 'Example:'
90
- upload_instructions: Must be a file in CSV format with a header.
85
+ title_example: 'Příklad:'
86
+ upload_button: Upload CSV file
87
+ upload_help: 'Must be a file in CSV format with a header. Required columns: from, to.'
88
+ upload_instructions: Musí být soubor ve formátu CSV se záhlavím.
91
89
  manage_participants:
92
90
  create:
93
- error: There was a problem importing the participants
91
+ error: Došlo k potížím při importu účastníků
94
92
  success: The import process has started, please wait a few minutes and refresh the page to see the list of participants. Import results will be sent by email.
95
93
  new:
96
94
  authorization_method:
97
- both: email and phone number
95
+ both: e-mail a telefonní číslo
98
96
  email: e-mail
99
97
  phone: telefonní číslo
100
98
  describe: 'Note that there''s also possible to import weights using the name on the ponderation table instead of the weight number, for instance:'
101
99
  import: Importovat
102
- required_fields: 'Required fields: %{authorization_method}'
103
- title: Import participants
100
+ required_fields: 'Vyžadovaná pole: %{authorization_method}'
101
+ title: Import účastníků
104
102
  title_example: 'Příklad:'
103
+ upload_button: Upload CSV file
104
+ upload_help: Must be a file in CSV format with a header.
105
105
  upload_instructions: Musí být soubor ve formátu CSV s záhlavím.
106
106
  menu:
107
- consultations_submenu:
108
- by_answer: Podle odpovědi
109
- by_type_and_weight: Podle typu a váhy
110
- sum_of_weights: Podle součtu vah
107
+ action_delegator_menu:
108
+ delegations: Delegations
109
+ main: Main
110
+ participants: Participants
111
+ ponderations: Ponderations
112
+ settings: Settings
111
113
  delegations: Corporate Governance
114
+ elections_submenu:
115
+ by_answer: By answer
116
+ by_type_and_weight: By type and weight
117
+ sum_of_weights: Sum of weights
118
+ totals: Totals
112
119
  participants: Účastníci
113
120
  participants:
114
121
  create:
115
- error: There was a problem creating the participants
116
- success: Participants created successfully
122
+ error: Při vytváření účastníků se vyskytl problém
123
+ success: Účastníci úspěšně vytvořeni
117
124
  destroy:
118
- error: There was a problem removing this participant
119
- success: Participant successfully destroyed
125
+ error: Při odstraňování tohoto uživatele došlo k chybě
126
+ success: Uživatel úspěšně zničen
120
127
  edit:
121
128
  save: Uložit
122
- title: Upravit účastníka
123
129
  index:
124
130
  actions:
125
131
  csv_import: Import CSV
126
132
  new_participant: Nový účastník
127
133
  remove_census: Remove census
128
- all_users_registered_html: All users are registered into the platform
134
+ all_users_registered_html: Všichni uživatelé jsou zaregistrováni do platformy
129
135
  created_at: Vytvořeno v
130
136
  email: E-mail
131
137
  last_login: Poslední přihlášení
132
- missing_emails: The authorization method does not require an email. Because of this, %{count} must register themselves on the platform
133
- missing_registered: There are %{missing_registered} that are not registered into the platform
138
+ missing_emails: Metoda autorizace nevyžaduje e-mail. Z tohoto důvodu se musí %{count} zaregistrovat na platformě
139
+ missing_registered: Existuje %{missing_registered}, kteří nejsou zaregistrovány na platformě
134
140
  never_logged: Nikdy nepřihlášený
135
- participant: participant
141
+ participant: účastník
136
142
  phone: Telefon
137
143
  ponderation: Ponderation type
138
- send_invitation_link: Click here to send an invitation to them
139
- title: Seznam obyvatel
140
- user: Name
141
- voted: Has voted?
144
+ send_invitation_link: Klikněte zde pro odeslání pozvánky
145
+ user: Jméno
146
+ voted: Bylo hlasováno?
142
147
  new:
143
148
  save: Vytvořit
144
- title: Nový účastník
145
149
  remove_census:
146
150
  confirm: Are you sure you want to remove the census? This operation cannot be undone
147
151
  success: "%{participants_count} entries were successfully deleted from the census"
148
152
  update:
149
- error: There was a problem updating the participants
150
- success: Participants saved successfully
153
+ error: Při aktualizaci účastníků se vyskytl problém
154
+ success: Účastníci úspěšně uloženi
151
155
  permissions:
152
156
  sync:
153
- started: Participans synchronization has started. Please wait a few minutes and refresh this page.
157
+ started: Synchronizace účastníků byla zahájena. Počkejte prosím několik minut a obnovte tuto stránku.
154
158
  update:
155
- error: There was a problem updating the permissions
156
- success: Permissions updated successfully
159
+ error: Při aktualizaci oprávnění se vyskytl problém
160
+ success: Oprávnění byla úspěšně aktualizována
157
161
  ponderations:
158
162
  create:
159
163
  error: There's been and error creating the ponderation
@@ -163,19 +167,17 @@ cs:
163
167
  success: Ponderation destroyed successfully
164
168
  edit:
165
169
  save: Uložit
166
- title: Edit ponderation type
167
170
  form:
168
- name_help: Member type, e.g. "member", "associate", "supporter". Must be unique.
171
+ name_help: Typ člena, např. "člen", "přidružený", "podporovatel". Musí být unikátní.
169
172
  name_placeholder: 'Try, for example: "member", "associate", "supporter"...'
170
- weight_help: Vote weight, e.g. "1", "2", "1.5". This number will be used to ponderate the votes for the participants in this ponderation type.
173
+ weight_help: Váha hlasů, např. "1", "2", "1.5". Toto číslo bude použito k posouzení hlasů pro účastníky tohoto typu ponderace.
171
174
  index:
172
175
  actions:
173
176
  new_ponderation: New ponderation
174
177
  created_at: Vytvořeno v
175
178
  name: Typ členství
176
179
  num_users: Census total
177
- title: Ponderations
178
- weight: Vote weight
180
+ weight: Váha hlasu
179
181
  new:
180
182
  save: Vytvořit
181
183
  title: New ponderation type
@@ -184,11 +186,12 @@ cs:
184
186
  success: Ponderation updated successfully
185
187
  settings:
186
188
  authorization_method:
187
- both: Email and phone number
189
+ both: E-mail a telefonní číslo
188
190
  email: Pouze e-mail
189
- phone: Only phone number
190
- authorization_method_help: |
191
+ phone: Pouze telefonní číslo
192
+ authorization_method_help_html: |
191
193
  Available options are:
194
+ <br><br>
192
195
  <ul>
193
196
  <li><b>Only phone number:</b> Uses SMS verification. Participants must input their phone number that matches the census.</li>
194
197
  <li><b>Only email:</b> Participant's email must match the census.</li>
@@ -199,24 +202,23 @@ cs:
199
202
  copy_setting: 'Copy ponderations and census from:'
200
203
  create:
201
204
  error: Při vytváření nastavení se vyskytl problém
202
- success: Settings saved successfully
205
+ success: Nastavení bylo úspěšně uloženo
203
206
  destroy:
204
207
  error: Při odstraňování tohoto nastavení došlo k chybě
205
208
  success: Nastavení úspěšně zničeno
206
209
  edit:
207
- save: Save
208
- title: Edit delegation group
210
+ save: Uložit
209
211
  form:
210
- max_grants: Maximum delegations per user
212
+ max_grants: Maximální počet delegací na uživatele
211
213
  index:
212
214
  actions:
213
215
  census: Edit the census
214
- delegations: Edit the delegations
215
- new_setting: New configuration
216
+ delegations: Upravit delegace
217
+ new_setting: Nová konfigurace
216
218
  ponderate: Set weights for vote ponderation
217
- authorization_method: Authorization method
219
+ active: Active
220
+ authorization_method: Autorizační metoda
218
221
  census: Census total
219
- consultation: Konzultace
220
222
  created_at: Vytvořeno v
221
223
  delegations: Celkový počet delegací
222
224
  description_html: |
@@ -224,83 +226,104 @@ cs:
224
226
  <br>
225
227
  Each group can be configured with a different number of maximum delegations per user, different user delegations grants and different sets of ponderation types.
226
228
  max_grants: Maximální počet delegací/uživatelů
227
- open: Open
229
+ name: Name
230
+ open: Otevřít
228
231
  ponderations: Ponderation types
229
- state: State
230
232
  title: Corporate Governance
231
233
  new:
232
234
  save: Uložit
233
- title: New configuration
235
+ title: Nová konfigurace
234
236
  setting_checks:
235
237
  all_users_authorized_html: All participants are verified by the <i>Corporate Governance Verifier</i>.
236
- all_users_registered_html: All participants are registered into the platform.
237
- click_to_fix: Click here to automatically fix this
238
- consultation_questions_all_verified_html: All questions are restricted by the <i>Corporate Governance Verifier</i>.
239
- consultation_questions_missing_verifier_html: There are %{count} questions that are not restricted by the <i>Corporate Governance Verifier</i>. <b>Without it, anyone will be able to vote on them.</b> <em>This is ok if you are using other authorization methods or everyone is allowed to vote.</em>
238
+ all_users_registered_html: Všichni účastníci jsou zaregistrováni na platformě.
239
+ applies_to: Applies to the following voting spaces
240
+ click_to_fix: Klikněte zde pro automatické opravení
240
241
  missing_authorizations_html: There are %{count} participants that are not verified by the <i>Corporate Governance Verifier</i>. <em>This is ok if these participants have their votes delegated to others or you are using other verification methods (or none).</em>
241
- missing_emails: The authorization method does not require an email. Because of this, %{count} must register themselves on the platform
242
- missing_registered_users_html: There are %{count} participants that are not registered into the platform.
243
- no_delegations_html: There are no vote delegations.
242
+ missing_emails: Metoda autorizace nevyžaduje e-mail. Z tohoto důvodu se musí %{count} zaregistrovat na platformě
243
+ missing_registered_users_html: Na platformě jsou %{count} účastníci, kteří nejsou zaregistrováni.
244
+ no_delegations_html: Neexistují žádné delegace pro hlasování.
244
245
  no_participants_html: There is no census! <b>Add participants or nobody will be able to vote if <i>Corporate Governance Verifier</i> is active.</b> <em>This is ok if you are using other authorization methods or everyone is allowed to vote.</em>
245
246
  no_ponderations_html: There are no vote ponderations. <b>All users will have the same weight on their votes</b>
246
- participant: participant
247
- user: user
248
- users_need_sync_html: The participants list needs to be synchronized. <b>Consultation results might be wrong!</b>
249
- state:
250
- closed: Closed
251
- ongoing: Ongoing
252
- pending: Pending
247
+ no_resources_found: No voting spaces are using this configuration!
248
+ participant: účastník
249
+ user: uživatel
250
+ users_need_sync_html: Seznam účastníků musí být synchronizován. <b>Výsledky konzultací mohou být chybné!</b>
253
251
  update:
254
- error: There was a problem updating the settings
255
- success: Settings saved successfully
252
+ error: Při aktualizaci nastavení se vyskytl problém
253
+ success: Nastavení bylo úspěšně uloženo
256
254
  weighted_results:
257
- title: Results by answer summing membership weights
255
+ title: Výsledky na základě součtu váh členů
258
256
  authorizations:
259
257
  new:
260
258
  missing_phone_error: Chybějící členský telefon
261
259
  phone_warning: Toto telefonní číslo bylo importováno administrátorem. Pokud není správné, obraťte se na něj.
262
260
  delegations:
263
- has_delegations: Delegate vote made
264
- link: Máte udělené delegace
261
+ has_delegations: Provedené hlasování delegátů
262
+ link: "Máte udělené delegace"
265
263
  delegations_authorizer:
266
264
  email: We are using the email %{email} to verify your identity. If you think this is wrong, please contact us.
267
- no_setting: No delegation group found for this consultation. Please contact the admin to fix it.
268
- not_in_census: You are not in the census
269
- phone: We are using the phone %{phone} to verify your identity. If you think this is wrong, please contact us.
270
- delegations_modal:
271
- callout: Pamatujte, že hlasujete jménem
272
- contextual_help: 'Hlasování vám bylo uděleno od:'
273
- title: 'Konzultace: udělené delegace'
265
+ inactive_setting_html: The census "%{census}" is not active. You can try to <a href="%{renew_path}" class="underline">renew your verification</a>. Otherwise, please contact the administrator if you think this is a mistake.
266
+ no_setting_html: It seems that you do not belong to the current census. You can try to <a href="%{renew_path}" class="underline">renew your verification</a>. Otherwise, please contact the administrator if you think this is a mistake.
267
+ not_in_census_html: It seems that you do not belong to the census "%{census}". You can try to <a href="%{renew_path}" class="underline">renew your verification</a>. Otherwise, please contact the administrator if you think this is a mistake.
268
+ phone: K ověření Vaší identity používáme telefon %{phone}. Pokud si myslíte, že je to špatně, kontaktujte nás prosím.
269
+ elections:
270
+ admin:
271
+ dashboard:
272
+ questions_table:
273
+ delegated_votes: Delegated votes
274
+ participants: Participants
275
+ participants_count:
276
+ one: 1 participant
277
+ few: "%{count} participants"
278
+ many: "%{count} participants"
279
+ other: "%{count} participants"
280
+ unweighted_votes: Unweighted votes
281
+ weight: Weight
282
+ weighted_votes: Weighted votes
283
+ results_type_info:
284
+ by_type_and_weight_html: <p>The results shown below are broken down by membership type and weighted by the membership weights defined in the Corporate Governance settings.</p> <p>Each response option shows the number of votes it received from each membership type but no weights are applied in this view.</p> <p>For example, if option A received 2 votes from members with weight "3.0" and 1 vote from a member with weight "1.0", the results will show 2 votes from members with weight "3.0" and 1 vote from members with weight "1.0".</p> <p>⚠️ These results are not shown to the public.</p>
285
+ normal_count_html: "<p>These results are calculated by counting each vote equally, regardless of the membership weight of the participant that cast it.</p> <p>⚠️ These results are not shown to the public.</p>"
286
+ sum_of_weights_html: <p>The results shown below are weighted by the membership weights defined in the Corporate Governance settings.</p> <p>Each vote is multiplied by the weight of the member who cast it.</p> <p>For example, if a member with weight "3.0" votes for option A, and a member with weight "1.0" votes for option B, the results will show 3 votes for option A and 1 vote for option B.</p> <p><strong>⚠️ These are the results shown to the public.</strong></p>
287
+ title: How to interpret these results?
288
+ totals_html: "<p>The results shown below show the totals for each question, summing all the votes received by each response option applying the membership weights and not applying them.</p> <p>Also, you can see the number of participants and how many delegated votes were cast for each option.</p> <p>⚠️ These results are not shown to the public.</p>"
289
+ delegation_buttons:
290
+ delegations_active: You have delegated votes.
291
+ per_question_delegations: 'You can vote on behalf of the following participants in this election:'
292
+ vote_for: Vote on behalf of %{name}
293
+ votes:
294
+ delegated_voting: You are voting on behalf of %{name}
295
+ edit_vote_for: Edit vote for %{name}
296
+ self_voting: You are voting for yourself (%{name}).
297
+ waiting_for: Continue voting on behalf of %{name}
274
298
  import_mailer:
275
299
  import:
276
- errors_present: There were errors in the importation
277
- errors_title: "<b>Found:</b> %{errors_count} errors"
278
- greeting: Hello %{name},
279
- info_messages: Reason for skipping
300
+ errors_present: Došlo k chybám v importu
301
+ errors_title: "<b>Nalezeno:</b> %{errors_count} chyb"
302
+ greeting: Dobrý den %{name},
303
+ info_messages: Důvod přeskočení
280
304
  instructions: "<p>Attached is a file with import details, which contains rows that were not imported.</p>\n<p>If you want to continue importing, correct the rows specified, delete the last column from the file, save \nthe file and import again.</p>\n"
281
- result: "<b>Imported:</b> %{rows_count} rows of %{total_rows_count}."
282
- row_number: Row number
283
- skipped_rows: "<b>Skipped:</b> %{skipped_rows} rows."
284
- subject: CSV imported
285
- success: CSV imported successfully
286
- text_error: Error
305
+ result: "<b>Importováno:</b> %{rows_count} řádků z %{total_rows_count}."
306
+ row_number: Číslo řádku
307
+ skipped_rows: "<b>Přeskočeno:</b> %{skipped_rows} řádků."
308
+ subject: CSV importováno
309
+ success: CSV úspěšně importováno
310
+ text_error: Chyba
287
311
  invite_participants_mailer:
288
312
  confirmation:
289
- body: You have been invited to participate in the consultation. Please click the link below to confirm your participation.
290
- confirm: Confirm participation
291
- greeting: Hello %{recipient},
292
- name: Modul Decidim ActionDelegator cooperatives
313
+ body: Byli jste pozváni k účasti na konzultaci. Pro potvrzení své účasti klikněte na níže uvedený odkaz.
314
+ confirm: Potvrď účast
315
+ greeting: Dobrý den %{recipient},
293
316
  participants_csv_importer:
294
317
  import:
295
- error: There was a problem importing the participants
296
- error_field: Reason for skipping
318
+ error: Došlo k potížím při importu účastníků
319
+ error_field: Důvod pro přeskočení
297
320
  field_name:
298
- phone: phone
299
- weight: weight
300
- phone_exists: Participant with this phone already exists
321
+ phone: telefon
322
+ weight: váha
323
+ phone_exists: Uživatel s tímto telefonem již existuje
301
324
  ponderation_not_found: Ponderation type not found
302
- skip_import_info: Participant already exists %{with_mismatched_fields}
303
- with_mismatched_fields: " with mismatched fields: %{fields}"
325
+ skip_import_info: Uživatel již existuje %{with_mismatched_fields}
326
+ with_mismatched_fields: " s neodpovídajícími polem: %{fields}"
304
327
  sms_message: Váš ověřovací kód je %{code}
305
328
  user_delegations:
306
329
  index:
@@ -314,47 +337,44 @@ cs:
314
337
  delegations_verifier:
315
338
  authorizations:
316
339
  edit:
317
- confirm_destroy: Are you sure you want to reset the verification code?
318
- destroy: Reset verification code
319
- resend: Didn't receive the verification code?
320
- send: Confirm
321
- title: Introduce the verification code you received
340
+ confirm_destroy: Opravdu chcete resetovat ověřovací kód?
341
+ destroy: Resetovat ověřovací kód
342
+ resend: Neobdrželi jste ověřovací kód?
343
+ send: Potvrdit
344
+ title: Zadejte ověřovací kód, který vám přišel
322
345
  new:
323
- authorize: Authorize my account
324
- missing_phone_error: Missing membership phone
346
+ authorize: Autorizovat můj účet
347
+ missing_phone_error: Chybějící členský telefon
348
+ no_resources_found: No resources found, If you think this is a mistake, please contact the administrator (it is possible that there is nothing active right now).
325
349
  not_in_census: We're sorry but you can't be authorized because your email is not in the census. Please contact the admin if you feel this is a mistake.
326
350
  participate_in: 'This authorization allows you to participate in the following consultations: %{consultations}'
327
- phone_warning: This phone number has been imported by the admin. Please, reach out if it's not correct.
328
- send_code: Send verification code
351
+ phone_warning: Toto telefonní číslo bylo importováno administrátorem. Pokud není správné, obraťte se na něj.
352
+ send_code: Odeslat ověřovací kód
329
353
  title: Authorize with Corporate Governance Verifier
354
+ not_active: The Corporate Governance Verifier cannot be granted at this time as there are no active voting spaces.
330
355
  admin:
331
356
  actions:
332
- invite: Send invitation
333
- invite_all: Send invitations to non-existing users
334
- resend: Resend invitation
335
- consultations:
336
- results:
337
- default_metadata: "(členské údaje nejsou k dispozici)"
338
- export: Export
339
- export_filename: výsledky konzultací
340
- membership_type: Typ členství
341
- membership_weight: Váha
342
- total_delegates: "%{count} delegovaných hlasů"
357
+ invite: Odeslat pozvánku
358
+ invite_all: Poslat pozvánky neexistujícím uživatelům
359
+ resend: Znovu odeslat pozvánku
343
360
  authorization_handlers:
344
361
  admin:
345
362
  delegations_verifier:
346
363
  help:
347
- - Metoda ověřování pro delegované hlasování
364
+ -
365
+ - census.
348
366
  delegations_verifier:
349
367
  explanation: Ověření uživatelé s touto metodou mohou delegovat hlasy na ostatní uživatele
350
368
  fields:
351
- phone: Phone number
369
+ phone: Telefonní číslo
370
+ setting: Setting
371
+ setting_ids: Settings
352
372
  name: Corporate Governance
353
- resources:
354
- question:
355
- actions:
356
- comment: Comment
357
- vote: Vote
373
+ elections:
374
+ censuses:
375
+ action_delegator_census:
376
+ authorizer_handler_admin_callout_html: Choose the "Corporate Governance" authorization method if you want to use the participants list from the chosen setting group to validate who can vote.<br> You can also use another authorization method if your source of census is external or if you don't want to use a census at all (and everyone registered can vote).
377
+ label: Corporate Governance census
358
378
  verifications:
359
379
  authorizations:
360
380
  first_login:
@@ -363,12 +383,8 @@ cs:
363
383
  devise:
364
384
  mailer:
365
385
  invite_participant:
366
- subject: You have been invited to participate in the consultation
386
+ subject: Byli jste pozváni k účasti na konzultacích
367
387
  layouts:
368
388
  decidim:
369
- admin:
370
- question:
371
- attachments: Přílohy
372
- categories: Kategorie
373
389
  user_profile:
374
390
  vote_delegations: Delegace hlasů