decidim-proposals 0.20.1 → 0.23.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (266) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/admin/decidim_proposals_manifest.js +1 -0
  3. data/app/assets/images/decidim/gamification/badges/accepted_proposals.svg +1 -234
  4. data/app/assets/images/decidim/gamification/badges/proposal_votes.svg +1 -95
  5. data/app/assets/images/decidim/gamification/badges/proposals.svg +1 -229
  6. data/app/assets/images/decidim/proposals/icon.svg +1 -3
  7. data/app/assets/javascripts/decidim/proposals/add_proposal.js.es6 +6 -0
  8. data/app/assets/javascripts/decidim/proposals/admin/proposals.es6 +24 -11
  9. data/app/assets/javascripts/decidim/proposals/admin/proposals_form.js.es6 +3 -5
  10. data/app/assets/javascripts/decidim/proposals/admin/proposals_picker.js.es6 +35 -0
  11. data/app/cells/decidim/proposals/collaborative_draft_cell.rb +1 -1
  12. data/app/cells/decidim/proposals/collaborative_draft_link_to_proposal_cell.rb +1 -1
  13. data/app/cells/decidim/proposals/collaborative_draft_m/footer.erb +1 -1
  14. data/app/cells/decidim/proposals/collaborative_draft_m_cell.rb +1 -1
  15. data/app/cells/decidim/proposals/cost_report/show.erb +35 -0
  16. data/app/cells/decidim/proposals/cost_report_cell.rb +42 -0
  17. data/app/cells/decidim/proposals/highlighted_proposals_for_component/show.erb +3 -3
  18. data/app/cells/decidim/proposals/highlighted_proposals_for_component_cell.rb +1 -1
  19. data/app/cells/decidim/proposals/irreversible_action_modal/show.erb +2 -2
  20. data/app/cells/decidim/proposals/irreversible_action_modal_cell.rb +1 -1
  21. data/app/cells/decidim/proposals/participatory_text_proposal/buttons.erb +3 -3
  22. data/app/cells/decidim/proposals/participatory_text_proposal_cell.rb +2 -2
  23. data/app/cells/decidim/proposals/proposal_cell.rb +1 -1
  24. data/app/cells/decidim/proposals/proposal_m/footer.erb +4 -1
  25. data/app/cells/decidim/proposals/proposal_m_cell.rb +37 -9
  26. data/app/cells/decidim/proposals/proposal_tags/show.erb +18 -10
  27. data/app/cells/decidim/proposals/proposal_tags_cell.rb +5 -0
  28. data/app/cells/decidim/proposals/proposals_picker/proposals.erb +12 -0
  29. data/app/cells/decidim/proposals/proposals_picker/show.erb +14 -0
  30. data/app/cells/decidim/proposals/proposals_picker_cell.rb +72 -0
  31. data/app/commands/decidim/proposals/admin/answer_proposal.rb +24 -46
  32. data/app/commands/decidim/proposals/admin/assign_proposals_to_valuator.rb +61 -0
  33. data/app/commands/decidim/proposals/admin/create_proposal.rb +10 -3
  34. data/app/commands/decidim/proposals/admin/create_proposal_note.rb +15 -0
  35. data/app/commands/decidim/proposals/admin/notify_proposal_answer.rb +85 -0
  36. data/app/commands/decidim/proposals/admin/publish_answers.rb +67 -0
  37. data/app/commands/decidim/proposals/admin/publish_participatory_text.rb +6 -1
  38. data/app/commands/decidim/proposals/admin/unassign_proposals_from_valuator.rb +62 -0
  39. data/app/commands/decidim/proposals/admin/update_participatory_text.rb +10 -2
  40. data/app/commands/decidim/proposals/admin/update_proposal.rb +5 -3
  41. data/app/commands/decidim/proposals/admin/update_proposal_scope.rb +75 -0
  42. data/app/commands/decidim/proposals/create_collaborative_draft.rb +1 -1
  43. data/app/commands/decidim/proposals/create_proposal.rb +7 -3
  44. data/app/commands/decidim/proposals/gallery_methods.rb +2 -51
  45. data/app/commands/decidim/proposals/publish_collaborative_draft.rb +2 -2
  46. data/app/commands/decidim/proposals/update_proposal.rb +25 -9
  47. data/app/controllers/concerns/decidim/proposals/admin/filterable.rb +82 -0
  48. data/app/controllers/concerns/decidim/proposals/admin/picker.rb +21 -0
  49. data/app/controllers/concerns/decidim/proposals/orderable.rb +1 -1
  50. data/app/controllers/decidim/proposals/admin/proposal_answers_controller.rb +16 -6
  51. data/app/controllers/decidim/proposals/admin/proposal_notes_controller.rb +8 -9
  52. data/app/controllers/decidim/proposals/admin/proposals_controller.rb +107 -31
  53. data/app/controllers/decidim/proposals/admin/valuation_assignments_controller.rb +58 -0
  54. data/app/controllers/decidim/proposals/collaborative_drafts_controller.rb +10 -3
  55. data/app/controllers/decidim/proposals/proposals_controller.rb +30 -10
  56. data/app/controllers/decidim/proposals/versions_controller.rb +9 -16
  57. data/app/controllers/decidim/proposals/{proposal_widgets_controller.rb → widgets_controller.rb} +2 -2
  58. data/app/events/decidim/proposals/admin/proposal_note_created_event.rb +27 -0
  59. data/app/events/decidim/proposals/admin/update_proposal_scope_event.rb +11 -0
  60. data/app/forms/decidim/proposals/admin/import_participatory_text_form.rb +3 -1
  61. data/app/forms/decidim/proposals/admin/participatory_text_proposal_form.rb +20 -0
  62. data/app/forms/decidim/proposals/admin/preview_participatory_text_form.rb +2 -2
  63. data/app/forms/decidim/proposals/admin/proposal_answer_form.rb +27 -2
  64. data/app/forms/decidim/proposals/admin/proposal_base_form.rb +136 -0
  65. data/app/forms/decidim/proposals/admin/proposal_form.rb +6 -117
  66. data/app/forms/decidim/proposals/admin/valuation_assignment_form.rb +37 -0
  67. data/app/forms/decidim/proposals/proposal_form.rb +25 -12
  68. data/app/forms/decidim/proposals/proposal_wizard_create_step_form.rb +13 -1
  69. data/app/helpers/decidim/proposals/admin/filterable_helper.rb +17 -0
  70. data/app/helpers/decidim/proposals/admin/proposal_bulk_actions_helper.rb +35 -0
  71. data/app/helpers/decidim/proposals/admin/proposal_rankings_helper.rb +63 -0
  72. data/app/helpers/decidim/proposals/admin/proposals_helper.rb +124 -0
  73. data/app/helpers/decidim/proposals/admin/proposals_picker_helper.rb +30 -0
  74. data/app/helpers/decidim/proposals/application_helper.rb +54 -38
  75. data/app/helpers/decidim/proposals/collaborative_draft_helper.rb +9 -9
  76. data/app/helpers/decidim/proposals/control_version_helper.rb +1 -37
  77. data/app/helpers/decidim/proposals/proposal_cells_helper.rb +1 -1
  78. data/app/helpers/decidim/proposals/proposal_endorsements_helper.rb +0 -145
  79. data/app/helpers/decidim/proposals/proposal_votes_helper.rb +2 -2
  80. data/app/helpers/decidim/proposals/proposal_wizard_helper.rb +24 -7
  81. data/app/helpers/decidim/proposals/proposals_helper.rb +24 -0
  82. data/app/models/decidim/proposals/collaborative_draft.rb +2 -2
  83. data/app/models/decidim/proposals/participatory_text.rb +3 -0
  84. data/app/models/decidim/proposals/proposal.rb +152 -42
  85. data/app/models/decidim/proposals/valuation_assignment.rb +24 -0
  86. data/app/permissions/decidim/proposals/admin/permissions.rb +77 -11
  87. data/app/permissions/decidim/proposals/permissions.rb +1 -22
  88. data/app/presenters/decidim/proposals/admin_log/proposal_presenter.rb +1 -1
  89. data/app/presenters/decidim/proposals/admin_log/valuation_assignment_presenter.rb +51 -0
  90. data/app/presenters/decidim/proposals/admin_log/value_types/proposal_title_body_presenter.rb +6 -1
  91. data/app/presenters/decidim/proposals/admin_log/value_types/valuator_role_user_presenter.rb +19 -0
  92. data/app/presenters/decidim/proposals/collaborative_draft_presenter.rb +2 -28
  93. data/app/presenters/decidim/proposals/log/valuation_assignment_presenter.rb +22 -0
  94. data/app/presenters/decidim/proposals/official_author_presenter.rb +1 -29
  95. data/app/presenters/decidim/proposals/proposal_presenter.rb +79 -5
  96. data/app/queries/decidim/proposals/metrics/accepted_proposals_metric_manage.rb +1 -2
  97. data/app/queries/decidim/proposals/metrics/endorsements_metric_manage.rb +15 -12
  98. data/app/queries/decidim/proposals/metrics/proposal_participants_metric_measure.rb +5 -4
  99. data/app/queries/decidim/proposals/metrics/proposals_metric_manage.rb +2 -8
  100. data/app/queries/decidim/proposals/metrics/votes_metric_manage.rb +3 -9
  101. data/app/queries/decidim/proposals/similar_proposals.rb +4 -4
  102. data/app/services/decidim/proposals/collaborative_draft_search.rb +8 -10
  103. data/app/services/decidim/proposals/diff_renderer.rb +17 -5
  104. data/app/services/decidim/proposals/proposal_builder.rb +9 -3
  105. data/app/services/decidim/proposals/proposal_search.rb +11 -69
  106. data/app/types/decidim/proposals/proposal_input_filter.rb +29 -0
  107. data/app/types/decidim/proposals/proposal_input_sort.rb +22 -0
  108. data/app/types/decidim/proposals/proposal_type.rb +34 -13
  109. data/app/types/decidim/proposals/proposals_type.rb +22 -15
  110. data/app/validators/proposal_length_validator.rb +38 -0
  111. data/app/views/decidim/proposals/admin/participatory_texts/index.html.erb +9 -1
  112. data/app/views/decidim/proposals/admin/proposal_answers/_form.html.erb +35 -0
  113. data/app/views/decidim/proposals/admin/proposal_notes/_form.html.erb +1 -1
  114. data/app/views/decidim/proposals/admin/proposal_notes/_proposal_notes.html.erb +3 -3
  115. data/app/views/decidim/proposals/admin/proposals/_bulk-actions.html.erb +8 -2
  116. data/app/views/decidim/proposals/admin/proposals/_form.html.erb +8 -28
  117. data/app/views/decidim/proposals/admin/proposals/_proposal-tr.html.erb +26 -27
  118. data/app/views/decidim/proposals/admin/proposals/bulk_actions/_assign_to_valuator.html.erb +15 -0
  119. data/app/views/decidim/proposals/admin/proposals/bulk_actions/_dropdown.html.erb +21 -1
  120. data/app/views/decidim/proposals/admin/proposals/bulk_actions/_publish_answers.html.erb +14 -0
  121. data/app/views/decidim/proposals/admin/proposals/bulk_actions/_scope-change.html.erb +25 -0
  122. data/app/views/decidim/proposals/admin/proposals/bulk_actions/_unassign_from_valuator.html.erb +15 -0
  123. data/app/views/decidim/proposals/admin/proposals/index.html.erb +18 -9
  124. data/app/views/decidim/proposals/admin/proposals/publish_answers.js.erb +12 -0
  125. data/app/views/decidim/proposals/admin/proposals/show.html.erb +186 -0
  126. data/app/views/decidim/proposals/admin/proposals/update_category.js.erb +3 -2
  127. data/app/views/decidim/proposals/admin/proposals/update_scope.js.erb +27 -0
  128. data/app/views/decidim/proposals/collaborative_drafts/_edit_form_fields.html.erb +11 -9
  129. data/app/views/decidim/proposals/collaborative_drafts/_filters.html.erb +10 -8
  130. data/app/views/decidim/proposals/collaborative_drafts/_new_collaborative_draft_button.html.erb +4 -4
  131. data/app/views/decidim/proposals/collaborative_drafts/_reject_request_access_form.html.erb +1 -1
  132. data/app/views/decidim/proposals/collaborative_drafts/_wizard_aside.html.erb +4 -2
  133. data/app/views/decidim/proposals/collaborative_drafts/compare.html.erb +2 -0
  134. data/app/views/decidim/proposals/collaborative_drafts/complete.html.erb +2 -0
  135. data/app/views/decidim/proposals/collaborative_drafts/edit.html.erb +3 -1
  136. data/app/views/decidim/proposals/collaborative_drafts/index.html.erb +4 -2
  137. data/app/views/decidim/proposals/collaborative_drafts/new.html.erb +4 -0
  138. data/app/views/decidim/proposals/collaborative_drafts/show.html.erb +29 -30
  139. data/app/views/decidim/proposals/proposals/_edit_form_fields.html.erb +52 -22
  140. data/app/views/decidim/proposals/proposals/_endorsements_card_row.html.erb +0 -16
  141. data/app/views/decidim/proposals/proposals/_filters.html.erb +18 -16
  142. data/app/views/decidim/proposals/proposals/_proposal_badge.html.erb +1 -4
  143. data/app/views/decidim/proposals/proposals/_proposal_preview.html.erb +1 -11
  144. data/app/views/decidim/proposals/proposals/_proposal_similar.html.erb +2 -2
  145. data/app/views/decidim/proposals/proposals/_proposals.html.erb +14 -0
  146. data/app/views/decidim/proposals/proposals/_vote_button.html.erb +14 -7
  147. data/app/views/decidim/proposals/proposals/_wizard_aside.html.erb +4 -2
  148. data/app/views/decidim/proposals/proposals/_wizard_header.html.erb +4 -3
  149. data/app/views/decidim/proposals/proposals/compare.html.erb +2 -0
  150. data/app/views/decidim/proposals/proposals/complete.html.erb +2 -0
  151. data/app/views/decidim/proposals/proposals/edit.html.erb +3 -1
  152. data/app/views/decidim/proposals/proposals/edit_draft.html.erb +2 -0
  153. data/app/views/decidim/proposals/proposals/index.html.erb +6 -13
  154. data/app/views/decidim/proposals/proposals/new.html.erb +6 -2
  155. data/app/views/decidim/proposals/proposals/participatory_texts/_index.html.erb +1 -1
  156. data/app/views/decidim/proposals/proposals/participatory_texts/_proposal_vote_button.html.erb +10 -3
  157. data/app/views/decidim/proposals/proposals/participatory_texts/_view_index.html.erb +1 -1
  158. data/app/views/decidim/proposals/proposals/preview.html.erb +7 -8
  159. data/app/views/decidim/proposals/proposals/show.html.erb +62 -50
  160. data/app/views/decidim/proposals/versions/index.html.erb +14 -32
  161. data/app/views/decidim/proposals/versions/show.html.erb +16 -34
  162. data/config/locales/am-ET.yml +1 -0
  163. data/config/locales/ar.yml +62 -66
  164. data/config/locales/bg-BG.yml +237 -0
  165. data/config/locales/bg.yml +237 -0
  166. data/config/locales/ca.yml +176 -66
  167. data/config/locales/cs.yml +188 -78
  168. data/config/locales/da-DK.yml +1 -0
  169. data/config/locales/da.yml +1 -0
  170. data/config/locales/de.yml +169 -62
  171. data/config/locales/el.yml +876 -0
  172. data/config/locales/en.yml +179 -69
  173. data/config/locales/eo.yml +1 -0
  174. data/config/locales/es-MX.yml +173 -63
  175. data/config/locales/es-PY.yml +173 -63
  176. data/config/locales/es.yml +179 -69
  177. data/config/locales/et-EE.yml +1 -0
  178. data/config/locales/et.yml +1 -0
  179. data/config/locales/eu.yml +28 -61
  180. data/config/locales/fi-plain.yml +174 -64
  181. data/config/locales/fi.yml +210 -100
  182. data/config/locales/fr-CA.yml +906 -0
  183. data/config/locales/fr.yml +184 -66
  184. data/config/locales/ga-IE.yml +1 -0
  185. data/config/locales/gl.yml +28 -61
  186. data/config/locales/hr-HR.yml +1 -0
  187. data/config/locales/hr.yml +1 -0
  188. data/config/locales/hu.yml +135 -63
  189. data/config/locales/id-ID.yml +28 -60
  190. data/config/locales/is-IS.yml +14 -30
  191. data/config/locales/is.yml +274 -0
  192. data/config/locales/it.yml +166 -80
  193. data/config/locales/ja-JP.yml +865 -0
  194. data/config/locales/ja.yml +889 -0
  195. data/config/locales/ko-KR.yml +1 -0
  196. data/config/locales/ko.yml +1 -0
  197. data/config/locales/lt-LT.yml +1 -0
  198. data/config/locales/lt.yml +1 -0
  199. data/config/locales/lv.yml +858 -0
  200. data/config/locales/mt-MT.yml +1 -0
  201. data/config/locales/mt.yml +1 -0
  202. data/config/locales/nl.yml +151 -63
  203. data/config/locales/no.yml +62 -67
  204. data/config/locales/om-ET.yml +1 -0
  205. data/config/locales/pl.yml +525 -392
  206. data/config/locales/pt-BR.yml +30 -66
  207. data/config/locales/pt.yml +439 -330
  208. data/config/locales/ro-RO.yml +841 -0
  209. data/config/locales/ru.yml +14 -45
  210. data/config/locales/sk-SK.yml +896 -0
  211. data/config/locales/sk.yml +869 -0
  212. data/config/locales/sl.yml +26 -0
  213. data/config/locales/so-SO.yml +1 -0
  214. data/config/locales/sr-CS.yml +126 -0
  215. data/config/locales/sv.yml +285 -169
  216. data/config/locales/ti-ER.yml +1 -0
  217. data/config/locales/tr-TR.yml +28 -61
  218. data/config/locales/uk.yml +14 -45
  219. data/config/locales/vi-VN.yml +1 -0
  220. data/config/locales/vi.yml +1 -0
  221. data/config/locales/zh-CN.yml +885 -0
  222. data/config/locales/zh-TW.yml +1 -0
  223. data/db/migrate/20181003074440_fix_user_groups_ids_in_proposals_endorsements.rb +4 -0
  224. data/db/migrate/20191206154128_add_endorsements_counter_cache_to_proposals.rb +7 -0
  225. data/db/migrate/20200120215928_move_proposal_endorsements_to_core_endorsements.rb +54 -0
  226. data/db/migrate/20200120230130_drop_proposal_endorsements.rb +8 -0
  227. data/db/migrate/20200203111239_add_proposal_valuation_assignments.rb +12 -0
  228. data/db/migrate/20200210135152_add_costs_to_proposals.rb +9 -0
  229. data/db/migrate/20200212120110_sync_proposals_state_with_amendments_state.rb +28 -0
  230. data/db/migrate/20200227175922_add_state_published_at_to_proposals.rb +7 -0
  231. data/db/migrate/20200306123652_publish_existing_proposals_state.rb +15 -0
  232. data/db/migrate/20200708091228_move_proposals_fields_to_i18n.rb +86 -0
  233. data/db/migrate/20200730131631_move_proposal_endorsed_event_notifications_to_resource_endorsed_event.rb +20 -0
  234. data/db/migrate/20200827154156_add_commentable_counter_cache_to_proposals.rb +12 -0
  235. data/db/migrate/20200915151348_fix_proposals_data_to_ensure_title_and_body_are_hashes.rb +37 -0
  236. data/db/migrate/20201002085508_fix_proposals_data.rb +37 -0
  237. data/lib/decidim/content_renderers/proposal_renderer.rb +3 -1
  238. data/lib/decidim/proposals.rb +1 -0
  239. data/lib/decidim/proposals/admin_engine.rb +7 -3
  240. data/lib/decidim/proposals/component.rb +55 -28
  241. data/lib/decidim/proposals/engine.rb +3 -7
  242. data/lib/decidim/proposals/markdown_to_proposals.rb +2 -2
  243. data/lib/decidim/proposals/proposal_serializer.rb +3 -3
  244. data/lib/decidim/proposals/test/capybara_proposals_picker.rb +49 -0
  245. data/lib/decidim/proposals/test/factories.rb +100 -28
  246. data/lib/decidim/proposals/valuatable.rb +21 -0
  247. data/lib/decidim/proposals/version.rb +1 -1
  248. metadata +117 -55
  249. data/app/assets/javascripts/decidim/proposals/identity_selector_dialog.js.es6 +0 -56
  250. data/app/cells/decidim/proposals/endorsers_list/show.erb +0 -17
  251. data/app/cells/decidim/proposals/endorsers_list_cell.rb +0 -31
  252. data/app/commands/decidim/proposals/attachment_methods.rb +0 -43
  253. data/app/commands/decidim/proposals/endorse_proposal.rb +0 -59
  254. data/app/commands/decidim/proposals/unendorse_proposal.rb +0 -40
  255. data/app/controllers/decidim/proposals/proposal_endorsements_controller.rb +0 -60
  256. data/app/models/decidim/proposals/proposal_endorsement.rb +0 -37
  257. data/app/views/decidim/proposals/admin/proposal_answers/edit.html.erb +0 -22
  258. data/app/views/decidim/proposals/admin/proposal_notes/index.html.erb +0 -3
  259. data/app/views/decidim/proposals/admin/shared/_info_proposal.html.erb +0 -20
  260. data/app/views/decidim/proposals/proposal_endorsements/_identity.html.erb +0 -9
  261. data/app/views/decidim/proposals/proposal_endorsements/identities.html.erb +0 -12
  262. data/app/views/decidim/proposals/proposal_endorsements/update_buttons_and_counters.js.erb +0 -20
  263. data/app/views/decidim/proposals/proposal_widgets/show.html.erb +0 -4
  264. data/app/views/decidim/proposals/proposals/_endorsement_button.html.erb +0 -11
  265. data/app/views/decidim/proposals/proposals/_endorsement_identities_cabin.html.erb +0 -13
  266. data/app/views/decidim/proposals/versions/_version.html.erb +0 -20
