decidim-action_delegator 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +97 -36
  3. data/app/commands/{decidim → concerns/decidim}/action_delegator/consultations/vote_question_override.rb +9 -1
  4. data/app/commands/decidim/action_delegator/admin/create_delegation.rb +5 -1
  5. data/app/commands/decidim/action_delegator/admin/create_participant.rb +41 -0
  6. data/app/commands/decidim/action_delegator/admin/create_ponderation.rb +38 -0
  7. data/app/commands/decidim/action_delegator/admin/create_setting.rb +49 -0
  8. data/app/commands/decidim/action_delegator/admin/fix_resource_permissions.rb +46 -0
  9. data/app/commands/decidim/action_delegator/admin/update_participant.rb +42 -0
  10. data/app/commands/decidim/action_delegator/admin/update_ponderation.rb +41 -0
  11. data/app/commands/decidim/action_delegator/admin/update_setting.rb +66 -0
  12. data/app/controllers/concerns/decidim/action_delegator/consultations/consultations_controller_override.rb +16 -0
  13. data/app/controllers/{decidim → concerns/decidim}/action_delegator/consultations/question_multiple_votes_controller_override.rb +2 -1
  14. data/app/controllers/{decidim → concerns/decidim}/action_delegator/consultations/question_votes_controller_override.rb +2 -0
  15. data/app/controllers/concerns/decidim/action_delegator/consultations/questions_controller_override.rb +16 -0
  16. data/app/controllers/concerns/decidim/action_delegator/needs_consultation_styles.rb +24 -0
  17. data/app/controllers/decidim/action_delegator/admin/consultations_controller.rb +22 -8
  18. data/app/controllers/decidim/action_delegator/admin/delegations_controller.rb +9 -9
  19. data/app/controllers/decidim/action_delegator/admin/invite_participants_controller.rb +84 -0
  20. data/app/controllers/decidim/action_delegator/admin/manage_delegations_controller.rb +48 -0
  21. data/app/controllers/decidim/action_delegator/admin/manage_participants_controller.rb +59 -0
  22. data/app/controllers/decidim/action_delegator/admin/participants_controller.rb +102 -0
  23. data/app/controllers/decidim/action_delegator/admin/permissions_controller.rb +40 -0
  24. data/app/controllers/decidim/action_delegator/admin/ponderations_controller.rb +101 -0
  25. data/app/controllers/decidim/action_delegator/admin/settings_controller.rb +51 -12
  26. data/app/controllers/decidim/action_delegator/verifications/delegations_verifier/authorizations_controller.rb +108 -0
  27. data/app/forms/decidim/action_delegator/admin/delegation_form.rb +23 -4
  28. data/app/forms/decidim/action_delegator/admin/invitation_participant_form.rb +10 -0
  29. data/app/forms/decidim/action_delegator/admin/participant_form.rb +44 -0
  30. data/app/forms/decidim/action_delegator/admin/ponderation_form.rb +28 -0
  31. data/app/forms/decidim/action_delegator/admin/setting_form.rb +28 -0
  32. data/app/forms/decidim/action_delegator/verifications/delegations_verifier_form.rb +131 -0
  33. data/app/helpers/decidim/action_delegator/admin/delegation_helper.rb +40 -3
  34. data/app/helpers/decidim/action_delegator/delegation_helper.rb +13 -0
  35. data/app/jobs/decidim/action_delegator/admin/import_csv_job.rb +27 -0
  36. data/app/jobs/decidim/action_delegator/admin/invite_participants_job.rb +39 -0
  37. data/app/jobs/decidim/action_delegator/sync_participants_job.rb +27 -0
  38. data/app/mailers/decidim/action_delegator/import_mailer.rb +31 -0
  39. data/app/models/decidim/action_delegator/delegation.rb +11 -0
  40. data/app/models/decidim/action_delegator/participant.rb +106 -0
  41. data/app/models/decidim/action_delegator/ponderation.rb +28 -0
  42. data/app/models/decidim/action_delegator/setting.rb +50 -1
  43. data/app/overrides/decidim/consultations/consultations/_question/add_delegation_link.html.erb.deface +3 -0
  44. data/app/overrides/decidim/consultations/consultations/_regular_questions/remove_highlighted_scopes.html.erb.deface +4 -0
  45. data/app/overrides/decidim/consultations/question_multiple_votes/_form/add_delegation_notice.html.erb.deface +8 -0
  46. data/app/overrides/decidim/consultations/questions/_vote_button/add_delegations_link.html.erb.deface +3 -0
  47. data/app/overrides/decidim/consultations/questions/_vote_button/add_modal.html.erb.deface +3 -0
  48. data/app/overrides/decidim/consultations/questions/_vote_button/replace_delegation_to_multivote_link.html.erb.deface +8 -0
  49. data/app/overrides/decidim/consultations/questions/_vote_modal/add_delegation_callout.html.erb.deface +3 -0
  50. data/app/overrides/decidim/consultations/questions/_vote_modal_confirm/add_delegation_callout.html.erb.deface +3 -0
  51. data/app/overrides/decidim/consultations/questions/_vote_modal_confirm/add_hidden_field.html.erb.deface +3 -0
  52. data/app/overrides/layouts/decidim/admin/remove_deprecation.rb +10 -0
  53. data/app/packs/entrypoints/decidim_action_delegator_questions.js +2 -0
  54. data/app/packs/src/decidim/action_delegator/questions.js +27 -0
  55. data/app/packs/stylesheets/decidim/action_delegator/questions.scss +4 -3
  56. data/app/permissions/concerns/decidim/action_delegator/consultations/permissions_override.rb +35 -0
  57. data/app/permissions/decidim/action_delegator/permissions.rb +6 -2
  58. data/app/queries/decidim/action_delegator/delegated_votes_versions.rb +5 -11
  59. data/app/queries/decidim/action_delegator/organization_settings.rb +6 -0
  60. data/app/queries/decidim/action_delegator/responses_by_membership.rb +3 -20
  61. data/app/queries/decidim/action_delegator/sum_of_membership_weight.rb +1 -5
  62. data/app/queries/decidim/action_delegator/sum_of_weights.rb +1 -1
  63. data/app/queries/decidim/action_delegator/type_and_weight.rb +1 -1
  64. data/app/queries/decidim/action_delegator/voted_with_ponderations.rb +30 -0
  65. data/app/services/decidim/action_delegator/csv_importer.rb +86 -0
  66. data/app/services/decidim/action_delegator/delegations_csv_importer.rb +54 -0
  67. data/app/services/decidim/action_delegator/participants_csv_importer.rb +131 -0
  68. data/app/views/decidim/action_delegator/admin/consultations/results.html.erb +3 -3
  69. data/app/views/decidim/action_delegator/admin/{results/sum_of_weights/index.html.erb → consultations/weighted_results.html.erb} +3 -3
  70. data/app/views/decidim/action_delegator/admin/delegations/index.html.erb +8 -3
  71. data/app/views/decidim/action_delegator/admin/delegations/new.html.erb +15 -12
  72. data/app/views/decidim/action_delegator/admin/manage_delegations/new.html.erb +25 -0
  73. data/app/views/decidim/action_delegator/admin/manage_participants/new.html.erb +33 -0
  74. data/app/views/decidim/action_delegator/admin/participants/_form.html.erb +9 -0
  75. data/app/views/decidim/action_delegator/admin/participants/_missing_registered_check.html.erb +17 -0
  76. data/app/views/decidim/action_delegator/admin/participants/edit.html.erb +21 -0
  77. data/app/views/decidim/action_delegator/admin/participants/index.html.erb +72 -0
  78. data/app/views/decidim/action_delegator/admin/participants/new.html.erb +21 -0
  79. data/app/views/decidim/action_delegator/admin/ponderations/_form.html.erb +8 -0
  80. data/app/views/decidim/action_delegator/admin/ponderations/edit.html.erb +21 -0
  81. data/app/views/decidim/action_delegator/admin/ponderations/index.html.erb +40 -0
  82. data/app/views/decidim/action_delegator/admin/ponderations/new.html.erb +21 -0
  83. data/app/views/decidim/action_delegator/admin/settings/_check_verifier.html.erb +5 -0
  84. data/app/views/decidim/action_delegator/admin/settings/_form.html.erb +16 -0
  85. data/app/views/decidim/action_delegator/admin/settings/_participants_email_check.html.erb +7 -0
  86. data/app/views/decidim/action_delegator/admin/settings/_participants_sync_check.html.erb +11 -0
  87. data/app/views/decidim/action_delegator/admin/settings/_setting_checks.html.erb +81 -0
  88. data/app/views/decidim/action_delegator/admin/settings/edit.html.erb +18 -0
  89. data/app/views/decidim/action_delegator/admin/settings/index.html.erb +25 -5
  90. data/app/views/decidim/action_delegator/admin/settings/new.html.erb +14 -26
  91. data/app/views/decidim/action_delegator/consultations/_link_to_question.html.erb +11 -0
  92. data/app/views/decidim/action_delegator/consultations/questions/_delegations_modal.html.erb +36 -0
  93. data/app/views/decidim/action_delegator/consultations/questions/_link_to_delegations.html.erb +11 -0
  94. data/app/views/decidim/action_delegator/consultations/questions/_vote_delegated_active.html.erb +32 -0
  95. data/app/views/decidim/action_delegator/consultations/questions/_vote_delegated_finished.html.erb +9 -0
  96. data/app/views/decidim/action_delegator/consultations/questions/_vote_delegated_upcoming.html.erb +8 -0
  97. data/app/views/decidim/action_delegator/import_mailer/import.html.erb +11 -0
  98. data/app/views/decidim/{verifications/sms/authorizations/new.html.erb → action_delegator/verifications/delegations_verifier/authorizations/edit.html.erb} +12 -7
  99. data/app/views/decidim/action_delegator/verifications/delegations_verifier/authorizations/new.html.erb +49 -0
  100. data/config/assets.rb +1 -3
  101. data/config/i18n-tasks.yml +8 -0
  102. data/config/locales/ca.yml +287 -23
  103. data/config/locales/cs.yml +286 -18
  104. data/config/locales/en.yml +331 -24
  105. data/config/locales/es.yml +288 -24
  106. data/db/migrate/20230323101247_create_decidim_action_delegator_ponderations.rb +12 -0
  107. data/db/migrate/20230323210000_create_decidim_action_delegator_participants.rb +13 -0
  108. data/db/migrate/20230323223752_add_decidim_action_delegator_verification_method.rb +7 -0
  109. data/db/migrate/20230412105710_add_decidim_action_delegator_participants_user_id.rb +7 -0
  110. data/lib/decidim/action_delegator/admin_engine.rb +68 -6
  111. data/lib/decidim/action_delegator/engine.rb +25 -15
  112. data/lib/decidim/action_delegator/test/factories.rb +22 -7
  113. data/lib/decidim/action_delegator/verifications/delegations_authorizer.rb +85 -0
  114. data/lib/decidim/action_delegator/verifications/delegations_verifier/engine.rb +25 -0
  115. data/lib/decidim/action_delegator/verifications/delegations_verifier.rb +12 -0
  116. data/lib/decidim/action_delegator/version.rb +3 -3
  117. data/lib/decidim/action_delegator.rb +41 -0
  118. data/lib/tasks/import_direct_verification.rake +30 -0
  119. data/package.json +57 -0
  120. metadata +115 -50
  121. data/app/controllers/decidim/action_delegator/admin/results/sum_of_weights_controller.rb +0 -37
  122. data/app/controllers/decidim/action_delegator/verifications/sms/authorizations_controller_override.rb +0 -38
  123. data/app/packs/entrypoints/decidim_action_delegator_admin_action_delegator_js.js +0 -1
  124. data/app/packs/entrypoints/decidim_action_delegator_questions_js.js +0 -1
  125. data/app/packs/src/decidim/action_delegator/admin/action_delegator.js.es6 +0 -3
  126. data/app/packs/src/decidim/action_delegator/questions.js.es6 +0 -26
  127. data/app/permissions/decidim/action_delegator/consultations_permissions_extension.rb +0 -27
  128. data/app/presenters/decidim/action_delegator/admin/consultation_presenter.rb +0 -15
  129. data/app/presenters/decidim/action_delegator/admin/setting_presenter.rb +0 -13
  130. data/app/queries/decidim/action_delegator/decrypted_authorizations.rb +0 -112
  131. data/app/queries/decidim/action_delegator/json_build_object_query.rb +0 -45
  132. data/app/queries/decidim/action_delegator/voted_with_direct_verification.rb +0 -53
  133. data/app/views/decidim/action_delegator/_delegations_modal.html.erb +0 -93
  134. data/app/views/decidim/action_delegator/_link_to_delegations.html.erb +0 -5
  135. data/app/views/decidim/action_delegator/_link_to_question.html.erb +0 -5
  136. data/app/views/decidim/consultations/consultations/_question.html.erb +0 -41
  137. data/app/views/decidim/consultations/consultations/show.html.erb +0 -14
  138. data/app/views/decidim/consultations/question_multiple_votes/_form.html.erb +0 -25
  139. data/app/views/decidim/consultations/questions/_vote_button.html.erb +0 -106
  140. data/app/views/decidim/consultations/questions/_vote_modal.html.erb +0 -30
  141. data/app/views/decidim/consultations/questions/_vote_modal_confirm.html.erb +0 -38
  142. data/app/views/layouts/decidim/action_delegator/admin/_users_sidebar.html.erb +0 -56
  143. data/app/views/layouts/decidim/action_delegator/admin/delegations.html.erb +0 -13
  144. data/app/views/layouts/decidim/admin/consultation.html.erb +0 -56
  145. data/app/views/layouts/decidim/admin/question.html.erb +0 -98
  146. data/app/views/layouts/decidim/admin/users.html.erb +0 -7
  147. data/config/initializers/doorkeeper.rb +0 -492
  148. data/lib/json_key.rb +0 -10
  149. /data/app/commands/{decidim → concerns/decidim}/action_delegator/consultations/multiple_vote_question_override.rb +0 -0
  150. /data/app/controllers/decidim/action_delegator/admin/exports/{sum_of_weights_controller.rb → _sum_of_weights_controller.rb} +0 -0
  151. /data/app/forms/{decidim → concerns/decidim}/action_delegator/consultations/vote_form_override.rb +0 -0
  152. /data/app/models/{decidim → concerns/decidim}/action_delegator/consultations/vote_override.rb +0 -0
  153. /data/app/views/decidim/action_delegator/{_callout.html.erb → consultations/questions/_callout.html.erb} +0 -0
