decidim-plans 0.16.6 → 0.16.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/app/assets/javascripts/decidim/plans/admin/plans.js.es6 +93 -1
  4. data/app/assets/javascripts/decidim/plans/multifield/dynamic_fields.component.js.es6 +39 -0
  5. data/app/assets/javascripts/decidim/plans/multifield.js.es6 +1 -0
  6. data/app/cells/decidim/plans/plan_m/tags.erb +1 -0
  7. data/app/cells/decidim/plans/plan_m_cell.rb +1 -1
  8. data/app/cells/decidim/plans/tags/show.erb +7 -0
  9. data/app/cells/decidim/plans/tags/taggings.erb +3 -0
  10. data/app/cells/decidim/plans/tags_cell.rb +52 -0
  11. data/app/commands/decidim/plans/admin/answer_plan.rb +3 -0
  12. data/app/commands/decidim/plans/admin/create_tag.rb +44 -0
  13. data/app/commands/decidim/plans/admin/destroy_tag.rb +44 -0
  14. data/app/commands/decidim/plans/admin/update_plan_taggings.rb +53 -0
  15. data/app/commands/decidim/plans/admin/update_tag.rb +47 -0
  16. data/app/commands/decidim/plans/close_plan.rb +9 -1
  17. data/app/commands/decidim/plans/reopen_plan.rb +9 -1
  18. data/app/controllers/decidim/plans/admin/plans_controller.rb +32 -2
  19. data/app/controllers/decidim/plans/admin/tags_controller.rb +126 -0
  20. data/app/controllers/decidim/plans/plans_controller.rb +7 -2
  21. data/app/forms/decidim/plans/admin/tag_form.rb +22 -0
  22. data/app/forms/decidim/plans/admin/taggings_form.rb +20 -0
  23. data/app/helpers/decidim/plans/attached_proposals_helper.rb +18 -2
  24. data/app/helpers/decidim/plans/plan_cells_helper.rb +1 -1
  25. data/app/models/decidim/plans/plan.rb +14 -0
  26. data/app/models/decidim/plans/plan_tagging.rb +13 -0
  27. data/app/models/decidim/plans/tag.rb +20 -0
  28. data/app/permissions/decidim/plans/admin/permissions.rb +14 -4
  29. data/app/permissions/decidim/plans/permissions.rb +3 -1
  30. data/app/presenters/decidim/plans/plan_presenter.rb +4 -0
  31. data/app/queries/decidim/plans/component_plan_tags.rb +35 -0
  32. data/app/queries/decidim/plans/organization_tags.rb +25 -0
  33. data/app/services/decidim/plans/plan_search.rb +6 -0
  34. data/app/views/decidim/plans/admin/plans/_plan-tr.html.erb +13 -2
  35. data/app/views/decidim/plans/admin/plans/index.html.erb +9 -0
  36. data/app/views/decidim/plans/admin/plans/taggings.html.erb +67 -0
  37. data/app/views/decidim/plans/admin/tags/_form.html.erb +21 -0
  38. data/app/views/decidim/plans/admin/tags/edit.html.erb +7 -0
  39. data/app/views/decidim/plans/admin/tags/index.html.erb +52 -0
  40. data/app/views/decidim/plans/admin/tags/new.html.erb +7 -0
  41. data/app/views/decidim/plans/plans/_evaluation_modal.html.erb +22 -0
  42. data/app/views/decidim/plans/plans/_filters.html.erb +4 -0
  43. data/app/views/decidim/plans/plans/show.html.erb +9 -1
  44. data/app/views/decidim/plans/shared/_attachments.html.erb +2 -2
  45. data/app/views/decidim/plans/shared/_tags.html.erb +1 -0
  46. data/config/locales/en.yml +57 -2
  47. data/config/locales/fi.yml +57 -2
  48. data/config/locales/sv.yml +57 -2
  49. data/db/migrate/20190329161710_fix_plan_closing_workflow_states.rb +13 -0
  50. data/db/migrate/20190331141058_create_decidim_plans_tags_and_plan_taggings.rb +17 -0
  51. data/lib/decidim/content_parsers/plan_parser.rb +82 -0
  52. data/lib/decidim/content_renderers/plan_renderer.rb +33 -0
  53. data/lib/decidim/plans/admin_engine.rb +3 -0
  54. data/lib/decidim/plans/component.rb +11 -2
  55. data/lib/decidim/plans/engine.rb +6 -0
  56. data/lib/decidim/plans/test/factories.rb +17 -0
  57. data/lib/decidim/plans/version.rb +1 -1
  58. data/lib/decidim/plans.rb +8 -0
  59. metadata +29 -2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-plans
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.6
4
+ version: 0.16.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antti Hukkanen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-07 00:00:00.000000000 Z
11
+ date: 2019-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-core
@@ -127,6 +127,7 @@ files:
127
127
  - app/assets/javascripts/decidim/plans/admin/sections.js.es6