@@ -8,6 +8,7 @@ en:
8
8
  category_id: Category
9
9
  decidim_scope_id: Scope
10
10
  has_address: Has address
11
+ scope_id: Scope
11
12
  state: State
12
13
  title: Title
13
14
  user_group_id: Create collaborative draft as
@@ -20,6 +21,7 @@ en:
20
21
  category_id: Category
21
22
  decidim_scope_id: Scope
22
23
  has_address: Has address
24
+ scope_id: Scope
23
25
  state: State
24
26
  suggested_hashtags: Suggested hashtags
25
27
  title: Title
@@ -32,6 +34,9 @@ en:
32
34
  proposals_import:
33
35
  import_proposals: Import proposals
34
36
  keep_authors: Keep original authors
37
+ valuation_assignment:
38
+ admin_log:
39
+ valuator_role_id: Valuator name
35
40
  errors:
36
41
  models:
37
42
  participatory_text:
@@ -43,16 +48,17 @@ en:
43
48
  attachment:
44
49
  needs_to_be_reattached: Needs to be reattached
45
50
  body:
51
+ cant_be_equal_to_template: cannot be equal to the template
46
52
  identical: AND title cannot be identical
47
53
  title:
48
54
  identical: AND body cannot be identical
49
55
  models:
50
56
  decidim/proposals/accepted_proposal_event: Proposal accepted