@@ -1,89 +1,337 @@
1
+ ---
1
2
  cs:
3
+ activemodel:
4
+ attributes:
5
+ delegations_verifier:
6
+ email: E-mail
7
+ phone: Mobilní telefonní číslo
8
+ participant:
9
+ decidim_action_delegator_ponderation_id: Úvaha
10
+ email: E-mail
11
+ phone: Telefon
12
+ ponderation:
13
+ name: Typ členství
14
+ name_help: Typ členství
15
+ setting:
16
+ decidim_consultation_id: Konzultace
17
+ max_grants: Maximum vote delegations a participant can receive
18
+ phone_freezed: Použít telefonní číslo ze seznamu obyvatel. Nedovolte účastníkům jej upravovat.
19
+ verify_with_sms: Ověřit pomocí SMS
20
+ errors:
21
+ models:
22
+ delegations_verifier:
23
+ attributes:
24
+ email:
25
+ email_not_found: Sorry, this email is not in the census. Please, contact us if you think this is a mistake.
26
+ phone:
27
+ phone_not_found: Sorry, this phone number is not in the census. Please, contact us if you think this is a mistake.
2
28
  decidim:
3
29
  action_delegator:
4
30
  admin:
5
31
  consultations:
6
32
  results:
7
33
  title: Výsledky podle odpovědi, typu členství a váhy
