decidim-initiatives 0.29.1 → 0.30.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_settings_form/show.erb +1 -1
- data/app/commands/decidim/initiatives/create_initiative.rb +17 -5
- data/app/commands/decidim/initiatives/update_initiative.rb +23 -9
- data/app/controllers/concerns/decidim/initiatives/needs_initiative.rb +1 -1
- data/app/controllers/decidim/initiatives/admin/application_controller.rb +2 -0
- data/app/controllers/decidim/initiatives/admin/component_share_tokens_controller.rb +18 -0
- data/app/controllers/decidim/initiatives/admin/initiative_share_tokens_controller.rb +18 -0
- data/app/controllers/decidim/initiatives/admin/initiatives_controller.rb +8 -8
- data/app/controllers/decidim/initiatives/create_initiative_controller.rb +3 -2
- data/app/controllers/decidim/initiatives/initiative_types_controller.rb +1 -1
- data/app/controllers/decidim/initiatives/initiatives_controller.rb +4 -1
- data/app/forms/decidim/initiatives/admin/initiative_answer_form.rb +2 -2
- data/app/forms/decidim/initiatives/admin/initiative_form.rb +1 -1
- data/app/forms/decidim/initiatives/admin/initiative_type_form.rb +2 -2
- data/app/forms/decidim/initiatives/vote_form.rb +1 -1
- data/app/helpers/decidim/initiatives/initiative_helper.rb +1 -39
- data/app/helpers/decidim/initiatives/initiatives_helper.rb +8 -5
- data/app/helpers/decidim/initiatives/scopes_helper.rb +43 -0
- data/app/jobs/decidim/initiatives/export_initiatives_job.rb +5 -1
- data/app/models/decidim/initiative.rb +40 -27
- data/app/models/decidim/initiatives_type_scope.rb +9 -0
- data/app/packs/entrypoints/decidim_initiatives_admin.js +2 -0
- data/app/packs/entrypoints/decidim_initiatives_admin.scss +1 -0
- data/app/packs/stylesheets/decidim/initiatives/admin/initiatives.scss +13 -0
- data/app/permissions/decidim/initiatives/admin/permissions.rb +9 -2
- data/app/permissions/decidim/initiatives/permissions.rb +24 -3
- data/app/queries/decidim/initiatives/outdated_validating_initiatives.rb +1 -1
- data/app/queries/decidim/initiatives/support_period_finished_initiatives.rb +2 -2
- data/app/serializers/decidim/initiatives/download_your_data_initiative_serializer.rb +15 -0
- data/app/serializers/decidim/initiatives/initiative_serializer.rb +5 -24
- data/app/serializers/decidim/initiatives/open_data_initiative_serializer.rb +54 -0
- data/app/services/decidim/initiatives/data_encryptor.rb +1 -1
- data/app/services/decidim/initiatives/pdf_signature_example.rb +0 -2
- data/app/views/decidim/initiatives/admin/committee_requests/index.html.erb +1 -0
- data/app/views/decidim/initiatives/admin/initiatives/edit.html.erb +1 -2
- data/app/views/decidim/initiatives/admin/initiatives/index.html.erb +8 -1
- data/app/views/decidim/initiatives/committee_requests/new.html.erb +1 -2
- data/app/views/decidim/initiatives/create_initiative/fill_data.html.erb +3 -3
- data/app/views/decidim/initiatives/create_initiative/select_initiative_type.html.erb +10 -2
- data/app/views/decidim/initiatives/initiatives/_form.html.erb +3 -3
- data/app/views/decidim/initiatives/initiatives/_new_initiative_button.html.erb +16 -13
- data/app/views/decidim/initiatives/initiatives/_vote_button.html.erb +9 -3
- data/app/views/decidim/initiatives/initiatives/_vote_cabin.html.erb +0 -1
- data/app/views/decidim/initiatives/initiatives/show.html.erb +7 -8
- data/app/views/layouts/decidim/admin/_manage_initiatives.html.erb +11 -0
- data/app/views/layouts/decidim/admin/initiatives.html.erb +1 -9
- data/config/assets.rb +1 -3
- data/config/locales/ar.yml +10 -5
- data/config/locales/bg.yml +2 -22
- data/config/locales/bn-BD.yml +1 -0
- data/config/locales/bs-BA.yml +1 -0
- data/config/locales/ca.yml +56 -22
- data/config/locales/cs.yml +55 -21
- data/config/locales/de.yml +56 -22
- data/config/locales/el.yml +2 -6
- data/config/locales/en.yml +53 -19
- data/config/locales/es-MX.yml +55 -21
- data/config/locales/es-PY.yml +55 -21
- data/config/locales/es.yml +56 -22
- data/config/locales/eu.yml +97 -63
- data/config/locales/fi-plain.yml +57 -23
- data/config/locales/fi.yml +66 -32
- data/config/locales/fr-CA.yml +9 -22
- data/config/locales/fr.yml +9 -22
- data/config/locales/ga-IE.yml +0 -2
- data/config/locales/gl.yml +2 -7
- data/config/locales/hu.yml +2 -20
- data/config/locales/id-ID.yml +2 -5
- data/config/locales/is-IS.yml +0 -1
- data/config/locales/it.yml +2 -10
- data/config/locales/ja.yml +55 -21
- data/config/locales/lb.yml +2 -7
- data/config/locales/lt.yml +2 -22
- data/config/locales/lv.yml +2 -6
- data/config/locales/nl.yml +2 -8
- data/config/locales/no.yml +2 -12
- data/config/locales/pl.yml +2 -21
- data/config/locales/pt-BR.yml +2 -26
- data/config/locales/pt.yml +2 -10
- data/config/locales/ro-RO.yml +2 -18
- data/config/locales/ru.yml +0 -1
- data/config/locales/sk.yml +2 -5
- data/config/locales/sl.yml +0 -1
- data/config/locales/sv.yml +13 -22
- data/config/locales/tr-TR.yml +2 -10
- data/config/locales/uk.yml +0 -1
- data/config/locales/zh-CN.yml +2 -8
- data/config/locales/zh-TW.yml +2 -21
- data/db/migrate/20241127104718_add_taxonomy_to_initiatives_type_scope.rb +7 -0
- data/decidim-initiatives.gemspec +2 -8
- data/lib/decidim/api/initiative_api_type.rb +9 -10
- data/lib/decidim/api/initiative_committee_member_type.rb +3 -4
- data/lib/decidim/api/initiative_type.rb +15 -21
- data/lib/decidim/api/initiative_type_interface.rb +1 -5
- data/lib/decidim/exporters/initiative_votes_pdf.rb +163 -0
- data/lib/decidim/initiatives/admin_engine.rb +68 -49
- data/lib/decidim/initiatives/application_form_pdf.rb +181 -0
- data/lib/decidim/initiatives/engine.rb +6 -0
- data/lib/decidim/initiatives/menu.rb +8 -0
- data/lib/decidim/initiatives/participatory_space.rb +8 -1
- data/lib/decidim/initiatives/test/factories.rb +5 -8
- data/lib/decidim/initiatives/version.rb +1 -1
- data/lib/decidim/initiatives.rb +7 -1
- metadata +30 -74
- data/app/cells/decidim/initiatives_votes/vote/show.erb +0 -39
- data/app/cells/decidim/initiatives_votes/vote_cell.rb +0 -58
- data/app/packs/entrypoints/decidim_initiatives_initiatives_votes.js +0 -1
- data/app/packs/entrypoints/decidim_initiatives_initiatives_votes.scss +0 -1
- data/app/packs/entrypoints/decidim_initiatives_print.js +0 -1
- data/app/packs/entrypoints/decidim_initiatives_print.scss +0 -1
- data/app/packs/stylesheets/decidim/initiatives/initiatives-votes.scss +0 -96
- data/app/packs/stylesheets/decidim/initiatives/print-initiative.scss +0 -172
- data/app/views/decidim/initiatives/admin/initiatives/_signatures.html.erb +0 -87
- data/app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.html.erb +0 -8
- data/app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.pdf.erb +0 -5
- data/app/views/decidim/initiatives/initiatives/_linked_initiatives.html.erb +0 -0
- data/app/views/decidim/initiatives/initiatives/print.html.erb +0 -161
- data/app/views/layouts/decidim/admin/initiatives_votes.pdf.erb +0 -11
- data/config/initializers/wicked_pdf.rb +0 -23
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-initiatives
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.30.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Salvador Perez Garcia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim-admin
|
@@ -16,126 +16,84 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.30.0.rc1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.30.0.rc1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: decidim-comments
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.30.0.rc1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.30.0.rc1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: decidim-core
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.30.0.rc1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.30.0.rc1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: decidim-verifications
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.30.0.rc1
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: hexapdf
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 0.32.0
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 0.32.0
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: wicked_pdf
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '2.1'
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '2.1'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: wkhtmltopdf-binary
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - '='
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: 0.12.6.6
|
104
|
-
type: :runtime
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - '='
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: 0.12.6.6
|
68
|
+
version: 0.30.0.rc1
|
111
69
|
- !ruby/object:Gem::Dependency
|
112
70
|
name: decidim-dev
|
113
71
|
requirement: !ruby/object:Gem::Requirement
|
114
72
|
requirements:
|
115
73
|
- - '='
|
116
74
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
75
|
+
version: 0.30.0.rc1
|
118
76
|
type: :development
|
119
77
|
prerelease: false
|
120
78
|
version_requirements: !ruby/object:Gem::Requirement
|
121
79
|
requirements:
|
122
80
|
- - '='
|
123
81
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
82
|
+
version: 0.30.0.rc1
|
125
83
|
- !ruby/object:Gem::Dependency
|
126
84
|
name: decidim-meetings
|
127
85
|
requirement: !ruby/object:Gem::Requirement
|
128
86
|
requirements:
|
129
87
|
- - '='
|
130
88
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.
|
89
|
+
version: 0.30.0.rc1
|
132
90
|
type: :development
|
133
91
|
prerelease: false
|
134
92
|
version_requirements: !ruby/object:Gem::Requirement
|
135
93
|
requirements:
|
136
94
|
- - '='
|
137
95
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.
|
96
|
+
version: 0.30.0.rc1
|
139
97
|
description: Participants initiatives plugin for decidim.
|
140
98
|
email:
|
141
99
|
- jsperezg@gmail.com
|
@@ -154,8 +112,6 @@ files:
|
|
154
112
|
- app/cells/decidim/initiatives/initiative_g_cell.rb
|
155
113
|
- app/cells/decidim/initiatives/initiative_metadata_g_cell.rb
|
156
114
|
- app/cells/decidim/initiatives/initiative_s_cell.rb
|
157
|
-
- app/cells/decidim/initiatives_votes/vote/show.erb
|
158
|
-
- app/cells/decidim/initiatives_votes/vote_cell.rb
|
159
115
|
- app/commands/decidim/initiatives/admin/accept_initiative.rb
|
160
116
|
- app/commands/decidim/initiatives/admin/create_initiative_type.rb
|
161
117
|
- app/commands/decidim/initiatives/admin/create_initiative_type_scope.rb
|
@@ -192,9 +148,11 @@ files:
|
|
192
148
|
- app/controllers/decidim/initiatives/admin/application_controller.rb
|
193
149
|
- app/controllers/decidim/initiatives/admin/committee_requests_controller.rb
|
194
150
|
- app/controllers/decidim/initiatives/admin/component_permissions_controller.rb
|
151
|
+
- app/controllers/decidim/initiatives/admin/component_share_tokens_controller.rb
|
195
152
|
- app/controllers/decidim/initiatives/admin/components_controller.rb
|
196
153
|
- app/controllers/decidim/initiatives/admin/exports_controller.rb
|
197
154
|
- app/controllers/decidim/initiatives/admin/initiative_attachments_controller.rb
|
155
|
+
- app/controllers/decidim/initiatives/admin/initiative_share_tokens_controller.rb
|
198
156
|
- app/controllers/decidim/initiatives/admin/initiatives_controller.rb
|
199
157
|
- app/controllers/decidim/initiatives/admin/initiatives_permissions_controller.rb
|
200
158
|
- app/controllers/decidim/initiatives/admin/initiatives_settings_controller.rb
|
@@ -238,6 +196,7 @@ files:
|
|
238
196
|
- app/helpers/decidim/initiatives/application_helper.rb
|
239
197
|
- app/helpers/decidim/initiatives/initiative_helper.rb
|
240
198
|
- app/helpers/decidim/initiatives/initiatives_helper.rb
|
199
|
+
- app/helpers/decidim/initiatives/scopes_helper.rb
|
241
200
|
- app/helpers/decidim/initiatives/signature_type_options_helper.rb
|
242
201
|
- app/jobs/decidim/initiatives/export_initiatives_job.rb
|
243
202
|
- app/mailers/decidim/initiatives/initiatives_mailer.rb
|
@@ -250,10 +209,7 @@ files:
|
|
250
209
|
- app/models/decidim/initiatives_vote.rb
|
251
210
|
- app/packs/entrypoints/decidim_initiatives.js
|
252
211
|
- app/packs/entrypoints/decidim_initiatives_admin.js
|
253
|
-
- app/packs/entrypoints/
|
254
|
-
- app/packs/entrypoints/decidim_initiatives_initiatives_votes.scss
|
255
|
-
- app/packs/entrypoints/decidim_initiatives_print.js
|
256
|
-
- app/packs/entrypoints/decidim_initiatives_print.scss
|
212
|
+
- app/packs/entrypoints/decidim_initiatives_admin.scss
|
257
213
|
- app/packs/images/decidim/gamification/badges/decidim_gamification_badges_initiatives.svg
|
258
214
|
- app/packs/images/decidim/initiatives/decidim_initiatives.svg
|
259
215
|
- app/packs/src/decidim/initiatives/admin/initiatives_types.js
|
@@ -261,8 +217,7 @@ files:
|
|
261
217
|
- app/packs/src/decidim/initiatives/application.js
|
262
218
|
- app/packs/src/decidim/initiatives/identity_selector_dialog.js
|
263
219
|
- app/packs/src/decidim/initiatives/scoped_type.js
|
264
|
-
- app/packs/stylesheets/decidim/initiatives/initiatives
|
265
|
-
- app/packs/stylesheets/decidim/initiatives/print-initiative.scss
|
220
|
+
- app/packs/stylesheets/decidim/initiatives/admin/initiatives.scss
|
266
221
|
- app/packs/stylesheets/initiatives.scss
|
267
222
|
- app/permissions/decidim/initiatives/admin/permissions.rb
|
268
223
|
- app/permissions/decidim/initiatives/permissions.rb
|
@@ -281,7 +236,9 @@ files:
|
|
281
236
|
- app/queries/decidim/initiatives/outdated_validating_initiatives.rb
|
282
237
|
- app/queries/decidim/initiatives/support_period_finished_initiatives.rb
|
283
238
|
- app/queries/decidim/initiatives/user_authorizations.rb
|
239
|
+
- app/serializers/decidim/initiatives/download_your_data_initiative_serializer.rb
|
284
240
|
- app/serializers/decidim/initiatives/initiative_serializer.rb
|
241
|
+
- app/serializers/decidim/initiatives/open_data_initiative_serializer.rb
|
285
242
|
- app/services/decidim/initiatives/data_encryptor.rb
|
286
243
|
- app/services/decidim/initiatives/diff_renderer.rb
|
287
244
|
- app/services/decidim/initiatives/dummy_timestamp.rb
|
@@ -297,10 +254,7 @@ files:
|
|
297
254
|
- app/views/decidim/initiatives/admin/exports/_dropdown.html.erb
|
298
255
|
- app/views/decidim/initiatives/admin/initiatives/_form.html.erb
|
299
256
|
- app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb
|
300
|
-
- app/views/decidim/initiatives/admin/initiatives/_signatures.html.erb
|
301
257
|
- app/views/decidim/initiatives/admin/initiatives/edit.html.erb
|
302
|
-
- app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.html.erb
|
303
|
-
- app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.pdf.erb
|
304
258
|
- app/views/decidim/initiatives/admin/initiatives/index.html.erb
|
305
259
|
- app/views/decidim/initiatives/admin/initiatives_settings/_form.html.erb
|
306
260
|
- app/views/decidim/initiatives/admin/initiatives_settings/edit.html.erb
|
@@ -332,7 +286,6 @@ files:
|
|
332
286
|
- app/views/decidim/initiatives/initiatives/_initiative_hero.html.erb
|
333
287
|
- app/views/decidim/initiatives/initiatives/_initiatives.html.erb
|
334
288
|
- app/views/decidim/initiatives/initiatives/_interactions.html.erb
|
335
|
-
- app/views/decidim/initiatives/initiatives/_linked_initiatives.html.erb
|
336
289
|
- app/views/decidim/initiatives/initiatives/_new_initiative_button.html.erb
|
337
290
|
- app/views/decidim/initiatives/initiatives/_no_initiatives_yet.html.erb
|
338
291
|
- app/views/decidim/initiatives/initiatives/_progress_bar.html.erb
|
@@ -343,7 +296,6 @@ files:
|
|
343
296
|
- app/views/decidim/initiatives/initiatives/edit.html.erb
|
344
297
|
- app/views/decidim/initiatives/initiatives/index.html.erb
|
345
298
|
- app/views/decidim/initiatives/initiatives/index.js.erb
|
346
|
-
- app/views/decidim/initiatives/initiatives/print.html.erb
|
347
299
|
- app/views/decidim/initiatives/initiatives/show.html.erb
|
348
300
|
- app/views/decidim/initiatives/initiatives_mailer/_initiative_link.html.erb
|
349
301
|
- app/views/decidim/initiatives/initiatives_mailer/notify_creation.html.erb
|
@@ -356,20 +308,21 @@ files:
|
|
356
308
|
- app/views/layouts/decidim/_initiative_header.html.erb
|
357
309
|
- app/views/layouts/decidim/_initiative_header_steps.html.erb
|
358
310
|
- app/views/layouts/decidim/_initiative_signature_creation_header.html.erb
|
311
|
+
- app/views/layouts/decidim/admin/_manage_initiatives.html.erb
|
359
312
|
- app/views/layouts/decidim/admin/initiative.html.erb
|
360
313
|
- app/views/layouts/decidim/admin/initiatives.html.erb
|
361
|
-
- app/views/layouts/decidim/admin/initiatives_votes.pdf.erb
|
362
314
|
- app/views/layouts/decidim/initiative.html.erb
|
363
315
|
- app/views/layouts/decidim/initiative_creation.html.erb
|
364
316
|
- app/views/layouts/decidim/initiative_head.html.erb
|
365
317
|
- app/views/layouts/decidim/initiative_signature_creation.html.erb
|
366
318
|
- config/assets.rb
|
367
|
-
- config/initializers/wicked_pdf.rb
|
368
319
|
- config/locales/am-ET.yml
|
369
320
|
- config/locales/ar-SA.yml
|
370
321
|
- config/locales/ar.yml
|
371
322
|
- config/locales/bg-BG.yml
|
372
323
|
- config/locales/bg.yml
|
324
|
+
- config/locales/bn-BD.yml
|
325
|
+
- config/locales/bs-BA.yml
|
373
326
|
- config/locales/ca.yml
|
374
327
|
- config/locales/cs-CZ.yml
|
375
328
|
- config/locales/cs.yml
|
@@ -504,15 +457,18 @@ files:
|
|
504
457
|
- db/migrate/20210310120720_add_followable_counter_cache_to_initiatives.rb
|
505
458
|
- db/migrate/20220518053612_add_comments_enabled_to_initiative_types.rb
|
506
459
|
- db/migrate/20220527130640_create_decidim_initiatives_settings.rb
|
460
|
+
- db/migrate/20241127104718_add_taxonomy_to_initiatives_type_scope.rb
|
507
461
|
- decidim-initiatives.gemspec
|
508
462
|
- lib/decidim/api/initiative_api_type.rb
|
509
463
|
- lib/decidim/api/initiative_committee_member_type.rb
|
510
464
|
- lib/decidim/api/initiative_type.rb
|
511
465
|
- lib/decidim/api/initiative_type_interface.rb
|
466
|
+
- lib/decidim/exporters/initiative_votes_pdf.rb
|
512
467
|
- lib/decidim/initiatives.rb
|
513
468
|
- lib/decidim/initiatives/admin.rb
|
514
469
|
- lib/decidim/initiatives/admin_engine.rb
|
515
470
|
- lib/decidim/initiatives/api.rb
|
471
|
+
- lib/decidim/initiatives/application_form_pdf.rb
|
516
472
|
- lib/decidim/initiatives/content_blocks/registry_manager.rb
|
517
473
|
- lib/decidim/initiatives/current_locale.rb
|
518
474
|
- lib/decidim/initiatives/engine.rb
|
@@ -527,7 +483,7 @@ files:
|
|
527
483
|
- lib/tasks/initiatives/upgrade/decidim_initiatives_upgrade_tasks.rake
|
528
484
|
homepage: https://decidim.org
|
529
485
|
licenses:
|
530
|
-
- AGPL-3.0
|
486
|
+
- AGPL-3.0-or-later
|
531
487
|
metadata:
|
532
488
|
bug_tracker_uri: https://github.com/decidim/decidim/issues
|
533
489
|
documentation_uri: https://docs.decidim.org/
|
@@ -542,14 +498,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
542
498
|
requirements:
|
543
499
|
- - "~>"
|
544
500
|
- !ruby/object:Gem::Version
|
545
|
-
version: 3.
|
501
|
+
version: 3.3.0
|
546
502
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
547
503
|
requirements:
|
548
504
|
- - ">="
|
549
505
|
- !ruby/object:Gem::Version
|
550
506
|
version: '0'
|
551
507
|
requirements: []
|
552
|
-
rubygems_version: 3.
|
508
|
+
rubygems_version: 3.5.11
|
553
509
|
signing_key:
|
554
510
|
specification_version: 4
|
555
511
|
summary: Decidim initiatives module
|
@@ -1,39 +0,0 @@
|
|
1
|
-
<% collect_user_extra_fields = model.initiative.type.collect_user_extra_fields %>
|
2
|
-
<% cell_small_width = collect_user_extra_fields ? "9.4%" : "15.6%" %>
|
3
|
-
<% style_initiatives_votes_table_row = "width: 100%; display: inline-block; min-height: 33pt; border-bottom: 1pt solid black;" %>
|
4
|
-
<% style_initiatives_votes_table_cell = "width: #{cell_small_width}; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;" %>
|
5
|
-
<br>
|
6
|
-
<div class="initiatives-votes-table-row" style="<%= style_initiatives_votes_table_row %>">
|
7
|
-
<div class="initiatives-votes-table-cell w11" style="<%= style_initiatives_votes_table_cell %>">
|
8
|
-
<%= initiative_id %>
|
9
|
-
</div>
|
10
|
-
<div class="initiatives-votes-table-cell w11" style="<%= style_initiatives_votes_table_cell %>">
|
11
|
-
<%= initiative_title %>
|
12
|
-
</div>
|
13
|
-
<% if collect_user_extra_fields %>
|
14
|
-
<div class="initiatives-votes-table-cell w11" style="<%= style_initiatives_votes_table_cell %>">
|
15
|
-
<%= name_and_surname %>
|
16
|
-
</div>
|
17
|
-
<div class="initiatives-votes-table-cell w11" style="<%= style_initiatives_votes_table_cell %>">
|
18
|
-
<%= document_number %>
|
19
|
-
</div>
|
20
|
-
<div class="initiatives-votes-table-cell w11" style="<%= style_initiatives_votes_table_cell %>">
|
21
|
-
<%= date_of_birth %>
|
22
|
-
</div>
|
23
|
-
<div class="initiatives-votes-table-cell w11" style="<%= style_initiatives_votes_table_cell %>">
|
24
|
-
<%= postal_code %>
|
25
|
-
</div>
|
26
|
-
<% end %>
|
27
|
-
<div class="initiatives-votes-table-cell w11" style="<%= style_initiatives_votes_table_cell %>">
|
28
|
-
<%= time_and_date %>
|
29
|
-
</div>
|
30
|
-
<div class="initiatives-votes-table-cell w11" style="<%= style_initiatives_votes_table_cell %>">
|
31
|
-
<%= timestamp %>
|
32
|
-
</div>
|
33
|
-
<div class="initiatives-votes-table-cell w11" style="<%= style_initiatives_votes_table_cell %>">
|
34
|
-
<%= hash_id %>
|
35
|
-
</div>
|
36
|
-
<div class="initiatives-votes-table-cell w11" style="<%= style_initiatives_votes_table_cell %>">
|
37
|
-
<%= scope %>
|
38
|
-
</div>
|
39
|
-
</div>
|
@@ -1,58 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module InitiativesVotes
|
5
|
-
class VoteCell < Decidim::ViewModel
|
6
|
-
delegate :timestamp, :hash_id, to: :model
|
7
|
-
|
8
|
-
def show
|
9
|
-
render
|
10
|
-
end
|
11
|
-
|
12
|
-
def initiative_id
|
13
|
-
model.initiative.reference
|
14
|
-
end
|
15
|
-
|
16
|
-
def initiative_title
|
17
|
-
decidim_sanitize_translated(model.initiative.title)
|
18
|
-
end
|
19
|
-
|
20
|
-
def name_and_surname
|
21
|
-
metadata[:name_and_surname]
|
22
|
-
end
|
23
|
-
|
24
|
-
def document_number
|
25
|
-
metadata[:document_number]
|
26
|
-
end
|
27
|
-
|
28
|
-
def date_of_birth
|
29
|
-
metadata[:date_of_birth]
|
30
|
-
end
|
31
|
-
|
32
|
-
def postal_code
|
33
|
-
metadata[:postal_code]
|
34
|
-
end
|
35
|
-
|
36
|
-
def time_and_date
|
37
|
-
model.created_at
|
38
|
-
end
|
39
|
-
|
40
|
-
def scope
|
41
|
-
return I18n.t("decidim.scopes.global") if model.decidim_scope_id.nil?
|
42
|
-
return I18n.t("decidim.initiatives.unavailable_scope") if model.scope.blank?
|
43
|
-
|
44
|
-
translated_attribute(model.scope.name)
|
45
|
-
end
|
46
|
-
|
47
|
-
protected
|
48
|
-
|
49
|
-
def encryptor
|
50
|
-
@encryptor ||= Decidim::Initiatives::DataEncryptor.new(secret: "personal user metadata")
|
51
|
-
end
|
52
|
-
|
53
|
-
def metadata
|
54
|
-
@metadata ||= model.encrypted_metadata ? encryptor.decrypt(model.encrypted_metadata) : {}
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
import "entrypoints/decidim_initiatives_initiatives_votes.scss"
|
@@ -1 +0,0 @@
|
|
1
|
-
@import "stylesheets/decidim/initiatives/initiatives-votes.scss";
|
@@ -1 +0,0 @@
|
|
1
|
-
import "entrypoints/decidim_initiatives_print.scss"
|
@@ -1 +0,0 @@
|
|
1
|
-
@import "stylesheets/decidim/initiatives/print-initiative";
|
@@ -1,96 +0,0 @@
|
|
1
|
-
@media all {
|
2
|
-
.initiative-title {
|
3
|
-
border: 1pt solid black;
|
4
|
-
margin: 15pt 0;
|
5
|
-
font-size: 12pt;
|
6
|
-
font-weight: bold;
|
7
|
-
text-align: center;
|
8
|
-
}
|
9
|
-
|
10
|
-
.initiatives-votes-table {
|
11
|
-
width: 100%;
|
12
|
-
display: block;
|
13
|
-
border: 1pt solid black;
|
14
|
-
|
15
|
-
.initiatives-votes-table-header {
|
16
|
-
background-color: lightgray;
|
17
|
-
display: inline-block;
|
18
|
-
width: 100%;
|
19
|
-
font-size: 12pt;
|
20
|
-
font-weight: bold;
|
21
|
-
border-bottom: 1pt solid black;
|
22
|
-
}
|
23
|
-
|
24
|
-
.initiatives-votes-table-row {
|
25
|
-
width: 100%;
|
26
|
-
display: inline-block;
|
27
|
-
min-height: 33pt;
|
28
|
-
}
|
29
|
-
|
30
|
-
.initiatives-votes-table-row::after {
|
31
|
-
content: "";
|
32
|
-
display: inline-block;
|
33
|
-
clear: both;
|
34
|
-
}
|
35
|
-
|
36
|
-
.initiatives-votes-table-row:last-child {
|
37
|
-
border-bottom: 0;
|
38
|
-
}
|
39
|
-
|
40
|
-
.initiatives-votes-table-cell {
|
41
|
-
padding-left: 5pt;
|
42
|
-
word-wrap: break-word;
|
43
|
-
display: inline-block;
|
44
|
-
float: left;
|
45
|
-
min-height: 36pt;
|
46
|
-
|
47
|
-
.cell-content {
|
48
|
-
font-size: 10pt;
|
49
|
-
word-wrap: break-word;
|
50
|
-
}
|
51
|
-
}
|
52
|
-
|
53
|
-
.checkbox-cell {
|
54
|
-
width: 36pt;
|
55
|
-
}
|
56
|
-
|
57
|
-
.initiatives-votes-table-cell:last-child {
|
58
|
-
border-right: 0;
|
59
|
-
}
|
60
|
-
|
61
|
-
.w11 {
|
62
|
-
width: 10.8%;
|
63
|
-
}
|
64
|
-
|
65
|
-
.w20 {
|
66
|
-
width: 19%;
|
67
|
-
}
|
68
|
-
}
|
69
|
-
|
70
|
-
.no-border {
|
71
|
-
border: none !important;
|
72
|
-
}
|
73
|
-
}
|
74
|
-
|
75
|
-
@page {
|
76
|
-
size: A4;
|
77
|
-
margin: 17mm 17mm 11mm 11mm;
|
78
|
-
}
|
79
|
-
|
80
|
-
@media print {
|
81
|
-
.title-bar {
|
82
|
-
display: none;
|
83
|
-
}
|
84
|
-
|
85
|
-
.layout-nav {
|
86
|
-
display: none;
|
87
|
-
}
|
88
|
-
|
89
|
-
.button.expanded {
|
90
|
-
display: none;
|
91
|
-
}
|
92
|
-
|
93
|
-
.page-break {
|
94
|
-
page-break-before: auto;
|
95
|
-
}
|
96
|
-
}
|
@@ -1,172 +0,0 @@
|
|
1
|
-
@media all {
|
2
|
-
.printable {
|
3
|
-
width: 80%;
|
4
|
-
margin-left: auto;
|
5
|
-
margin-right: auto;
|
6
|
-
}
|
7
|
-
|
8
|
-
.initiative-letterhead {
|
9
|
-
font-size: 14pt;
|
10
|
-
font-weight: bold;
|
11
|
-
|
12
|
-
img {
|
13
|
-
margin-right: 5pt;
|
14
|
-
}
|
15
|
-
}
|
16
|
-
|
17
|
-
.initiative-print-title {
|
18
|
-
border: 1pt solid black;
|
19
|
-
margin: 15pt 0;
|
20
|
-
font-size: 12pt;
|
21
|
-
font-weight: bold;
|
22
|
-
text-align: center;
|
23
|
-
}
|
24
|
-
|
25
|
-
.print-table {
|
26
|
-
width: 100%;
|
27
|
-
display: block;
|
28
|
-
border: 1pt solid black;
|
29
|
-
|
30
|
-
.print-table-header {
|
31
|
-
background-color: lightgray;
|
32
|
-
display: inline-block;
|
33
|
-
width: 100%;
|
34
|
-
padding-left: 5pt;
|
35
|
-
font-size: 12pt;
|
36
|
-
font-weight: bold;
|
37
|
-
border-bottom: 1pt solid black;
|
38
|
-
}
|
39
|
-
|
40
|
-
.print-table-row {
|
41
|
-
width: 100%;
|
42
|
-
display: inline-block;
|
43
|
-
min-height: 33pt;
|
44
|
-
border-bottom: 1pt solid black;
|
45
|
-
}
|
46
|
-
|
47
|
-
.print-table-row::after {
|
48
|
-
content: "";
|
49
|
-
display: inline-block;
|
50
|
-
clear: both;
|
51
|
-
}
|
52
|
-
|
53
|
-
.print-table-row:last-child {
|
54
|
-
border-bottom: 0;
|
55
|
-
}
|
56
|
-
|
57
|
-
.print-table-cell {
|
58
|
-
padding-left: 5pt;
|
59
|
-
display: inline-block;
|
60
|
-
float: left;
|
61
|
-
border-right: 1pt solid black;
|
62
|
-
min-height: 36pt;
|
63
|
-
|
64
|
-
.cell-content {
|
65
|
-
font-size: 10pt;
|
66
|
-
word-wrap: break-word;
|
67
|
-
}
|
68
|
-
}
|
69
|
-
|
70
|
-
.checkbox-cell {
|
71
|
-
width: 36pt;
|
72
|
-
}
|
73
|
-
|
74
|
-
.print-table-cell:last-child {
|
75
|
-
border-right: 0;
|
76
|
-
}
|
77
|
-
|
78
|
-
.w33 {
|
79
|
-
width: 33%;
|
80
|
-
}
|
81
|
-
|
82
|
-
.w66 {
|
83
|
-
width: 66%;
|
84
|
-
}
|
85
|
-
|
86
|
-
.w50 {
|
87
|
-
width: 50%;
|
88
|
-
}
|
89
|
-
}
|
90
|
-
|
91
|
-
.no-border {
|
92
|
-
border: none !important;
|
93
|
-
}
|
94
|
-
|
95
|
-
.print-section-title {
|
96
|
-
font-size: 12pt;
|
97
|
-
font-weight: bold;
|
98
|
-
margin-top: 15pt;
|
99
|
-
}
|
100
|
-
|
101
|
-
.print-initiative-legal-text {
|
102
|
-
font-size: 10pt;
|
103
|
-
margin-top: 80pt;
|
104
|
-
}
|
105
|
-
}
|
106
|
-
|
107
|
-
@page {
|
108
|
-
size: A4;
|
109
|
-
margin: 17mm 17mm 11mm 11mm;
|
110
|
-
}
|
111
|
-
|
112
|
-
@media print {
|
113
|
-
h3.print-section-title {
|
114
|
-
display: none;
|
115
|
-
}
|
116
|
-
|
117
|
-
.print-button {
|
118
|
-
display: none;
|
119
|
-
}
|
120
|
-
|
121
|
-
.omnipresent-banner {
|
122
|
-
display: none;
|
123
|
-
}
|
124
|
-
|
125
|
-
.decidim-accessibility-indicator {
|
126
|
-
display: none;
|
127
|
-
}
|
128
|
-
|
129
|
-
.decidim-accessibility-badge {
|
130
|
-
display: none;
|
131
|
-
}
|
132
|
-
|
133
|
-
.decidim-accessibility-report {
|
134
|
-
display: none;
|
135
|
-
}
|
136
|
-
|
137
|
-
.process-header {
|
138
|
-
display: none;
|
139
|
-
}
|
140
|
-
|
141
|
-
header {
|
142
|
-
display: none;
|
143
|
-
}
|
144
|
-
|
145
|
-
.main-nav {
|
146
|
-
display: none;
|
147
|
-
}
|
148
|
-
|
149
|
-
.title-bar {
|
150
|
-
display: none;
|
151
|
-
}
|
152
|
-
|
153
|
-
.layout-nav {
|
154
|
-
display: none;
|
155
|
-
}
|
156
|
-
|
157
|
-
.button.expanded {
|
158
|
-
display: none;
|
159
|
-
}
|
160
|
-
|
161
|
-
.page-break {
|
162
|
-
page-break-before: auto;
|
163
|
-
}
|
164
|
-
|
165
|
-
.main-footer {
|
166
|
-
display: none;
|
167
|
-
}
|
168
|
-
|
169
|
-
.mini-footer {
|
170
|
-
display: none;
|
171
|
-
}
|
172
|
-
}
|