51
57
  decidim/proposals/admin/update_proposal_category_event: Proposal category changed
58
+ decidim/proposals/admin/update_proposal_scope_event: Proposal scope changed
52
59
  decidim/proposals/creation_enabled_event: Proposal creation enabled
53
60
  decidim/proposals/endorsing_enabled_event: Proposal endorsing enabled
54
61
  decidim/proposals/evaluating_proposal_event: Proposal is being evaluated
55
- decidim/proposals/proposal_endorsed_event: Proposal endorsed
56
62
  decidim/proposals/proposal_mentioned_event: Proposal mentioned
57
63
  decidim/proposals/publish_proposal_event: Proposal published
58
64
  decidim/proposals/rejected_proposal_event: Proposal rejected
@@ -65,9 +71,6 @@ en:
65
71
  decidim/proposals/proposal:
66
72
  one: Proposal
67
73
  other: Proposals
68
- decidim/proposals/proposal_endorsement:
69
- one: Endorsement
70
- other: Endorsements
71
74
  decidim/proposals/proposal_note:
72
75
  one: Note
73
76
  other: Notes
@@ -75,6 +78,35 @@ en:
75
78
  one: Support
76
79
  other: Supports
77
80
  decidim:
81
+ admin:
82
+ filters:
83
+ proposals:
84
+ category_id_eq:
85
+ label: Category
86
+ is_emendation_true:
87
+ label: Type
88
+ values:
89
+ 'false': Proposals
90
+ 'true': Amendments
91
+ scope_id_eq:
92
+ label: Scope
93
+ state_eq:
94
+ label: State
95
+ values:
96
+ accepted: Accepted
97
+ evaluating: Evaluating
98
+ published: Published
99
+ rejected: Rejected
100
+ validating: Technical validation
101
+ withdrawn: Withdrawn
102
+ state_null:
103
+ label: State
104
+ values:
105
+ 'true': Not answered
106
+ valuator_role_ids_has:
107
+ label: Assigned to valuator
108
+ search_placeholder:
109
+ id_string_or_title_cont: Search %{collection} by ID or title.
78
110
  components:
79
111
  proposals:
80
112
  actions:
@@ -86,6 +118,7 @@ en:
86
118
  name: Proposals
87
119
  settings:
88
120
  global:
121
+ allow_card_image: Allow card image
89
122
  amendments_enabled: Amendments enabled
90
123
  amendments_enabled_help: If active, configure Amendment features for each step.
91
124
  amendments_wizard_help_text: Amendments Wizard help text
@@ -94,12 +127,15 @@ en:
94
127
  can_accumulate_supports_beyond_threshold: Can accumulate supports beyond threshold
95
128
  collaborative_drafts_enabled: Collaborative drafts enabled
96
129
  comments_enabled: Comments enabled
130
+ comments_max_length: Comments max length (Leave 0 for default value)
97
131
  geocoding_enabled: Geocoding enabled
98
132
  minimum_votes_per_user: Minimum supports per user
133
+ new_proposal_body_template: New proposal body template
134
+ new_proposal_body_template_help: You can define prefilled text that the new Proposals will have
99
135
  new_proposal_help_text: New proposal help text
100
136
  official_proposals_enabled: Official proposals enabled
101
- participatory_texts_disabled_help: Cannot interact with this setting if there are existing proposals. Please, create a new `Proposals component` if you want to enable this feature or discard all imported proposals in the `Participatory Texts` menu if you want to disable it.
102
137
  participatory_texts_enabled: Participatory texts enabled