34
+ weighted_results:
35
+ title: Results by answer summing membership weights
8
36
  delegations:
9
37
  create:
10
38
  error: Při vytváření delegace došlo k chybě
11
39
  error_granter_unique: již delegovali svůj hlas
12
40
  error_max_grants: Dosáhli jste limitu povolených delegací pro tohoto příjemce
13
41
  success: Delegace úspěšně vytvořena
42
+ csv_imports:
43
+ invalid: There was a problem importing delegations
44
+ success: Delegations imported successfully
14
45
  destroy:
15
46
  error: Došlo k potížím při odstraňování této delegace
16
47
  success: Delegace úspěšně zničena
48
+ grantee_missing: The grantee (receiver) is not registered into the platform
49
+ granter_missing: The granter (from) is not registered into the platform
17
50
  index:
18
51
  actions:
52
+ csv_import: Import via csv
19
53
  new_delegation: Nový účastník
20
54
  consultation: Konzultace
21
55
  created_at: Vytvořeno v
22
56
  delete: Smazat
57
+ description_html: This is the current delegations for this consultation
23
58
  grantee: Příjemce
59
+ grantee_voted: Grantee has voted in behalf of granter?
24
60
  granter: Delegující
61
+ granter_voted: Granter has voted?
25
62
  title: Účastníci
