decidim-action_delegator 0.8.2 → 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 (194) 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 +2 -10
  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 -20
  15. data/app/controllers/decidim/action_delegator/admin/manage_participants_controller.rb +11 -19
  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/ponderation_form.rb +2 -1
  28. data/app/forms/decidim/action_delegator/admin/setting_form.rb +16 -10
  29. data/app/forms/decidim/action_delegator/censuses/internal_users_form.rb +32 -0
  30. data/app/forms/decidim/action_delegator/verifications/delegations_verifier_form.rb +41 -25
  31. data/app/helpers/decidim/action_delegator/admin/{delegation_helper.rb → settings_helper.rb} +3 -16
  32. data/app/helpers/decidim/action_delegator/settings_helper.rb +124 -0
  33. data/app/jobs/decidim/action_delegator/admin/invite_participants_job.rb +1 -1
  34. data/app/jobs/decidim/action_delegator/send_sms_job.rb +2 -2
  35. data/app/jobs/decidim/action_delegator/twilio_send_sms_job.rb +2 -2
  36. data/app/models/decidim/action_delegator/delegation.rb +15 -14
  37. data/app/models/decidim/action_delegator/participant.rb +7 -10
  38. data/app/models/decidim/action_delegator/ponderation.rb +0 -2
  39. data/app/models/decidim/action_delegator/setting.rb +14 -32
  40. data/app/overrides/decidim/elections/admin/dashboard/_results/_add_results_contents.html.erb.deface +10 -0
  41. data/app/overrides/decidim/elections/admin/dashboard/_results/_add_results_tabs.html.erb.deface +3 -0
  42. data/app/overrides/decidim/elections/elections/_election_aside/add_delegation_buttons.html.erb.deface +3 -0
  43. data/app/overrides/decidim/elections/elections/_vote_results/replace_results_div.html.erb.deface +8 -0
  44. data/app/overrides/decidim/elections/per_question_votes/show/add_delegation_hidden_input.html.erb.deface +3 -0
  45. data/app/overrides/decidim/elections/per_question_votes/show/add_delegation_id_to_links.html.erb.deface +3 -0
  46. data/app/overrides/decidim/elections/per_question_votes/waiting/add_delegation_buttons.html.erb.deface +3 -0
  47. data/app/overrides/decidim/elections/votes/receipt/add_delegation_buttons.html.erb.deface +3 -0
  48. data/app/packs/entrypoints/decidim_action_delegator_elections.js +1 -0
  49. data/app/packs/src/decidim/action_delegator/elections_live_results.js +160 -0
  50. data/app/permissions/decidim/action_delegator/admin/permissions.rb +29 -0
  51. data/app/permissions/decidim/action_delegator/permissions.rb +6 -30
  52. data/app/presenters/decidim/action_delegator/setting_presenter.rb +33 -0
  53. data/app/queries/decidim/action_delegator/action_delegator_census_users.rb +51 -0
  54. data/app/queries/decidim/action_delegator/authorized_resources.rb +28 -0
  55. data/app/queries/decidim/action_delegator/election_settings.rb +23 -0
  56. data/app/queries/decidim/action_delegator/{delegated_votes_versions.rb → elections_delegated_votes_versions.rb} +8 -8
  57. data/app/queries/decidim/action_delegator/elections_question_responses_by_type.rb +33 -0
  58. data/app/queries/decidim/action_delegator/elections_question_weighted_responses.rb +28 -0
  59. data/app/queries/decidim/action_delegator/elections_votes_with_ponderations.rb +62 -0
  60. data/app/services/decidim/action_delegator/participants_csv_importer.rb +1 -1
  61. data/app/services/decidim/action_delegator/sms_gateway.rb +2 -2
  62. data/app/views/decidim/action_delegator/admin/censuses/_action_delegator_census_form.html.erb +44 -0
  63. data/app/views/decidim/action_delegator/admin/censuses/_action_delegator_census_options_form.html.erb +25 -0
  64. data/app/views/decidim/action_delegator/admin/delegations/index.html.erb +12 -13
  65. data/app/views/decidim/action_delegator/admin/delegations/new.html.erb +29 -27
  66. data/app/views/decidim/action_delegator/admin/manage_delegations/new.html.erb +36 -24
  67. data/app/views/decidim/action_delegator/admin/manage_participants/new.html.erb +47 -33
  68. data/app/views/decidim/action_delegator/admin/participants/_form.html.erb +14 -8
  69. data/app/views/decidim/action_delegator/admin/participants/edit.html.erb +11 -13
  70. data/app/views/decidim/action_delegator/admin/participants/index.html.erb +20 -25
  71. data/app/views/decidim/action_delegator/admin/participants/new.html.erb +11 -13
  72. data/app/views/decidim/action_delegator/admin/ponderations/_form.html.erb +13 -7
  73. data/app/views/decidim/action_delegator/admin/ponderations/edit.html.erb +11 -13
  74. data/app/views/decidim/action_delegator/admin/ponderations/index.html.erb +8 -11
  75. data/app/views/decidim/action_delegator/admin/ponderations/new.html.erb +11 -13
  76. data/app/views/decidim/action_delegator/admin/settings/_form.html.erb +26 -12
  77. data/app/views/decidim/action_delegator/admin/settings/_participants_sync_check.html.erb +1 -1
  78. data/app/views/decidim/action_delegator/admin/settings/_setting_checks.html.erb +11 -16
  79. data/app/views/decidim/action_delegator/admin/settings/edit.html.erb +11 -12
  80. data/app/views/decidim/action_delegator/admin/settings/index.html.erb +22 -19
  81. data/app/views/decidim/action_delegator/admin/settings/new.html.erb +11 -12
  82. data/app/views/decidim/action_delegator/admin/shared/_tabs_menu.html.erb +15 -0
  83. data/app/views/decidim/action_delegator/censuses/_internal_users_form.html.erb +61 -0
  84. data/app/views/decidim/action_delegator/elections/_delegation_buttons.html.erb +10 -0
  85. data/app/views/decidim/action_delegator/elections/_normal_election_buttons.html.erb +13 -0
  86. data/app/views/decidim/action_delegator/elections/_per_question_buttons.html.erb +9 -0
  87. data/app/views/decidim/action_delegator/elections/_per_question_waiting_buttons.html.erb +19 -0
  88. data/app/views/decidim/action_delegator/elections/_vote_results.html.erb +10 -0
  89. data/app/views/decidim/action_delegator/elections/_vote_results_question.html.erb +13 -0
  90. data/app/views/decidim/action_delegator/elections/admin/dashboard/_by_type_and_weight.html.erb +45 -0
  91. data/app/views/decidim/action_delegator/elections/admin/dashboard/_results_tabs.html.erb +5 -0
  92. data/app/views/decidim/action_delegator/elections/admin/dashboard/_results_type_info.html.erb +4 -0
  93. data/app/views/decidim/action_delegator/elections/admin/dashboard/_sum_of_weights.html.erb +43 -0
  94. data/app/views/decidim/action_delegator/elections/admin/dashboard/_totals.html.erb +27 -0
  95. data/app/views/decidim/action_delegator/user_delegations/index.html.erb +13 -14
  96. data/app/views/decidim/action_delegator/verifications/delegations_verifier/authorizations/edit.html.erb +19 -29
  97. data/app/views/decidim/action_delegator/verifications/delegations_verifier/authorizations/new.html.erb +42 -40
  98. data/config/assets.rb +3 -36
  99. data/config/i18n-tasks.yml +27 -5
  100. data/config/locales/ca.yml +103 -146
  101. data/config/locales/cs.yml +161 -145
  102. data/config/locales/en.yml +110 -75
  103. data/config/locales/es.yml +108 -154
  104. data/db/migrate/20200824113801_create_settings.rb +1 -1
  105. data/db/migrate/20250729104037_add_title_to_action_delegator_settings.rb +31 -0
  106. data/lib/decidim/action_delegator/admin_engine.rb +72 -45
  107. data/lib/decidim/action_delegator/common_rake.rb +13 -0
  108. data/lib/decidim/action_delegator/engine.rb +48 -19
  109. data/lib/decidim/action_delegator/test/delegation_examples.rb +144 -0
  110. data/lib/decidim/action_delegator/test/factories.rb +11 -6
  111. data/lib/decidim/action_delegator/verifications/delegations_authorizer.rb +80 -47
  112. data/lib/decidim/action_delegator/version.rb +3 -3
  113. data/lib/decidim/action_delegator.rb +8 -26
  114. data/lib/tasks/migrate_consultations.rake +382 -0
  115. data/lib/tasks/upgrade_tasks.rake +5 -0
  116. data/package.json +10 -27
  117. metadata +72 -122
  118. data/app/commands/concerns/decidim/action_delegator/consultations/multiple_vote_question_override.rb +0 -31
  119. data/app/commands/concerns/decidim/action_delegator/consultations/vote_question_override.rb +0 -44
  120. data/app/commands/decidim/action_delegator/admin/fix_resource_permissions.rb +0 -46
  121. data/app/commands/decidim/action_delegator/vote_delegation.rb +0 -28
  122. data/app/controllers/concerns/decidim/action_delegator/consultations/consultations_controller_override.rb +0 -16
  123. data/app/controllers/concerns/decidim/action_delegator/consultations/question_multiple_votes_controller_override.rb +0 -29
  124. data/app/controllers/concerns/decidim/action_delegator/consultations/question_votes_controller_override.rb +0 -57
  125. data/app/controllers/concerns/decidim/action_delegator/consultations/questions_controller_override.rb +0 -16
  126. data/app/controllers/concerns/decidim/action_delegator/needs_consultation_styles.rb +0 -24
  127. data/app/controllers/decidim/action_delegator/admin/consultations/exports_controller.rb +0 -27
  128. data/app/controllers/decidim/action_delegator/admin/consultations_controller.rb +0 -47
  129. data/app/controllers/decidim/action_delegator/admin/exports/_sum_of_weights_controller.rb +0 -15
  130. data/app/controllers/decidim/action_delegator/questions_summary_controller.rb +0 -14
  131. data/app/forms/concerns/decidim/action_delegator/consultations/vote_form_override.rb +0 -15
  132. data/app/helpers/decidim/action_delegator/delegation_helper.rb +0 -13
  133. data/app/jobs/decidim/action_delegator/export_consultation_results_job.rb +0 -51
  134. data/app/models/concerns/decidim/action_delegator/consultations/question_override.rb +0 -36
  135. data/app/models/concerns/decidim/action_delegator/consultations/vote_override.rb +0 -15
  136. data/app/models/decidim/action_delegator/unversioned_vote.rb +0 -19
  137. data/app/models/decidim/action_delegator/whodunnit_vote.rb +0 -28
  138. data/app/overrides/decidim/consultations/admin/consultations/results/add_ongoing_warning.html.erb.deface +0 -3
  139. data/app/overrides/decidim/consultations/consultations/_question/add_delegation_link.html.erb.deface +0 -3
  140. data/app/overrides/decidim/consultations/consultations/_question/replace_vote_info.html.erb.deface +0 -4
  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/_results/replace_results.html.erb.deface +0 -3
  145. data/app/overrides/decidim/consultations/questions/_vote_button/add_delegations_link.html.erb.deface +0 -3
  146. data/app/overrides/decidim/consultations/questions/_vote_button/add_modal.html.erb.deface +0 -3
  147. data/app/overrides/decidim/consultations/questions/_vote_button/add_modal_javascript.html.erb.deface +0 -3
  148. data/app/overrides/decidim/consultations/questions/_vote_button/replace_delegation_to_multivote_link.html.erb.deface +0 -8
  149. data/app/overrides/decidim/consultations/questions/_vote_modal/add_delegation_callout.html.erb.deface +0 -3
  150. data/app/overrides/decidim/consultations/questions/_vote_modal_confirm/add_delegation_callout.html.erb.deface +0 -3
  151. data/app/overrides/decidim/consultations/questions/_vote_modal_confirm/add_hidden_field.html.erb.deface +0 -3
  152. data/app/overrides/layouts/decidim/_consultation_header/add_consultation_callout.html.erb.deface +0 -9
  153. data/app/overrides/layouts/decidim/_question_header/add_consultation_callout.html.erb.deface +0 -9
  154. data/app/overrides/layouts/decidim/admin/remove_deprecation.rb +0 -10
  155. data/app/packs/entrypoints/decidim_action_delegator.scss +0 -1
  156. data/app/packs/entrypoints/decidim_action_delegator_questions.js +0 -5
  157. data/app/packs/entrypoints/decidim_action_delegator_questions_summary.js +0 -1
  158. data/app/packs/src/decidim/action_delegator/questions.js +0 -33
  159. data/app/packs/src/decidim/action_delegator/summary.js +0 -24
  160. data/app/packs/stylesheets/decidim/action_delegator/questions.scss +0 -26
  161. data/app/permissions/concerns/decidim/action_delegator/consultations/permissions_override.rb +0 -35
  162. data/app/presenters/decidim/action_delegator/question_with_totals.rb +0 -24
  163. data/app/queries/decidim/action_delegator/consultation_delegations.rb +0 -25
  164. data/app/queries/decidim/action_delegator/delegates_votes_by_consultation.rb +0 -24
  165. data/app/queries/decidim/action_delegator/delegates_votes_by_question.rb +0 -26
  166. data/app/queries/decidim/action_delegator/delegation_votes.rb +0 -30
  167. data/app/queries/decidim/action_delegator/grantee_delegations.rb +0 -24
  168. data/app/queries/decidim/action_delegator/organization_delegations.rb +0 -26
  169. data/app/queries/decidim/action_delegator/organization_settings.rb +0 -31
  170. data/app/queries/decidim/action_delegator/responses.rb +0 -24
  171. data/app/queries/decidim/action_delegator/responses_by_membership.rb +0 -58
  172. data/app/queries/decidim/action_delegator/scrutiny.rb +0 -87
  173. data/app/queries/decidim/action_delegator/setting_delegations.rb +0 -19
  174. data/app/queries/decidim/action_delegator/sum_of_membership_weight.rb +0 -44
  175. data/app/queries/decidim/action_delegator/sum_of_weights.rb +0 -25
  176. data/app/queries/decidim/action_delegator/type_and_weight.rb +0 -26
  177. data/app/queries/decidim/action_delegator/voted_with_ponderations.rb +0 -30
  178. data/app/queries/decidim/action_delegator/votes_count_aggregation.rb +0 -34
  179. data/app/serializers/decidim/action_delegator/consultation_results_serializer.rb +0 -19
  180. data/app/views/decidim/action_delegator/admin/consultations/_ongoing_consultation_warning.html.erb +0 -3
  181. data/app/views/decidim/action_delegator/admin/consultations/results.html.erb +0 -65
  182. data/app/views/decidim/action_delegator/admin/consultations/weighted_results.html.erb +0 -66
  183. data/app/views/decidim/action_delegator/consultations/_link_to_question.html.erb +0 -11
  184. data/app/views/decidim/action_delegator/consultations/_link_with_results.html.erb +0 -11
  185. data/app/views/decidim/action_delegator/consultations/questions/_callout.html.erb +0 -5
  186. data/app/views/decidim/action_delegator/consultations/questions/_delegations_modal.html.erb +0 -34
  187. data/app/views/decidim/action_delegator/consultations/questions/_link_to_delegations.html.erb +0 -15
  188. data/app/views/decidim/action_delegator/consultations/questions/_vote_delegated_active.html.erb +0 -32
  189. data/app/views/decidim/action_delegator/consultations/questions/_vote_delegated_finished.html.erb +0 -9
  190. data/app/views/decidim/action_delegator/consultations/questions/_vote_delegated_upcoming.html.erb +0 -8
  191. data/app/views/decidim/action_delegator/consultations/questions/_weight_results.html.erb +0 -8
  192. data/app/views/decidim/consultations/question_votes/_callout.html.erb +0 -47
  193. data/app/views/decidim/consultations/question_votes/update_vote_button.js.erb +0 -82
  194. data/lib/tasks/import_direct_verification.rake +0 -30