138
+ participatory_texts_enabled_readonly: Cannot interact with this setting if there are existing proposals. Please, create a new `Proposals component` if you want to enable this feature or discard all imported proposals in the `Participatory Texts` menu if you want to disable it.
103
139
  proposal_answering_enabled: Proposal answering enabled
104
140
  proposal_edit_before_minutes: Proposals can be edited by authors before this many minutes passes
105
141
  proposal_length: Maximum proposal body length
@@ -109,6 +145,8 @@ en:
109
145
  proposal_wizard_step_3_help_text: Proposal wizard "Complete" step help text
110
146
  proposal_wizard_step_4_help_text: Proposal wizard "Publish" step help text
111
147
  resources_permissions_enabled: Actions permissions can be set for each proposal
148
+ scope_id: Scope
149
+ scopes_enabled: Scopes enabled
112
150
  threshold_per_proposal: Threshold per proposal
113
151
  vote_limit: Support limit per participant
114
152
  step:
@@ -118,21 +156,32 @@ en:
118
156
  amendment_promotion_enabled_help: Emandation authors will be able to promote to Proposal the rejected emendation.
119
157
  amendment_reaction_enabled: Amendment reaction enabled
120
158
  amendment_reaction_enabled_help: Proposal's authors will be able to accept or reject Participant's emendations.
121
- amendments_visibility: Amendment visibility
159
+ amendments_visibility: Amendments visibility
160
+ amendments_visibility_choices:
161
+ all: Amendments are visible to all
162
+ participants: Amendments are visible only to their authors
122
163
  amendments_visibility_help: If the option "Amendments are visible only to their authors" is selected, participant must be logged in to see the amendments made.
123
164
  announcement: Announcement
165
+ answers_with_costs: Enable costs on proposal answers
124
166
  automatic_hashtags: Hashtags added to all proposals
125
167
  comments_blocked: Comments blocked
126
168
  creation_enabled: Proposal creation enabled
127
169
  endorsements_blocked: Endorsements blocked
128
170
  endorsements_enabled: Endorsements enabled
129
171
  proposal_answering_enabled: Proposal answering enabled
172
+ publish_answers_immediately: Publish proposal answers immediately
130
173
  suggested_hashtags: Hashtags suggested to participants for new proposals
131
174
  votes_blocked: Supports blocked
132
175
  votes_enabled: Supports enabled
133
176
  votes_hidden: Supports hidden (if supports are enabled, checking this will hide the number of supports)
134
177
  events:
135
178
  proposals:
179
+ admin:
180
+ proposal_note_created:
181
+ email_intro: Someone has left a note on the proposal "%{resource_title}". Check it out at <a href="%{admin_proposal_info_url}">the admin panel</a>
182
+ email_outro: You have received this notification because you can valuate the proposal.
183
+ email_subject: Someone left a note on proposal %{resource_title}.
184
+ notification_title: Someone has left a note on the proposal <a href="%{resource_path}">%{resource_title}</a>. Check it out at <a href="%{admin_proposal_info_path}">the admin panel</a>
136
185
  collaborative_draft_access_accepted:
137
186
  email_intro: '%{requester_name} has been accepted to access as a contributor of the <a href="%{resource_path}">%{resource_title}</a> collaborative draft.'
138
187
  email_outro: You have received this notification because you are a collaborator of <a href="%{resource_path}">%{resource_title}</a>.
@@ -184,11 +233,6 @@ en:
184
233
  email_outro: You have received this notification because you are following "%{resource_title}". You can unfollow it from the previous link.
185
234
  email_subject: A proposal you're following has been accepted
186
235
  notification_title: The <a href="%{resource_path}">%{resource_title}</a> proposal has been accepted.
187
- proposal_endorsed:
188
- email_intro: '%{endorser_name} %{endorser_nickname}, who you are following, has just endorsed the "%{resource_title}" proposal and we think it may be interesting to you. Check it out and contribute:'
189
- email_outro: You have received this notification because you are following %{endorser_nickname}. You can stop receiving notifications following the previous link.
190
- email_subject: "%{endorser_nickname} has endorsed a new proposal"
191
- notification_title: The <a href="%{resource_path}">%{resource_title}</a> proposal has been endorsed by <a href="%{endorser_path}">%{endorser_name} %{endorser_nickname}</a>.
192
236
  proposal_evaluating:
193
237
  affected_user:
194
238
  email_intro: 'Your proposal "%{resource_title}" is currently being evaluated. You can check for an answer in this page:'
@@ -201,7 +245,7 @@ en:
201
245
  email_subject: A proposal you're following is being evaluated
202
246
  notification_title: The <a href="%{resource_path}">%{resource_title}</a> proposal is being evaluated.
203
247
  proposal_mentioned:
204
- email_intro: Your proposal "%{mentioned_proposal_title}" has been mentioned <a href="%{resource_path}">in this space</a> in the comments.
248
+ email_intro: Your proposal "%{mentioned_proposal_title}" has been mentioned <a href="%{resource_url}">in this space</a> in the comments.
205
249
  email_outro: You have received this notification because you are an author of "%{resource_title}".
206
250
  email_subject: Your proposal "%{mentioned_proposal_title}" has been mentioned
207
251
  notification_title: Your proposal "%{mentioned_proposal_title}" has been mentioned <a href="%{resource_path}">in this space</a> in the comments.
@@ -231,6 +275,11 @@ en:
231
275
  email_outro: You have received this notification because you are the author of the proposal.
232
276
  email_subject: The %{resource_title} proposal category has been updated
233
277
  notification_title: The <a href="%{resource_path}">%{resource_title}</a> proposal category has been updated by an admin.
278
+ proposal_update_scope:
279
+ email_intro: 'An admin has updated the scope of your proposal "%{resource_title}", check it out in this page:'
280
+ email_outro: You have received this notification because you are the author of the proposal.
281
+ email_subject: The %{resource_title} proposal scope has been updated
282
+ notification_title: The <a href="%{resource_path}">%{resource_title}</a> proposal scope has been updated by an admin.
234
283
  voting_enabled:
235
284
  email_intro: 'You can support proposals in %{participatory_space_title}! Start participating in this page:'
236
285
  email_outro: You have received this notification because you are following %{participatory_space_title}. You can stop receiving notifications following the previous link.
@@ -294,15 +343,15 @@ en:
294
343
  proposals: Proposals
295
344
  participatory_spaces:
296
345
  highlighted_proposals:
297
- see_all: See all (%{count})
346
+ see_all: See all proposals (%{count})
298
347
  proposals:
299
348
  actions:
300
- answer: Answer
349
+ answer_proposal: Answer proposal
301
350
  edit_proposal: Edit proposal
302
351
  import: Import from another component
303
352
  new: New proposal
304
353
  participatory_texts: Participatory texts
305
- private_notes: Private notes
354
+ show: Show proposal
306
355
  title: Actions
307
356
  admin:
308
357
  actions:
@@ -328,14 +377,14 @@ en:
328
377
  info_1: The following sections have been converted to proposals. Now you can review and adjust them before publishing.
329
378
  publish_document: Publish document
330
379
  save_draft: Save draft
331
- title: PREVIEW PARTICIPATORY TEXT
380
+ title: Preview participatory text
332
381
  new_import:
333
382
  accepted_mime_types:
334
383
  md: Markdown
335
384
  odt: Odt
336
385
  bottom_hint: "(You will be able to preview and sort document sections)"
337
386
  document_legend: 'Add a document lesser than 2MB, each section until 3 levels deep will be parsed into Proposals. Suported formats are: %{valid_mime_types}'
338
- title: ADD DOCUMENT
387
+ title: Add document
339
388
  upload_document: Upload document
340
389
  publish:
341
390
  invalid: Could not publish proposals
@@ -347,7 +396,7 @@ en:
347
396
  update:
348
397
  success: Participatory text successfully updated.
349
398
  proposal_answers:
350
- edit:
399
+ form:
351
400
  accepted: Accepted
352
401
  answer_proposal: Answer
353
402
  evaluating: Evaluating
@@ -373,32 +422,73 @@ en:
373
422
  title: Update proposal
374
423
  update: Update
375
424
  form:
376
- add_images: Add images
377
425
  attachment_legend: "(Optional) Add an attachment"
378
426
  created_in_meeting: This proposal comes from a meeting
379
- gallery_legend: "(Optional) Add an image gallery"
380
427
  select_a_category: Select a category
381
428
  select_a_meeting: Select a meeting
382
429
  index:
383
430
  actions: Actions
431
+ assign_to_valuator: Assign to valuator
432
+ assign_to_valuator_button: Assign
384
433
  cancel: Cancel
385
434
  change_category: Change category
435
+ change_scope: Change scope
386
436
  merge: Merge into a new one
387
437
  merge_button: Merge
438
+ publish: Publish
439
+ publish_answers: Publish answers
388
440
  select_component: Select a component
389
441
  selected: selected
390
442
  split: Split proposals
391
443
  split_button: Split
392
444
  title: Proposals
445
+ unassign_from_valuator: Unassign from valuator
446
+ unassign_from_valuator_button: Unassign
393
447
  update: Update
448
+ update_scope_button: Update Scope
394
449
  new:
395
450
  create: Create
396
451
  title: Create proposal
452
+ publish_answers:
453
+ number_of_proposals: Answers for %{number} proposals will be published.
454
+ select_a_proposal: Please select a proposal
455
+ show:
456
+ amendments_count: Amendments count
457
+ assigned_valuators: Assigned valuators
458
+ authors: Authors
459
+ body: Body
460
+ comments_count: Comments count
461
+ comments_negative_count: Against
462
+ comments_neutral_count: Neutral
463
+ comments_positive_count: Favor
464
+ created_at: Creation date
465
+ documents: Documents
466
+ endorsements_count: Endorsements count
467
+ endorsements_ranking: Ranking by endorsements
468
+ endorsers: Endorsers
469
+ link: Link
470
+ n_more_endorsers:
471
+ one: and 1 more
472
+ other: and %{count} more
473
+ photos: Photos
474
+ proposals: Proposals
475
+ ranking: "%{ranking} of %{total}"
476
+ related_meetings: Related meetings
477
+ remove_assignment: Remove assignment
478
+ remove_assignment_confirmation: Are you sure you want to remove the valuator from this proposal?
479
+ valuators: Valuators
480
+ votes_count: Supports count
481
+ votes_ranking: Ranking by supports
397
482
  update_category:
398
- invalid: 'These proposals already had the %{category} category: %{proposals}.'
483
+ invalid: 'These proposals already had the %{subject_name} category: %{proposals}.'
399
484
  select_a_category: Please select a category
400
485
  select_a_proposal: Please select a proposal
401
- success: 'Proposals successfully updated to the %{category} category: %{proposals}.'
486
+ success: 'Proposals successfully updated to the %{subject_name} category: %{proposals}.'
487
+ update_scope:
488
+ invalid: 'These proposals already had the %{subject_name} scope: %{proposals}.'
489
+ select_a_proposal: Please select a proposal
490
+ select_a_scope: Please select a scope
491
+ success: 'Proposals successfully updated to the %{subject_name} scope: %{proposals}.'
402
492
  proposals_imports:
403
493
  create:
404
494
  invalid: There was a problem importing the proposals
@@ -416,19 +506,24 @@ en:
416
506
  create:
417
507
  invalid: There was a problem spliting the selected proposals.
418
508
  success: Successfully splitted the proposals into new ones.
419
- shared:
420
- info_proposal:
421
- body: Body
422
- created_at: Creation date
423
- proposal_votes_count: Supports count
424
- proposals: Proposals
509
+ valuation_assignments:
510
+ create:
511
+ invalid: There was an error assigning proposals to a valuator
512
+ success: Proposals assigned to a valuator successfully
513
+ delete:
514
+ invalid: There was an error unassigning proposals from a valuator
515
+ success: Valuator unassigned from proposals successfully
425
516
  admin_log:
426
517
  proposal:
427
518
  answer: "%{user_name} answered the %{resource_name} proposal on the %{space_name} space"
428
519
  create: "%{user_name} created the %{resource_name} proposal on the %{space_name} space as an official proposal"
520
+ publish_answer: "%{user_name} published the answer to %{resource_name} proposal on the %{space_name} space"
429
521
  update: "%{user_name} updated the %{resource_name} official proposal on the %{space_name} space"
430
522
  proposal_note:
431
523
  create: "%{user_name} left a private note on the %{resource_name} proposal on the %{space_name} space"
524
+ valuation_assignment:
525
+ create: "%{user_name} assigned the %{resource_name} proposal to a valuator"
526
+ delete: "%{user_name} unassigned a valuator from the %{proposal_title} proposal"
432
527
  answers:
433
528
  accepted: Accepted
434
529
  evaluating: Evaluating
@@ -436,17 +531,21 @@ en:
436
531
  rejected: Rejected
437
532
  withdrawn: Withdrawn
438
533
  application_helper:
534
+ filter_category_values:
535
+ all: All
439
536
  filter_origin_values:
440
537
  all: All
441
538
  citizens: Citizens
442
539
  meetings: Meetings
443
540
  official: Official
444
541
  user_groups: Groups
542
+ filter_scope_values:
543
+ all: All
445
544
  filter_state_values:
446
545
  accepted: Accepted
447
546
  all: All
448
547
  evaluating: Evaluating
449
- except_rejected: All except rejected
548
+ not_answered: Not answered
450
549
  rejected: Rejected
451
550
  filter_type_values:
452
551
  all: All
@@ -495,10 +594,10 @@ en:
495
594
  all: All
496
595
  amendment: Amendments
497
596
  category: Category
498
- category_prompt: Category Prompt
499
597
  open: Open
500
598
  published: Published
501
599
  related_to: Related to
600
+ scope: Scope
502
601
  search: Search
503
602
  state: Status
504
603
  withdrawn: Withdrawn
@@ -540,14 +639,11 @@ en:
540
639
  one: and %{count} more person
541
640
  other: and %{count} more people
542
641
  info-message: This is a <strong>collaborative draft</strong> for a proposal. This means that you can help their authors to shape the proposal using the comment section below or improve it directly by requesting access to edit it. Once the authors grant you access, you'll be able to make changes to this draft.
543
- of_versions: "(of %{number})"
544
642
  publish: Publish
545
643
  publish_info: Publish this version of the draft or
546
644
  published_proposal: published proposal
547
645
  request_access: Request access
548
646
  requested_access: Access requested
549
- see_other_versions: see other versions
550
- version: Version %{number}
551
647
  version_history: see version history for this proposal
552
648
  withdraw: withdraw the draft
553
649
  states:
@@ -557,15 +653,23 @@ en:
557
653
  update:
558
654
  error: There was a problem saving the collaborative draft.
559
655
  success: Collaborative draft successfully updated.
656
+ title: Edit collaborative draft
560
657
  wizard_aside:
561
658
  back: Back
659
+ back_from_collaborative_draft: Back to collaborative drafts
660
+ back_from_step_1: Back to collaborative drafts
661
+ back_from_step_2: Back to collaborative drafts
662
+ back_from_step_3: Back to compare collaborative drafts
663
+ back_from_step_4: Back to edit draft
562
664
  info: You are creating a <strong>collaborative draft</strong>.
563
665
  wizard_steps:
666
+ current_step: Current step
564
667
  see_steps: see steps
565
668
  step_1: Create your collaborative draft
566
669
  step_2: Compare with collaborative drafts
567
670
  step_3: Complete your collaborative draft
568
671
  step_of: Step %{current_step_num} of %{total_steps}
672
+ title: Collaborative draft creation steps
569
673
  create:
570
674
  error: There was a problem saving the proposal.
571
675
  success: Proposal successfully created. Saved as a Draft.
@@ -584,14 +688,16 @@ en:
584
688
  fields:
585
689
  category: Category
586
690
  comments: Comments
587
- endorsements: Endorsements
588
691
  id: ID
589
692
  notes: Notes
590
693
  official_proposal: Official proposal
694
+ published_answer: Published answer
591
695
  published_at: Published at
592
696
  scope: Scope
593
697
  state: Status
594
698
  title: Title
699
+ valuator: Valuator
700
+ valuators: Valuators
595
701
  votes: Votes
596
702
  new:
597
703
  limit_reached: You can't create new proposals since you've exceeded the limit.
@@ -601,19 +707,6 @@ en:
601
707
  amend: Amend
602
708
  comment: Comment
603
709
  comments: Comments