128
128
  - app/assets/javascripts/decidim/plans/multifield.js.es6
129
129
  - app/assets/javascripts/decidim/plans/multifield/component.js.es6
130
+ - app/assets/javascripts/decidim/plans/multifield/dynamic_fields.component.js.es6
130
131
  - app/assets/javascripts/decidim/plans/plans_form.js.es6
131
132
  - app/assets/javascripts/decidim/plans/proposal_picker.js.es6
132
133
  - app/assets/javascripts/decidim/plans/remaining_characters.es6
@@ -144,13 +145,21 @@ files:
144
145
  - app/cells/decidim/plans/plan_activity_cell.rb
145
146
  - app/cells/decidim/plans/plan_cell.rb
146
147
  - app/cells/decidim/plans/plan_m/footer.erb
148
+ - app/cells/decidim/plans/plan_m/tags.erb
147
149
  - app/cells/decidim/plans/plan_m_cell.rb
150
+ - app/cells/decidim/plans/tags/show.erb
151
+ - app/cells/decidim/plans/tags/taggings.erb
152
+ - app/cells/decidim/plans/tags_cell.rb
148
153
  - app/commands/decidim/plans/accept_access_to_plan.rb
149
154
  - app/commands/decidim/plans/admin/answer_plan.rb
150
155
  - app/commands/decidim/plans/admin/create_plan.rb
156
+ - app/commands/decidim/plans/admin/create_tag.rb
157
+ - app/commands/decidim/plans/admin/destroy_tag.rb
151
158
  - app/commands/decidim/plans/admin/export_plans_to_budgets.rb
152
159
  - app/commands/decidim/plans/admin/update_plan.rb
160
+ - app/commands/decidim/plans/admin/update_plan_taggings.rb
153
161
  - app/commands/decidim/plans/admin/update_sections.rb
162
+ - app/commands/decidim/plans/admin/update_tag.rb
154
163
  - app/commands/decidim/plans/attachment_methods.rb
155
164
  - app/commands/decidim/plans/close_plan.rb
156
165
  - app/commands/decidim/plans/create_plan.rb
@@ -169,6 +178,7 @@ files:
169
178
  - app/controllers/decidim/plans/admin/plan_answers_controller.rb
170
179
  - app/controllers/decidim/plans/admin/plans_controller.rb
171
180
  - app/controllers/decidim/plans/admin/sections_controller.rb
181
+ - app/controllers/decidim/plans/admin/tags_controller.rb
172
182
  - app/controllers/decidim/plans/application_controller.rb
173
183
  - app/controllers/decidim/plans/plan_collaborator_requests_controller.rb
174
184
  - app/controllers/decidim/plans/plan_widgets_controller.rb
@@ -191,6 +201,8 @@ files:
191
201
  - app/forms/decidim/plans/admin/plan_form.rb
192
202
  - app/forms/decidim/plans/admin/plan_sections_form.rb
193
203
  - app/forms/decidim/plans/admin/section_form.rb
204
+ - app/forms/decidim/plans/admin/tag_form.rb
205
+ - app/forms/decidim/plans/admin/taggings_form.rb
194
206
  - app/forms/decidim/plans/attachment_form.rb
195
207
  - app/forms/decidim/plans/content_form.rb
196
208
  - app/forms/decidim/plans/plan_form.rb
@@ -214,7 +226,9 @@ files:
214
226
  - app/models/decidim/plans/paper_trail/version_association.rb
215
227
  - app/models/decidim/plans/plan.rb
216
228
  - app/models/decidim/plans/plan_collaborator_request.rb
229
+ - app/models/decidim/plans/plan_tagging.rb
217
230
  - app/models/decidim/plans/section.rb
231
+ - app/models/decidim/plans/tag.rb
218
232
  - app/permissions/decidim/plans/admin/permissions.rb
219
233
  - app/permissions/decidim/plans/permissions.rb
220
234
  - app/presenters/concerns/decidim/plans/rich_presenter.rb
@@ -224,7 +238,9 @@ files:
224
238
  - app/presenters/decidim/plans/log/resource_presenter.rb
225
239
  - app/presenters/decidim/plans/official_author_presenter.rb
226
240
  - app/presenters/decidim/plans/plan_presenter.rb
241
+ - app/queries/decidim/plans/component_plan_tags.rb
227
242
  - app/queries/decidim/plans/filtered_plans.rb
243
+ - app/queries/decidim/plans/organization_tags.rb
228
244
  - app/services/decidim/plans/diff_renderer/base.rb
229
245
  - app/services/decidim/plans/diff_renderer/categorization.rb
230
246
  - app/services/decidim/plans/diff_renderer/component.rb
@@ -243,11 +259,16 @@ files:
243
259
  - app/views/decidim/plans/admin/plans/edit.html.erb
244
260
  - app/views/decidim/plans/admin/plans/index.html.erb
245
261
  - app/views/decidim/plans/admin/plans/new.html.erb
262
+ - app/views/decidim/plans/admin/plans/taggings.html.erb
246
263
  - app/views/decidim/plans/admin/sections/_bulk-actions.html.erb
247
264
  - app/views/decidim/plans/admin/sections/_form.html.erb
248
265
  - app/views/decidim/plans/admin/sections/_section.html.erb
249
266
  - app/views/decidim/plans/admin/sections/index.html.erb
250
267
  - app/views/decidim/plans/admin/shared/_info_plan.html.erb
268
+ - app/views/decidim/plans/admin/tags/_form.html.erb
269
+ - app/views/decidim/plans/admin/tags/edit.html.erb
270
+ - app/views/decidim/plans/admin/tags/index.html.erb
271
+ - app/views/decidim/plans/admin/tags/new.html.erb
251
272
  - app/views/decidim/plans/attached_proposals/_proposals.html.erb
252
273
  - app/views/decidim/plans/plan_widgets/show.html.erb
253
274
  - app/views/decidim/plans/plans/_accept_request_access_form.html.erb
@@ -256,6 +277,7 @@ files:
256
277
  - app/views/decidim/plans/plans/_content.html.erb
257
278
  - app/views/decidim/plans/plans/_contents.html.erb
258
279
  - app/views/decidim/plans/plans/_count.html.erb
280
+ - app/views/decidim/plans/plans/_evaluation_modal.html.erb
259
281
  - app/views/decidim/plans/plans/_filters.html.erb
260
282
  - app/views/decidim/plans/plans/_filters_small_view.html.erb
261
283
  - app/views/decidim/plans/plans/_form.html.erb
@@ -275,6 +297,7 @@ files:
275
297
  - app/views/decidim/plans/shared/_attachments.html.erb
276
298
  - app/views/decidim/plans/shared/_remaining_characters_container.html.erb
277
299
  - app/views/decidim/plans/shared/_section_content_field.html.erb
300
+ - app/views/decidim/plans/shared/_tags.html.erb
278
301
  - app/views/decidim/plans/versions/_version.html.erb
279
302
  - app/views/decidim/plans/versions/index.html.erb
280
303
  - app/views/decidim/plans/versions/show.html.erb
@@ -295,6 +318,10 @@ files:
295
318
  - db/migrate/20190202123045_add_transaction_id_column_to_versions.rb
296
319
  - db/migrate/20190202200716_add_update_token_to_decidim_plans.rb
297
320
  - db/migrate/20190214124014_add_closed_at_to_decidim_plans.rb
321
+ - db/migrate/20190329161710_fix_plan_closing_workflow_states.rb
322
+ - db/migrate/20190331141058_create_decidim_plans_tags_and_plan_taggings.rb
323
+ - lib/decidim/content_parsers/plan_parser.rb
324
+ - lib/decidim/content_renderers/plan_renderer.rb
298
325
  - lib/decidim/plans.rb
299
326
  - lib/decidim/plans/admin.rb
300
327
  - lib/decidim/plans/admin_engine.rb