26
63
  new:
27
- form:
28
- title: Obecné informace
29
64
  grantee: Příjemce
30
65
  granter: Delegující
31
66
  save: Vytvořit
32
67
  select_member: Vybrat člena
33
68
  title: Nová delegace
69
+ invite_participants:
70
+ invite_all_users:
71
+ error: There was an error inviting the users
72
+ success: Uživatelé úspěšně pozváni
73
+ invite_user:
74
+ error: Při pozvání uživatele došlo k chybě
75
+ success: Uživatel úspěšně pozván
76
+ permissions:
77
+ not_allowed: Pro tuto akci nemáte oprávnění
78
+ resend_invitation:
79
+ error: Při opětovném odesílání pozvánky došlo k chybě
80
+ success: Pozvánka byla úspěšně znovu odeslána
81
+ manage_delegations:
82
+ create:
83
+ error: There was a problem importing the participants
84
+ 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.
85
+ new:
86
+ import: Import
87
+ required_fields: 'Required fields: granter email, grantee email'
88
+ title: Import delegations
89
+ title_example: 'Example:'
90
+ upload_instructions: Must be a file in CSV format with a header.
91
+ manage_participants:
92
+ create:
93
+ error: There was a problem importing the participants
94
+ 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
+ new:
96
+ authorization_method:
97
+ both: email and phone number
98
+ email: e-mail
99
+ phone: telefonní číslo
100
+ 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
+ import: Importovat
102
+ required_fields: 'Required fields: %{authorization_method}'
103
+ title: Import participants
104
+ title_example: 'Příklad:'
105
+ upload_instructions: Musí být soubor ve formátu CSV s záhlavím.
34
106
  menu:
35
107
  consultations_submenu:
36
108
  by_answer: Podle odpovědi
37
109
  by_type_and_weight: Podle typu a váhy
38
110
  sum_of_weights: Podle součtu vah
39
- delegations: Uživatelské delegace
111
+ delegations: Corporate Governance
40
112
  participants: Účastníci
41
- results:
42
- sum_of_weights:
43
- index:
44
- title: Výsledky na základě součtu váh členů
113
+ participants:
114
+ create:
115
+ error: There was a problem creating the participants
116
+ success: Participants created successfully
117
+ destroy:
118
+ error: There was a problem removing this participant
119
+ success: Participant successfully destroyed
120
+ edit:
121
+ save: Uložit
122
+ title: Upravit účastníka
123
+ index:
124
+ actions:
125
+ csv_import: Import CSV
126
+ new_participant: Nový účastník
127
+ remove_census: Remove census
128
+ all_users_registered_html: All users are registered into the platform
129
+ created_at: Vytvořeno v
130
+ email: E-mail
131
+ 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
134
+ never_logged: Nikdy nepřihlášený
135
+ participant: participant
136
+ phone: Telefon
137
+ 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?
142
+ new:
143
+ save: Vytvořit
144
+ title: Nový účastník
145
+ remove_census:
146
+ confirm: Are you sure you want to remove the census? This operation cannot be undone
147
+ success: "%{participants_count} entries were successfully deleted from the census"
148
+ update:
149
+ error: There was a problem updating the participants
150
+ success: Participants saved successfully
151
+ permissions:
152
+ sync:
153
+ started: Participans synchronization has started. Please wait a few minutes and refresh this page.
154
+ update:
155
+ error: There was a problem updating the permissions
156
+ success: Permissions updated successfully
157
+ ponderations:
158
+ create:
159
+ error: There's been and error creating the ponderation
160
+ success: New ponderation created successfully
161
+ destroy:
162
+ error: There's been and error removing the ponderation
163
+ success: Ponderation destroyed successfully
164
+ edit:
165
+ save: Uložit
166
+ title: Edit ponderation type
167
+ form:
168
+ name_help: Member type, e.g. "member", "associate", "supporter". Must be unique.
169
+ 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.
171
+ index:
172
+ actions:
173
+ new_ponderation: New ponderation
174
+ created_at: Vytvořeno v
175
+ name: Typ členství
176
+ num_users: Census total
177
+ title: Ponderations
178
+ weight: Vote weight
179
+ new:
180
+ save: Vytvořit
181
+ title: New ponderation type
182
+ update:
183
+ error: There's been and error updating the ponderation
184
+ success: Ponderation updated successfully
45
185
  settings:
186
+ authorization_method:
187
+ both: Email and phone number
188
+ email: Pouze e-mail
189
+ phone: Only phone number
190
+ authorization_method_help: |
191
+ Available options are:
192
+ <ul>
193
+ <li><b>Only phone number:</b> Uses SMS verification. Participants must input their phone number that matches the census.</li>
194
+ <li><b>Only email:</b> Participant's email must match the census.</li>
195
+ <li><b>Email and phone number:</b> Uses SMS verification. Participant's email must match the census and phone number will be predefined.</li>
196
+ </ul>
197
+ check_verifier:
198
+ not_installed_html: It seems that the "Corporate Governance Verifier" authorization method is not installed. You cannot use the integrated census without it. Please install it at <a href="/system">/system</a>.
199
+ copy_setting: 'Copy ponderations and census from:'
46
200
  create:
47
201
  error: Při vytváření nastavení se vyskytl problém
48
- success: Nastavení bylo úspěšně uloženo
202
+ success: Settings saved successfully
49
203
  destroy:
50
204
  error: Při odstraňování tohoto nastavení došlo k chybě
51
205
  success: Nastavení úspěšně zničeno
206
+ edit:
207
+ save: Save
208
+ title: Edit delegation group
209
+ form:
210
+ max_grants: Maximum delegations per user
52
211
  index:
53
212
  actions:
54
- new_setting: Nová delegace
213
+ census: Edit the census
214
+ delegations: Edit the delegations
215
+ new_setting: New configuration
216
+ ponderate: Set weights for vote ponderation
217
+ authorization_method: Authorization method
218
+ census: Census total
55
219
  consultation: Konzultace
56
220
  created_at: Vytvořeno v