604
- endorse: Endorse
605
- proposal_endorsements:
606
- create:
607
- error: There was a problem endorsing the proposal.
608
- identities:
609
- done: Done
610
- select_identity: Select identity
611
- proposal_endorsements_helper:
612
- endorsement_button:
613
- already_endorsed: Endorsed
614
- endorse: Endorse
615
- render_endorsements_button_card_part:
616
- endorse: Endorse
617
710
  proposal_votes:
618
711
  create:
619
712
  error: There was a problem supporting the proposal.
@@ -630,8 +723,13 @@ en:
630
723
  one: "%{count} proposal"
631
724
  other: "%{count} proposals"
632
725
  edit:
726
+ add_documents: Documents
727
+ add_images: File
633
728
  attachment_legend: "(Optional) Add an attachment"
634
729
  back: Back
730
+ delete_document: Delete Document
731
+ delete_image: Delete Image
732
+ gallery_legend: "(Optional) Add an image to the proposal card"
635
733
  select_a_category: Please select a category
636
734
  send: Send
637
735
  title: Edit proposal
@@ -640,21 +738,18 @@ en:
640
738
  discard_confirmation: Are you sure you want to discard this proposal draft?
641
739
  send: Preview
642
740
  title: Edit Proposal Draft
643
- endorsement_identities_cabin:
644
- endorse: Endorse
645
- endorsements_card_row:
646
- comments: Comments
647
741
  filters:
648
742
  activity: My activity
649
743
  all: All
650
744
  amendment_type: Type
651
745
  category: Category
652
- category_prompt: Select a category
653
746
  my_proposals: My proposals
654
747
  origin: Origin
655
748
  related_to: Related to
749
+ scope: Scope
656
750
  search: Search
657
751
  state: Status
752
+ type: Type
658
753
  voted: Supported
659
754
  filters_small_view:
660
755
  close_modal: Close modal
@@ -697,11 +792,18 @@ en:
697
792
  proposal:
698
793
  creation_date: 'Creation: %{date}'
699
794
  view_proposal: View proposal
795
+ proposals:
796
+ empty: There is no proposal yet
797
+ empty_filters: There isn't any proposal with this criteria
700
798
  show:
799
+ answer: Answer
701
800
  back_to: Back to
801
+ back_to_list: Back to list
702
802
  changes_at_title: Amendment to "%{title}"
803
+ comments: Comments
703
804
  edit_proposal: Edit proposal
704
805
  endorsements_list: List of Endorsements
806
+ estimated_cost: Estimated cost
705
807
  hidden_endorsers_count:
706
808
  one: and %{count} more person
707
809
  other: and %{count} more people
@@ -714,13 +816,16 @@ en:
714
816
  proposal_accepted_reason: 'This proposal has been accepted because:'
715
817
  proposal_in_evaluation_reason: This proposal is being evaluated
716
818
  proposal_rejected_reason: 'This proposal has been rejected because:'
819
+ read_less: Read less
820
+ read_more: Read more
717
821
  report: Report
718
822
  withdraw_btn_hint: You can withdraw your proposal if you change your mind, as long as you have not received any support. The proposal is not deleted, it will appear in the list of withdrawn proposals.
719
- withdraw_confirmation: Are you sure you want to withdraw this proposal?
823
+ withdraw_confirmation_html: Are you sure you want to withdraw this proposal?<br><br><strong>This action cannot be cancelled!</strong>
720
824
  withdraw_proposal: Withdraw proposal
721
825
  tags:
722
- changed_from: "(changed from <u>%{previous_category}</u> by an administrator)"
723
- filed_as: Filed as
826
+ changed_from: "(changed from <u>%{previous_name}</u> by an administrator)"
827
+ update:
828
+ title: Update proposal
724
829
  vote_button:
725
830
  already_voted: Already supported
726
831
  already_voted_hover: Withdraw support
@@ -730,8 +835,8 @@ en:
730
835
  votes_blocked: Supports disabled
731
836
  votes_count:
732
837
  count:
733
- one: SUPPORT
734
- other: SUPPORTS
838
+ one: Support
839
+ other: Supports
735
840
  most_popular_proposal: Most popular proposal
736
841
  need_more_votes: Need more supports
737
842
  voting_rules:
@@ -752,17 +857,30 @@ en:
752
857
  votes: Supports
753
858
  wizard_aside:
754
859
  back: Back
860
+ back_from_step_1: Back to proposals
861
+ back_from_step_2: Back to proposals
862
+ back_from_step_3: Back to compare proposals
863
+ back_from_step_4: Back to edit draft
755
864
  info: You are creating a <strong>proposal</strong>.
756
865
  wizard_steps:
866
+ current_step: Current step
757
867
  see_steps: see steps
758
868
  step_1: Create your proposal
759
869
  step_2: Compare
760
870
  step_3: Complete
761
871
  step_4: Publish your proposal
762
872
  step_of: Step %{current_step_num} of %{total_steps}
873
+ title: Proposal creation steps
874
+ proposals_picker:
875
+ choose_proposals: Choose proposals
876
+ close: Close
877
+ more_proposals: There are %{number} more proposals. Refine your search to locate them.
878
+ no_proposals: No proposals match your search criteria or there isn't any proposals.
763
879
  publish:
764
880
  error: There was a problem publishing the proposal.
765
881
  success: Proposal successfully published.
882
+ publish_answers:
883
+ success: Proposals answers successfully published.
766
884
  update:
767
885
  error: There was a problem saving the proposal.
768
886
  success: Proposal successfully updated.
@@ -770,20 +888,12 @@ en:
770
888
  error: There was a problem saving the collaborative draft.
771
889
  success: Proposal draft successfully updated.
772
890
  versions:
773
- changes_at_title: Changes at "%{title}"
891
+ collaborative_drafts:
892
+ back_to_resource: Go back to collaborative draft
774
893
  index:
775
894
  title: Versions
776
- stats:
777
- back_to_collaborative_draft: Go back to collaborative draft
778
- back_to_proposal: Go back to proposal
779
- number_of_versions: Versions
780
- show_all_versions: Show all versions
781
- version_author: Version author
782
- version_created_at: Version created at
783
- version_number: Version number
784
- version_number_out_of_total: "%{current_version} out of %{total_count}"
785
- version:
786
- version_index: Version %{index}
895
+ proposals:
896
+ back_to_resource: Go back to proposal
787
897
  withdraw:
788
898
  errors:
789
899
  has_supports: This proposal can not be withdrawn because it already has supports.