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,11 +1,41 @@
1
1
  ---
2
2
  en:
3
+ activemodel:
4
+ attributes:
5
+ delegations_verifier:
6
+ email: Email
7
+ phone: Mobile phone number
8
+ participant:
9
+ decidim_action_delegator_ponderation_id: Ponderation
10
+ email: Email
11
+ phone: Phone
12
+ ponderation:
13
+ name: Membership type
14
+ name_help: Membership type
15
+ setting:
16
+ decidim_consultation_id: Consultation
17
+ max_grants: Maximum vote delegations a participant can receive
18
+ phone_freezed: Use phone number from the census. Don't allow participants
19
+ to edit it.
20
+ verify_with_sms: Verify with SMS
21
+ errors:
22
+ models:
23
+ delegations_verifier:
24
+ attributes:
25
+ email:
26
+ email_not_found: Sorry, this email is not in the census. Please, contact
27
+ us if you think this is a mistake.
28
+ phone:
29
+ phone_not_found: Sorry, this phone number is not in the census. Please,
30
+ contact us if you think this is a mistake.
3
31
  decidim:
4
32
  action_delegator:
5
33
  admin:
6
34
  consultations:
7
35
  results:
8
36
  title: Results by answer, membership type and weight
37
+ weighted_results:
38
+ title: Results by answer summing membership weights
9
39
  delegations:
10
40
  create:
11
41
  error: There was a problem creating the delegation
@@ -13,70 +43,306 @@ en:
13
43
  error_max_grants: You reached the limit of allowed delegations for this
14
44
  grantee
15
45
  success: Delegation created successfully
46
+ csv_imports:
47
+ invalid: There was a problem importing delegations
48
+ success: Delegations imported successfully
16
49
  destroy:
17
- error: There was a problem destroying this delegation
50
+ error: There was a problem removing this delegation
18
51
  success: Delegation successfully destroyed
52
+ grantee_missing: The grantee (receiver) is not registered into the platform
53
+ granter_missing: The granter (from) is not registered into the platform
19
54
  index:
20
55
  actions:
21
- new_delegation: New participant
56
+ csv_import: Import via csv
57
+ new_delegation: New delegation
22
58
  consultation: Consultation
23
59
  created_at: Created at
24
60
  delete: Delete
25
- grantee: Grantee
26
- granter: Granter
27
- title: Participants
61
+ description_html: This is the current delegations for this consultation
62
+ grantee: Grantee (to)
63
+ grantee_voted: Grantee has voted in behalf of granter?
64
+ granter: Granter (from)
65
+ granter_voted: Granter has voted?
66
+ title: User vote delegations
28
67
  new:
29
- form:
30
- title: General information
31
- grantee: Grantee
32
- granter: Granter
68
+ grantee: Grantee (to)
69
+ granter: Granter (from)
33
70
  save: Create
34
71
  select_member: Select member
35
72
  title: New delegation
73
+ invite_participants:
74
+ invite_all_users:
75
+ error: There was an error inviting the users
76
+ success: Users invited successfully
77
+ invite_user:
78
+ error: There was an error inviting the user
79
+ success: User invited successfully
80
+ permissions:
81
+ not_allowed: You are not allowed for this action
82
+ resend_invitation:
83
+ error: There was an error resending the invitation
84
+ success: Invitation resent successfully
85
+ manage_delegations:
86
+ create:
87
+ error: There was a problem importing the participants
88
+ success: The import process has started, please wait a few minutes and
89
+ refresh the page to see the list of participants. Import results will
90
+ be sent by email.
91
+ new:
92
+ import: Import
93
+ required_fields: 'Required fields: granter email, grantee email'
94
+ title: Import delegations
95
+ title_example: 'Example:'
96
+ upload_instructions: Must be a file in CSV format with a header.
97
+ manage_participants:
98
+ create:
99
+ error: There was a problem importing the participants
100
+ success: The import process has started, please wait a few minutes and
101
+ refresh the page to see the list of participants. Import results will
102
+ be sent by email.
103
+ new:
104
+ authorization_method:
105
+ both: email and phone number
106
+ email: email
107
+ phone: phone number
108
+ describe: 'Note that there''s also possible to import weights using the
109
+ name on the ponderation table instead of the weight number, for instance:'
110
+ import: Import
111
+ required_fields: 'Required fields: %{authorization_method}'
112
+ title: Import participants
113
+ title_example: 'Example:'
114
+ upload_instructions: Must be a file in CSV format with a header.
36
115
  menu:
37
116
  consultations_submenu:
38
117
  by_answer: By answer
39
118
  by_type_and_weight: By type and weight
40
119
  sum_of_weights: By sum of weights
41
- delegations: User delegations
120
+ delegations: Corporate Governance
42
121
  participants: Participants
43
- results:
44
- sum_of_weights:
45
- index:
46
- title: Results by answer summing membership weights
122
+ participants:
123
+ create:
124
+ error: There was a problem creating the participants
125
+ success: Participants created successfully
126
+ destroy:
127
+ error: There was a problem removing this participant
128
+ success: Participant successfully destroyed
129
+ edit:
130
+ save: Save
131
+ title: Edit participant
132
+ index:
133
+ actions:
134
+ csv_import: Import CSV
135
+ new_participant: New participant
136
+ remove_census: Remove census
137
+ all_users_registered_html: All users are registered into the platform
138
+ created_at: Created at
139
+ email: Email
140
+ last_login: Last login
141
+ missing_emails: The authorization method does not require an email. Because
142
+ of this, %{count} must register themselves on the platform
143
+ missing_registered: There are %{missing_registered} that are not registered
144
+ into the platform
145
+ never_logged: Never logged yet
146
+ participant: participant
147
+ phone: Phone
148
+ ponderation: Ponderation type
149
+ send_invitation_link: Click here to send an invitation to them
150
+ title: Census
151
+ user: Name
152
+ voted: Has voted?
153
+ new:
154
+ save: Create
155
+ title: New participant
156
+ remove_census:
157
+ confirm: Are you sure you want to remove the census? This operation cannot
158
+ be undone
159
+ success: "%{participants_count} entries were successfully deleted from
160
+ the census"
161
+ update:
162
+ error: There was a problem updating the participants
163
+ success: Participants saved successfully
164
+ permissions:
165
+ sync:
166
+ started: Participans synchronization has started. Please wait a few minutes
167
+ and refresh this page.
168
+ update:
169
+ error: There was a problem updating the permissions
170
+ success: Permissions updated successfully
171
+ ponderations:
172
+ create:
173
+ error: There's been and error creating the ponderation
174
+ success: New ponderation created successfully
175
+ destroy:
176
+ error: There's been and error removing the ponderation
177
+ success: Ponderation destroyed successfully
178
+ edit:
179
+ save: Save
180
+ title: Edit ponderation type
181
+ form:
182
+ name_help: Member type, e.g. "member", "associate", "supporter". Must
183
+ be unique.
184
+ name_placeholder: 'Try, for example: "member", "associate", "supporter"...'
185
+ weight_help: Vote weight, e.g. "1", "2", "1.5". This number will be used
186
+ to ponderate the votes for the participants in this ponderation type.
187
+ index:
188
+ actions:
189
+ new_ponderation: New ponderation
190
+ created_at: Created at
191
+ name: Membership Type
192
+ num_users: Census total
193
+ title: Ponderations
194
+ weight: Vote weight
195
+ new:
196
+ save: Create
197
+ title: New ponderation type
198
+ update:
199
+ error: There's been and error updating the ponderation
200
+ success: Ponderation updated successfully
47
201
  settings:
202
+ authorization_method:
203
+ both: Email and phone number
204
+ email: Only email
205
+ phone: Only phone number
206
+ authorization_method_help: |
207
+ Available options are:
208
+ <ul>
209
+ <li><b>Only phone number:</b> Uses SMS verification. Participants must input their phone number that matches the census.</li>
210
+ <li><b>Only email:</b> Participant's email must match the census.</li>
211
+ <li><b>Email and phone number:</b> Uses SMS verification. Participant's email must match the census and phone number will be predefined.</li>
212
+ </ul>
213
+ check_verifier:
214
+ not_installed_html: It seems that the "Corporate Governance Verifier"
215
+ authorization method is not installed. You cannot use the integrated
216
+ census without it. Please install it at <a href="/system">/system</a>.
217
+ copy_setting: 'Copy ponderations and census from:'
48
218
  create:
49
219
  error: There was a problem creating the settings
50
220
  success: Settings saved successfully
51
221
  destroy:
52
- error: There was a problem destroying this setting
222
+ error: There was a problem removing this setting
53
223
  success: Setting successfully destroyed
224
+ edit:
225
+ save: Save
226
+ title: Edit delegation group
227
+ form:
228
+ max_grants: Maximum delegations per user
54
229
  index:
55
230
  actions:
56
- new_setting: New delegation
231
+ census: Edit the census
232
+ delegations: Edit the delegations
233
+ new_setting: New configuration
234
+ ponderate: Set weights for vote ponderation
235
+ authorization_method: Authorization method
236
+ census: Census total
57
237
  consultation: Consultation
58
238
  created_at: Created at
59
- delegations: Total delegations
239
+ delegations: Delegations
240
+ description_html: |
241
+ 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.
242
+ <br>
243
+ Each group can be configured with a different number of maximum delegations per user, different user delegations grants and different sets of ponderation types.
60
244
  max_grants: Max delegations/user
61
- title: Delegations
245
+ open: Open
246
+ ponderations: Ponderation types
247
+ state: State
248
+ title: Corporate Governance
62
249
  new:
63
- form:
64
- title: General information
65
- max_grants: Maximum delegations per user
66
- save: Save
67
- title: Delegation settings
250
+ save: Create
251
+ title: New configuration
252
+ setting_checks:
253
+ all_users_authorized_html: All participants are verified by the <i>Corporate
254
+ Governance Verifier</i>.
255
+ all_users_registered_html: All participants are registered into the platform.
256
+ click_to_fix: Click here to automatically fix this
257
+ consultation_questions_all_verified_html: All questions are restricted
258
+ by the <i>Corporate Governance Verifier</i>.
259
+ consultation_questions_missing_verifier_html: There are %{count} questions
260
+ that are not restricted by the <i>Corporate Governance Verifier</i>.
261
+ <b>Without it, anyone will be able to vote on them.</b> <em>This is
262
+ ok if you are using other authorization methods or everyone is allowed
263
+ to vote.</em>
264
+ missing_authorizations_html: There are %{count} participants that are
265
+ not verified by the <i>Corporate Governance Verifier</i>. <em>This is
266
+ ok if these participants have their votes delegated to others or you
267
+ are using other verification methods (or none).</em>
268
+ missing_emails: The authorization method does not require an email. Because
269
+ of this, %{count} must register themselves on the platform
270
+ missing_registered_users_html: There are %{count} participants that are
271
+ not registered into the platform.
272
+ no_delegations_html: There are no vote delegations.
273
+ no_participants_html: There is no census! <b>Add participants or nobody
274
+ will be able to vote if <i>Corporate Governance Verifier</i> is active.</b>
275
+ <em>This is ok if you are using other authorization methods or everyone
276
+ is allowed to vote.</em>
277
+ no_ponderations_html: There are no vote ponderations. <b>All users will
278
+ have the same weight on their votes</b>
279
+ participant: participant
280
+ user: user
281
+ users_need_sync_html: The participants list needs to be synchronized.
282
+ <b>Consultation results might be wrong!</b>
283
+ state:
284
+ closed: Closed
285
+ ongoing: Ongoing
286
+ pending: Pending
287
+ update:
288
+ error: There was a problem updating the settings
289
+ success: Settings saved successfully
290
+ weighted_results:
291
+ title: Results by answer summing membership weights
68
292
  authorizations:
69
293
  new:
70
294
  missing_phone_error: Missing membership phone
71
295
  phone_warning: This phone number has been imported by the admin. Please,
72
296
  reach out if it's not correct.
73
297
  delegations:
298
+ has_delegations: Delegate vote made
74
299
  link: You have delegations granted