57
- delegations: Total delegations
58
- max_grants: Max delegations/user
59
- title: Delegace
221
+ delegations: Celkový počet delegací
222
+ description_html: |
223
+ This module is designed for organizations that do voting through consultations. The functionalities we have available are: compilation of census, delegations of participants and weights by type of member. We can also use the integrated verifier via SMS, email or both. It is possible to use this module without importing a census, you can manage it in order to make delegations and/or weightings. If you need more information, go to guia.cercles.coop.
224
+ <br>
225
+ 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
+ max_grants: Maximální počet delegací/uživatelů
227
+ open: Open
228
+ ponderations: Ponderation types
229
+ state: State
230
+ title: Corporate Governance
60
231
  new:
61
- form:
62
- title: Obecné informace
63
- max_grants: Maximum delegací
64
232
  save: Uložit
65
- title: Nastavení delegování
233
+ title: New configuration
234
+ setting_checks:
235
+ 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>
240
+ 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.
244
+ 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
+ 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
253
+ update:
254
+ error: There was a problem updating the settings
255
+ success: Settings saved successfully
256
+ weighted_results:
257
+ title: Results by answer summing membership weights
66
258
  authorizations:
67
259
  new:
68
260
  missing_phone_error: Chybějící členský telefon
69
261
  phone_warning: Toto telefonní číslo bylo importováno administrátorem. Pokud není správné, obraťte se na něj.
70
262
  delegations:
263
+ has_delegations: Delegate vote made
71
264
  link: Máte udělené delegace
265
+ delegations_authorizer:
266
+ 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.
72
270
  delegations_modal:
73
271
  callout: Pamatujte, že hlasujete jménem
74
272
  contextual_help: 'Hlasování vám bylo uděleno od:'
75
273
  title: 'Konzultace: udělené delegace'
274
+ import_mailer:
275
+ 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
280
+ 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
287
+ invite_participants_mailer:
288
+ 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},
76
292
  name: Modul Decidim ActionDelegator cooperatives
293
+ participants_csv_importer:
294
+ import:
295
+ error: There was a problem importing the participants
296
+ error_field: Reason for skipping
297
+ field_name:
298
+ phone: phone
299
+ weight: weight
300
+ phone_exists: Participant with this phone already exists
301
+ 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}"
77
304
  sms_message: Váš ověřovací kód je %{code}
78
305
  user_delegations:
79
306
  index:
80
- vote_delegated: You can vote on behalf of %{name} in this consultation
307
+ vote_delegated: V této konzultaci můžete hlasovat jménem uživatele %{name}
81
308
  verification:
82
309
  admin:
83
310
  members:
84
311
  index:
85
312
  title: Správa členů
313
+ verifications:
314
+ delegations_verifier:
315
+ authorizations:
316
+ 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
322
+ new:
323
+ authorize: Authorize my account
324
+ missing_phone_error: Missing membership phone
325
+ 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
+ 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
329
+ title: Authorize with Corporate Governance Verifier
86
330
  admin:
331
+ actions:
332
+ invite: Send invitation
333
+ invite_all: Send invitations to non-existing users
334
+ resend: Resend invitation
87
335
  consultations:
88
336
  results:
89
337
  default_metadata: "(členské údaje nejsou k dispozici)"
@@ -99,8 +347,28 @@ cs:
99
347
  - Metoda ověřování pro delegované hlasování
100
348
  delegations_verifier:
101
349
  explanation: Ověření uživatelé s touto metodou mohou delegovat hlasy na ostatní uživatele
102
- name: Ověřovatel delegací
350
+ fields:
351
+ phone: Phone number
352
+ name: Corporate Governance
353
+ resources:
354
+ question:
355
+ actions:
356
+ comment: Comment
357
+ vote: Vote
358
+ verifications:
359
+ authorizations:
360
+ first_login:
361
+ actions:
362
+ delegations_verifier: Get verified with Corporate Governance Census
363
+ devise:
364
+ mailer:
365
+ invite_participant:
366
+ subject: You have been invited to participate in the consultation
103
367
  layouts:
104
368
  decidim:
369
+ admin:
370
+ question:
371
+ attachments: Přílohy
372
+ categories: Kategorie
105
373
  user_profile:
106
374
  vote_delegations: Delegace hlasů