@@ -2,6 +2,8 @@
2
2
  en:
3
3
  activemodel:
4
4
  attributes:
5
+ csv_import:
6
+ csv_file: CSV file
5
7
  delegations_verifier:
6
8
  email: Email
7
9
  phone: Mobile phone number
@@ -13,12 +15,15 @@ en:
13
15
  name: Membership type
14
16
  name_help: Membership type
15
17
  setting:
16
- decidim_consultation_id: Consultation
18
+ active: Active
17
19
  max_grants: Maximum vote delegations a participant can receive
18
20
  phone_freezed: Use phone number from the census. Don't allow participants
19
21
  to edit it.
20
22
  verify_with_sms: Verify with SMS
21
23
  errors:
24
+ messages:
25
+ only_one_active_setting_per_phone_required: There can only be one active setting
26
+ with phone verification at a time.
22
27
  models:
23
28
  delegations_verifier:
24
29
  attributes:
@@ -31,13 +36,8 @@ en:
31
36
  decidim:
32
37
  action_delegator:
33
38
  admin:
34
- consultations:
35
- results:
36
- ongoing_consultation: This consultations is still ongoing. Be aware that
37
- results may change as more people vote.
38
- title: Results by answer, membership type and weight
39
- weighted_results:
40
- title: Results by answer summing membership weights
39
+ census:
40
+ setting_group: Setting group
41
41
  delegations:
42
42
  create:
43
43
  error: There was a problem creating the delegation
@@ -57,21 +57,16 @@ en:
57
57
  actions:
58
58
  csv_import: Import via csv
59
59
  new_delegation: New delegation
60
- consultation: Consultation
61
60
  created_at: Created at
62
- delete: Delete
63
61
  description_html: This is the current delegations for this consultation
64
62
  grantee: Grantee (to)
65
63
  grantee_voted: Grantee has voted in behalf of granter?
66
64
  granter: Granter (from)
67
- granter_voted: Granter has voted?
68
- title: User vote delegations
69
65
  new:
70
66
  grantee: Grantee (to)
71
67
  granter: Granter (from)
72
68
  save: Create
73
69
  select_member: Select member
74
- title: New delegation
75
70
  invite_participants:
76
71
  invite_all_users:
77
72
  error: There was an error inviting the users
@@ -95,6 +90,9 @@ en:
95
90
  required_fields: 'Required fields: granter email, grantee email'
96
91
  title: Import delegations
97
92
  title_example: 'Example:'
93
+ upload_button: Upload CSV file
94
+ upload_help: 'Must be a file in CSV format with a header. Required columns:
95
+ from, to.'
98
96
  upload_instructions: Must be a file in CSV format with a header.
99
97
  manage_participants:
100
98
  create:
@@ -113,13 +111,22 @@ en:
113
111
  required_fields: 'Required fields: %{authorization_method}'
114
112
  title: Import participants
115
113
  title_example: 'Example:'
114
+ upload_button: Upload CSV file
115
+ upload_help: Must be a file in CSV format with a header.
116
116
  upload_instructions: Must be a file in CSV format with a header.
117
117
  menu:
118
- consultations_submenu:
118
+ action_delegator_menu:
119
+ delegations: Delegations
120
+ main: Main
121
+ participants: Participants
122
+ ponderations: Ponderations
123
+ settings: Settings
124
+ delegations: Corporate Governance
125
+ elections_submenu:
119
126
  by_answer: By answer
120
127
  by_type_and_weight: By type and weight
121
- sum_of_weights: By sum of weights
122
- delegations: Corporate Governance
128
+ sum_of_weights: Sum of weights
129
+ totals: Totals
123
130
  participants: Participants
124
131
  participants:
125
132
  create:
@@ -130,7 +137,6 @@ en:
130
137
  success: Participant successfully destroyed
131
138
  edit:
132
139
  save: Save
133
- title: Edit participant
134
140
  index:
135
141
  actions:
136
142
  csv_import: Import CSV
@@ -149,12 +155,10 @@ en:
149
155
  phone: Phone
150
156
  ponderation: Ponderation type
151
157
  send_invitation_link: Click here to send an invitation to them
152
- title: Census
153
158
  user: Name
154
159
  voted: Has voted?
155
160
  new:
156
161
  save: Create
157
- title: New participant
158
162
  remove_census:
159
163
  confirm: Are you sure you want to remove the census? This operation cannot
160
164
  be undone
@@ -179,7 +183,6 @@ en:
179
183
  success: Ponderation destroyed successfully
180
184
  edit:
181
185
  save: Save
182
- title: Edit ponderation type
183
186
  form:
184
187
  name_help: Member type, e.g. "member", "associate", "supporter". Must
185
188
  be unique.
@@ -192,7 +195,6 @@ en:
192
195
  created_at: Created at
193
196
  name: Membership Type
194
197
  num_users: Census total
195
- title: Ponderations
196
198
  weight: Vote weight
197
199
  new:
198
200
  save: Create
@@ -205,8 +207,9 @@ en:
205
207
  both: Email and phone number
206
208
  email: Only email
207
209
  phone: Only phone number
208
- authorization_method_help: |
210
+ authorization_method_help_html: |
209
211
  Available options are:
212
+ <br><br>
210
213
  <ul>
211
214
  <li><b>Only phone number:</b> Uses SMS verification. Participants must input their phone number that matches the census.</li>
212
215
  <li><b>Only email:</b> Participant's email must match the census.</li>
@@ -225,7 +228,6 @@ en:
225
228
  success: Setting successfully destroyed
226
229
  edit:
227
230
  save: Save
228
- title: Edit delegation group
229
231
  form:
230
232
  max_grants: Maximum delegations per user
231
233
  index:
@@ -234,19 +236,22 @@ en:
234
236
  delegations: Edit the delegations
235
237
  new_setting: New configuration
236
238
  ponderate: Set weights for vote ponderation
239
+ active: Active
237
240
  authorization_method: Authorization method
238
241
  census: Census total
239
- consultation: Consultation
240
242
  created_at: Created at
241
243
  delegations: Delegations
242
244
  description_html: |
243
- 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.
244
- <br>
245
- Each group can be configured with a different number of maximum delegations per user, different user delegations grants and different sets of ponderation types.
245
+ <ul>
246
+ <li>This module is designed for organizations that require a robust system for managing participant delegations</li>
247
+ <li><b>Features:</b> fully managed census, delegations of participants and weights by type of member. Verification by SMS, email or both. Using a census is optional.</li>
248
+ <li>Each entry can be used as a unique <b>delegation group</b> with a different number of maximum delegations per user, different user delegations grants and different sets of ponderation types.</li>
249
+ <li><b>Usage:</b> After configuring a delegation group, you can use the <b>Corporate Governance Verifier</b> to ensure all participants are properly authorized in whatever component you require. Also, make sure to use the <b>Corporate Governance census</b> while configuring an election.</li>
250
+ </ul>
246
251
  max_grants: Max delegations/user
252
+ name: Name
247
253
  open: Open
248
254
  ponderations: Ponderation types
249
- state: State
250
255
  title: Corporate Governance
251
256
  new:
252
257
  save: Create
@@ -255,14 +260,8 @@ en:
255
260
  all_users_authorized_html: All participants are verified by the <i>Corporate
256
261
  Governance Verifier</i>.
257
262
  all_users_registered_html: All participants are registered into the platform.
263
+ applies_to: Applies to the following voting spaces
258
264
  click_to_fix: Click here to automatically fix this
259
- consultation_questions_all_verified_html: All questions are restricted
260
- by the <i>Corporate Governance Verifier</i>.
261
- consultation_questions_missing_verifier_html: There are %{count} questions
262
- that are not restricted by the <i>Corporate Governance Verifier</i>.
263
- <b>Without it, anyone will be able to vote on them.</b> <em>This is
264
- ok if you are using other authorization methods or everyone is allowed
265
- to vote.</em>
266
265
  missing_authorizations_html: There are %{count} participants that are
267
266
  not verified by the <i>Corporate Governance Verifier</i>. <em>This is
268
267
  ok if these participants have their votes delegated to others or you
@@ -278,14 +277,11 @@ en:
278
277
  is allowed to vote.</em>
279
278
  no_ponderations_html: There are no vote ponderations. <b>All users will
280
279
  have the same weight on their votes</b>
280
+ no_resources_found: No voting spaces are using this configuration!
281
281
  participant: participant
282
282
  user: user
283
283
  users_need_sync_html: The participants list needs to be synchronized.
284
284
  <b>Consultation results might be wrong!</b>
285
- state:
286
- closed: Closed
287
- ongoing: Ongoing
288
- pending: Pending
289
285
  update:
290
286
  error: There was a problem updating the settings
291
287
  success: Settings saved successfully
@@ -298,19 +294,69 @@ en:
298
294
  reach out if it's not correct.
299
295
  delegations:
300
296
  has_delegations: Delegate vote made
301
- link: "\U0001F449 You have delegations granted"
297
+ link: "👉 You have delegations granted"
302
298
  delegations_authorizer:
303
299
  email: We are using the email %{email} to verify your identity. If you think
304
300
  this is wrong, please contact us.
305
- no_setting: No delegation group found for this consultation. Please contact
306
- the admin to fix it.
307
- not_in_census: You are not in the census
301
+ inactive_setting_html: The census "%{census}" is not active. You can try to
302
+ <a href="%{renew_path}" class="underline">renew your verification</a>. Otherwise,
303
+ please contact the administrator if you think this is a mistake.
304
+ no_setting_html: It seems that you do not belong to the current census. You
305
+ can try to <a href="%{renew_path}" class="underline">renew your verification</a>.
306
+ Otherwise, please contact the administrator if you think this is a mistake.
307
+ not_in_census_html: It seems that you do not belong to the census "%{census}".
308
+ You can try to <a href="%{renew_path}" class="underline">renew your verification</a>.
309
+ Otherwise, please contact the administrator if you think this is a mistake.
308
310
  phone: We are using the phone %{phone} to verify your identity. If you think
309
311
  this is wrong, please contact us.
310
- delegations_modal:
311
- callout: Remember, you are voting on behalf of
312
- contextual_help: 'You have been granted the vote from:'
313
- title: 'Consultation: granted delegations'
312
+ elections:
313
+ admin:
314
+ dashboard:
315
+ questions_table:
316
+ delegated_votes: Delegated votes
317
+ participants: Participants
318
+ participants_count:
319
+ one: 1 participant
320
+ other: "%{count} participants"
321
+ unweighted_votes: Unweighted votes
322
+ weight: Weight
323
+ weighted_votes: Weighted votes
324
+ results_type_info:
325
+ by_type_and_weight_html: <p>The results shown below are broken down
326
+ by membership type and weighted by the membership weights defined
327
+ in the Corporate Governance settings.</p> <p>Each response option
328
+ shows the number of votes it received from each membership type but
329
+ no weights are applied in this view.</p> <p>For example, if option
330
+ A received 2 votes from members with weight "3.0" and 1 vote from
331
+ a member with weight "1.0", the results will show 2 votes from members
332
+ with weight "3.0" and 1 vote from members with weight "1.0".</p> <p>⚠️
333
+ These results are not shown to the public.</p>
334
+ normal_count_html: "<p>These results are calculated by counting each
335
+ vote equally, regardless of the membership weight of the participant
336
+ that cast it.</p> <p>⚠️ These results are not shown to the public.</p>"
337
+ sum_of_weights_html: <p>The results shown below are weighted by the
338
+ membership weights defined in the Corporate Governance settings.</p>
339
+ <p>Each vote is multiplied by the weight of the member who cast it.</p>
340
+ <p>For example, if a member with weight "3.0" votes for option A,
341
+ and a member with weight "1.0" votes for option B, the results will
342
+ show 3 votes for option A and 1 vote for option B.</p> <p><strong>⚠️
343
+ These are the results shown to the public.</strong></p>
344
+ title: How to interpret these results?
345
+ totals_html: "<p>The results shown below show the totals for each question,
346
+ summing all the votes received by each response option applying the
347
+ membership weights and not applying them.</p> <p>Also, you can see
348
+ the number of participants and how many delegated votes were cast
349
+ for each option.</p> <p>⚠️ These results are not shown to the public.</p>"
350
+ delegation_buttons:
351
+ delegations_active: You have delegated votes.
352
+ per_question_delegations: 'You can vote on behalf of the following participants
353
+ in this election:'
354
+ vote_for: Vote on behalf of %{name}
355
+ votes:
356
+ delegated_voting: You are voting on behalf of %{name}
357
+ edit_vote_for: Edit vote for %{name}
358
+ self_voting: You are voting for yourself (%{name}).
359
+ waiting_for: Continue voting on behalf of %{name}
314
360
  import_mailer:
315
361
  import:
316
362
  errors_present: There were errors in the importation
@@ -333,7 +379,6 @@ en:
333
379
  the link below to confirm your participation.
334
380
  confirm: Confirm participation
335
381
  greeting: Hello %{recipient},
336
- name: Decidim ActionDelegator cooperatives module
337
382
  participants_csv_importer:
338
383
  import:
339
384
  error: There was a problem importing the participants
@@ -345,14 +390,6 @@ en:
345
390
  ponderation_not_found: Ponderation type not found
346
391
  skip_import_info: Participant already exists %{with_mismatched_fields}
347
392
  with_mismatched_fields: " with mismatched fields: %{fields}"
348
- questions:
349
- callout_link_text: Review the summary of your vote here
350
- callout_text: You have answered %{voted} from a total of %{total} questions.
351
- modal:
352
- modal_table_header_answer: Did you answer?
353
- modal_table_header_question: Question
354
- modal_votes_title: Your votes in "%{title}"
355
- question_not_answered: No, take me there
356
393
  sms_message: Your verification code is %{code}
357
394
  user_delegations:
358
395
  index:
@@ -374,11 +411,14 @@ en:
374
411
  new:
375
412
  authorize: Authorize my account
376
413
  missing_phone_error: Missing membership phone
414
+ no_resources_found: No resources found, If you think this is a mistake,
415
+ please contact the administrator (it is possible that there is nothing
416
+ active right now).
377
417
  not_in_census: We're sorry but you can't be authorized because your
378
418
  email is not in the census. Please contact the admin if you feel this
379
419
  is a mistake.
380
420
  participate_in: 'This authorization allows you to participate in the
381
- following consultations: %{consultations}'
421
+ following resources:'
382
422
  phone_warning: This phone number has been imported by the admin. Please,
383
423
  reach out if it's not correct.
384
424
  send_code: Send verification code
@@ -390,29 +430,28 @@ en:
390
430
  invite: Send invitation
391
431
  invite_all: Send invitations to non-existing users
392
432
  resend: Resend invitation
393
- consultations:
394
- results:
395
- default_metadata: "(membership data not available)"
396
- export: Export
397
- export_filename: consultation_results
398
- membership_type: Membership type
399
- membership_weight: Weight
400
- total_delegates: "%{count} delegated votes"
401
433
  authorization_handlers:
402
434
  admin:
403
435
  delegations_verifier:
404
436
  help:
405
- - A verification method for delegate voting
437
+ - A verification method for delegate voting, weighted voting and fully managed
438
+ census.
406
439
  delegations_verifier:
407
440
  explanation: Verified users with this method can delegate votes to other users
408
441
  fields:
409
442
  phone: Phone number
443
+ setting: Setting
444
+ setting_ids: Settings
410
445
  name: Corporate Governance
411
- resources:
412
- question:
413
- actions:
414
- comment: Comment
415
- vote: Vote
446
+ elections:
447
+ censuses:
448
+ action_delegator_census:
449
+ authorizer_handler_admin_callout_html: Choose the "Corporate Governance"
450
+ authorization method if you want to use the participants list from the
451
+ chosen setting group to validate who can vote.<br> You can also use another
452
+ authorization method if your source of census is external or if you don't
453
+ want to use a census at all (and everyone registered can vote).
454
+ label: Corporate Governance census
416
455
  verifications:
417
456
  authorizations:
418
457
  first_login:
@@ -424,9 +463,5 @@ en:
424
463
  subject: You have been invited to participate in the consultation
425
464
  layouts:
426
465
  decidim:
427
- admin:
428
- question:
429
- attachments: Attachments
430
- categories: Categories
431
466
  user_profile:
432
467
  vote_delegations: Vote delegations