300
+ delegations_authorizer:
301
+ email: We are using the email %{email} to verify your identity. If you think
302
+ this is wrong, please contact us.
303
+ no_setting: No delegation group found for this consultation. Please contact
304
+ the admin to fix it.
305
+ not_in_census: You are not in the census
306
+ phone: We are using the phone %{phone} to verify your identity. If you think
307
+ this is wrong, please contact us.
75
308
  delegations_modal:
76
309
  callout: Remember, you are voting on behalf of
77
310
  contextual_help: 'You have been granted the vote from:'
78
311
  title: 'Consultation: granted delegations'
312
+ import_mailer:
313
+ import:
314
+ errors_present: There were errors in the importation
315
+ errors_title: "<b>Found:</b> %{errors_count} errors"
316
+ greeting: Hello %{name},
317
+ info_messages: Reason for skipping
318
+ instructions: "<p>Attached is a file with import details, which contains
319
+ rows that were not imported.</p>\n<p>If you want to continue importing,
320
+ correct the rows specified, delete the last column from the file, save
321
+ \nthe file and import again.</p>\n"
322
+ result: "<b>Imported:</b> %{rows_count} rows of %{total_rows_count}."
323
+ row_number: Row number
324
+ skipped_rows: "<b>Skipped:</b> %{skipped_rows} rows."
325
+ subject: CSV imported
326
+ success: CSV imported successfully
327
+ text_error: Error
328
+ invite_participants_mailer:
329
+ confirmation:
330
+ body: You have been invited to participate in the consultation. Please click
331
+ the link below to confirm your participation.
332
+ confirm: Confirm participation
333
+ greeting: Hello %{recipient},
79
334
  name: Decidim ActionDelegator cooperatives module
335
+ participants_csv_importer:
336
+ import:
337
+ error: There was a problem importing the participants
338
+ error_field: Reason for skipping
339
+ field_name:
340
+ phone: phone
341
+ weight: weight
342
+ phone_exists: Participant with this phone already exists
343
+ ponderation_not_found: Ponderation type not found
344
+ skip_import_info: Participant already exists %{with_mismatched_fields}
345
+ with_mismatched_fields: " with mismatched fields: %{fields}"
80
346
  sms_message: Your verification code is %{code}
81
347
  user_delegations:
82
348
  index:
@@ -86,7 +352,32 @@ en:
86
352
  members:
87
353
  index:
88
354
  title: Members management
355
+ verifications:
356
+ delegations_verifier:
357
+ authorizations:
358
+ edit:
359
+ confirm_destroy: Are you sure you want to reset the verification code?
360
+ destroy: Reset verification code
361
+ resend: Didn't receive the verification code?
362
+ send: Confirm
363
+ title: Introduce the verification code you received
364
+ new:
365
+ authorize: Authorize my account
366
+ missing_phone_error: Missing membership phone
367
+ not_in_census: We're sorry but you can't be authorized because your
368
+ email is not in the census. Please contact the admin if you feel this
369
+ is a mistake.
370
+ participate_in: 'This authorization allows you to participate in the
371
+ following consultations: %{consultations}'
372
+ phone_warning: This phone number has been imported by the admin. Please,
373
+ reach out if it's not correct.
374
+ send_code: Send verification code
375
+ title: Authorize with Corporate Governance Verifier
89
376
  admin:
377
+ actions:
378
+ invite: Send invitation
379
+ invite_all: Send invitations to non-existing users
380
+ resend: Resend invitation
90
381
  consultations:
91
382
  results:
92
383
  default_metadata: "(membership data not available)"
@@ -102,7 +393,23 @@ en:
102
393
  - A verification method for delegate voting
103
394
  delegations_verifier:
104
395
  explanation: Verified users with this method can delegate votes to other users
105
- name: Delegations Verifier
396
+ fields:
397
+ phone: Phone number
398
+ name: Corporate Governance
399
+ resources:
400
+ question:
401
+ actions:
402
+ comment: Comment
403
+ vote: Vote
404
+ verifications:
405
+ authorizations:
406
+ first_login:
407
+ actions:
408
+ delegations_verifier: Get verified with Corporate Governance Census
409
+ devise:
410
+ mailer:
411
+ invite_participant:
412
+ subject: You have been invited to participate in the consultation
106
413
  layouts:
107
414
  decidim:
108
415
  admin: