decidim-initiatives 0.29.4 → 0.30.0.rc1
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.
- 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 +16 -4
- 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 +3 -0
- data/app/forms/decidim/initiatives/admin/initiative_answer_form.rb +1 -1
- 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 +34 -27
- data/app/models/decidim/initiatives_type_scope.rb +9 -0
- data/app/permissions/decidim/initiatives/admin/permissions.rb +7 -0
- data/app/permissions/decidim/initiatives/permissions.rb +10 -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/initiatives/edit.html.erb +1 -2
- data/app/views/decidim/initiatives/admin/initiatives/index.html.erb +7 -0
- 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 +7 -8
- data/config/locales/bg.yml +3 -22
- data/config/locales/ca.yml +58 -24
- data/config/locales/cs.yml +56 -22
- data/config/locales/de.yml +57 -23
- data/config/locales/el.yml +2 -9
- data/config/locales/en.yml +53 -19
- data/config/locales/es-MX.yml +61 -27
- data/config/locales/es-PY.yml +61 -27
- data/config/locales/es.yml +61 -27
- data/config/locales/eu.yml +80 -46
- data/config/locales/fi-plain.yml +57 -23
- data/config/locales/fi.yml +55 -21
- data/config/locales/fr-CA.yml +13 -25
- data/config/locales/fr.yml +13 -25
- data/config/locales/ga-IE.yml +0 -3
- data/config/locales/gl.yml +4 -12
- data/config/locales/hu.yml +4 -21
- data/config/locales/id-ID.yml +3 -9
- data/config/locales/is-IS.yml +1 -13
- data/config/locales/it.yml +4 -17
- data/config/locales/ja.yml +56 -22
- data/config/locales/lb.yml +6 -8
- data/config/locales/lt.yml +3 -22
- data/config/locales/lv.yml +2 -9
- data/config/locales/nl.yml +4 -13
- data/config/locales/no.yml +3 -13
- data/config/locales/pl.yml +5 -23
- data/config/locales/pt-BR.yml +5 -29
- data/config/locales/pt.yml +3 -11
- data/config/locales/ro-RO.yml +3 -20
- data/config/locales/ru.yml +1 -13
- data/config/locales/sk.yml +3 -9
- data/config/locales/sl.yml +4 -1
- data/config/locales/sv.yml +18 -26
- data/config/locales/tr-TR.yml +5 -13
- data/config/locales/uk.yml +1 -13
- data/config/locales/zh-CN.yml +2 -10
- data/config/locales/zh-TW.yml +3 -21
- data/db/migrate/20241127104718_add_taxonomy_to_initiatives_type_scope.rb +7 -0
- data/decidim-initiatives.gemspec +1 -3
- 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 +25 -60
- 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 -22
- data/config/locales/ca-IT.yml +0 -628
@@ -0,0 +1,181 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "hexapdf"
|
4
|
+
|
5
|
+
module Decidim
|
6
|
+
module Initiatives
|
7
|
+
class ApplicationFormPDF
|
8
|
+
include Decidim::OrganizationHelper
|
9
|
+
def initialize(initiative)
|
10
|
+
@initiative = initiative
|
11
|
+
end
|
12
|
+
|
13
|
+
def render
|
14
|
+
composer.styles(**styles)
|
15
|
+
|
16
|
+
add_logo
|
17
|
+
add_organization_data_box
|
18
|
+
add_author_box
|
19
|
+
add_promoter_box
|
20
|
+
|
21
|
+
composer.new_page
|
22
|
+
|
23
|
+
add_initiative_metadata_box
|
24
|
+
add_attachments_box
|
25
|
+
add_signature_box
|
26
|
+
add_legal_box
|
27
|
+
|
28
|
+
composer.write_to_string
|
29
|
+
end
|
30
|
+
|
31
|
+
private
|
32
|
+
|
33
|
+
attr_reader :initiative
|
34
|
+
|
35
|
+
delegate :document, to: :composer
|
36
|
+
delegate :layout, to: :document
|
37
|
+
|
38
|
+
def page = document.pages.first
|
39
|
+
|
40
|
+
def page_width = page.box(:media).width
|
41
|
+
|
42
|
+
def page_height = page.box(:media).height
|
43
|
+
|
44
|
+
def styles
|
45
|
+
{
|
46
|
+
h1: { font: bold_font, text_align: :center, font_size: 16, margin: [10, 0, 10, 0] },
|
47
|
+
title: { font: bold_font, text_align: :center, font_size: 12, margin: [10, 0, 10, 0] },
|
48
|
+
text: { font: bold_font, text_align: :left, font_size: 12, margin: [0, 0, 10, 0] },
|
49
|
+
td: { font:, text_align: :left, font_size: 12, margin: [0, 0, 10, 0] }
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
def add_author_box
|
54
|
+
cells = [
|
55
|
+
[{ content: layout.text(I18n.t("author_title", scope: "decidim.initiatives.initiatives.print"), style: :title), col_span: 3 }],
|
56
|
+
[{ content: layout.text(I18n.t("id_number", scope: "decidim.initiatives.initiatives.print"), style: :td), col_span: 3, padding: [5, 5, 20, 5] }],
|
57
|
+
[{ content: layout.text(I18n.t("full_name", scope: "decidim.initiatives.initiatives.print"), style: :td), col_span: 3, padding: [5, 5, 20, 5] }],
|
58
|
+
[{ content: layout.text(I18n.t("address", scope: "decidim.initiatives.initiatives.print"), style: :td), col_span: 3, padding: [5, 5, 20, 5] }],
|
59
|
+
[
|
60
|
+
{ content: layout.text(I18n.t("city", scope: "decidim.initiatives.initiatives.print"), style: :td), padding: [5, 5, 20, 5] },
|
61
|
+
{ content: layout.text(I18n.t("province", scope: "decidim.initiatives.initiatives.print"), style: :td), padding: [5, 5, 20, 5] },
|
62
|
+
{ content: layout.text(I18n.t("postal_code", scope: "decidim.initiatives.initiatives.print"), style: :td), padding: [5, 5, 20, 5] }
|
63
|
+
],
|
64
|
+
[
|
65
|
+
{ content: layout.text(I18n.t("phone_number", scope: "decidim.initiatives.initiatives.print"), style: :td), padding: [5, 5, 20, 5] },
|
66
|
+
{ content: layout.text(I18n.t("email", scope: "decidim.initiatives.initiatives.print"), style: :td), col_span: 2, padding: [5, 5, 20, 5] }
|
67
|
+
]
|
68
|
+
]
|
69
|
+
composer.table(cells, cell_style: { border: { width: 1 } }, style: { margin: [10, 0] })
|
70
|
+
end
|
71
|
+
|
72
|
+
def add_signature_box
|
73
|
+
cells = [
|
74
|
+
layout.text(I18n.t("place_date", scope: "decidim.initiatives.initiatives.print"), style: :title),
|
75
|
+
layout.text(I18n.t("signature", scope: "decidim.initiatives.initiatives.print"), style: :title)
|
76
|
+
]
|
77
|
+
composer.table([cells], cell_style: { border: { width: 0 } }, style: { margin: [10, 0] })
|
78
|
+
end
|
79
|
+
|
80
|
+
def add_attachments_box
|
81
|
+
cells = [
|
82
|
+
[{ content: layout.text(I18n.t("initiative.attachments", scope: "decidim.initiatives.initiatives.print"), style: :title), col_span: 10 }]
|
83
|
+
]
|
84
|
+
|
85
|
+
6.times do
|
86
|
+
cols = [
|
87
|
+
{ content: layout.text(""), padding: 15 },
|
88
|
+
{ content: layout.text(""), padding: 15, col_span: 9 }
|
89
|
+
]
|
90
|
+
cells.push(cols)
|
91
|
+
end
|
92
|
+
|
93
|
+
composer.table(cells, cell_style: { border: { width: 1 } }, style: { margin: [10, 0] })
|
94
|
+
end
|
95
|
+
|
96
|
+
def add_promoter_box
|
97
|
+
cells = [
|
98
|
+
[{ content: layout.text(I18n.t("members_header", scope: "decidim.initiatives.initiatives.print"), style: :title), col_span: 3 }],
|
99
|
+
[
|
100
|
+
{ content: layout.text(I18n.t("full_name", scope: "decidim.initiatives.initiatives.print"), style: :td), padding: [5, 5, 20, 5] },
|
101
|
+
{ content: layout.text(I18n.t("id_number", scope: "decidim.initiatives.initiatives.print"), style: :td), padding: [5, 5, 20, 5] },
|
102
|
+
{ content: layout.text(I18n.t("address", scope: "decidim.initiatives.initiatives.print"), style: :td), padding: [5, 5, 20, 5] }
|
103
|
+
]
|
104
|
+
]
|
105
|
+
|
106
|
+
4.times do
|
107
|
+
cols = []
|
108
|
+
3.times do
|
109
|
+
cols.push({ content: layout.text(""), padding: 15 })
|
110
|
+
end
|
111
|
+
cells.push(cols)
|
112
|
+
end
|
113
|
+
|
114
|
+
composer.table(cells, cell_style: { border: { width: 1 } }, style: { margin: [10, 0] })
|
115
|
+
end
|
116
|
+
|
117
|
+
def add_legal_box
|
118
|
+
composer.text(I18n.t("legal_text", scope: "decidim.initiatives.initiatives.print"), style: {
|
119
|
+
font:, font_size: 10, margin: [100, 0]
|
120
|
+
})
|
121
|
+
end
|
122
|
+
|
123
|
+
def add_initiative_metadata_box
|
124
|
+
composer.text(I18n.t("initiative.type", scope: "decidim.initiatives.initiatives.print"), style: :text)
|
125
|
+
composer.text(translated_attribute(initiative.type.title), style: :td)
|
126
|
+
composer.text(I18n.t("initiative.title", scope: "decidim.initiatives.initiatives.print"), style: :text)
|
127
|
+
composer.text(translated_attribute(initiative.title), style: :td)
|
128
|
+
composer.text(I18n.t("initiative.description", scope: "decidim.initiatives.initiatives.print"), style: :text)
|
129
|
+
composer.text(translated_attribute(initiative.description), style: :td)
|
130
|
+
end
|
131
|
+
|
132
|
+
def add_organization_data_box
|
133
|
+
composer.text(organization_name(initiative.organization), style: :h1)
|
134
|
+
cells = [
|
135
|
+
layout.text(I18n.t("general_title", scope: "decidim.initiatives.initiatives.print"), style: :title)
|
136
|
+
]
|
137
|
+
composer.table([cells], cell_style: { border: { width: 1 } })
|
138
|
+
end
|
139
|
+
|
140
|
+
def add_logo
|
141
|
+
return if initiative.organization.logo.blank?
|
142
|
+
|
143
|
+
attached_image = initiative.organization.attached_uploader(:logo).variant(:thumb)
|
144
|
+
logo = document.images.add(StringIO.new(attached_image.download))
|
145
|
+
height, width = compute_dimensions(attached_image, 160, 80)
|
146
|
+
|
147
|
+
cells = ["", layout.image(logo, width:, height:), ""]
|
148
|
+
composer.table([cells], cell_style: { border: { width: 0 } })
|
149
|
+
end
|
150
|
+
|
151
|
+
def compute_dimensions(attached_image, max_width, max_height)
|
152
|
+
metadata = attached_image.blob.metadata.with_indifferent_access
|
153
|
+
aspect_ratio = metadata[:width] / metadata[:height]
|
154
|
+
|
155
|
+
if metadata[:width] >= metadata[:height]
|
156
|
+
max_height = (max_height / aspect_ratio).round
|
157
|
+
else
|
158
|
+
max_width = (max_width / aspect_ratio).round
|
159
|
+
end
|
160
|
+
|
161
|
+
return max_height, max_width
|
162
|
+
end
|
163
|
+
|
164
|
+
def font
|
165
|
+
@font ||= load_font("source-sans-pro-v21-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-regular.ttf")
|
166
|
+
end
|
167
|
+
|
168
|
+
def bold_font
|
169
|
+
@bold_font ||= load_font("source-sans-pro-v21-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-700.ttf")
|
170
|
+
end
|
171
|
+
|
172
|
+
def load_font(path)
|
173
|
+
document.fonts.add(Decidim::Core::Engine.root.join("app/packs/fonts/decidim/").join(path))
|
174
|
+
end
|
175
|
+
|
176
|
+
def composer
|
177
|
+
@composer ||= ::HexaPDF::Composer.new
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
@@ -86,6 +86,12 @@ module Decidim
|
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
|
+
initializer "decidim_initiatives.mount_routes" do
|
90
|
+
Decidim::Core::Engine.routes do
|
91
|
+
mount Decidim::Initiatives::Engine, at: "/", as: "decidim_initiatives"
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
89
95
|
initializer "decidim_initiatives.register_icons" do
|
90
96
|
Decidim.icons.register(name: "Decidim::Initiative", icon: "lightbulb-flash-line", description: "Initiative", category: "activity", engine: :initiatives)
|
91
97
|
Decidim.icons.register(name: "apps-line", icon: "apps-line", category: "system", description: "", engine: :initiatives)
|
@@ -66,6 +66,7 @@ module Decidim
|
|
66
66
|
active: is_active_link?(manage_component_path(component)) ||
|
67
67
|
is_active_link?(decidim_admin_initiatives.edit_component_path(current_participatory_space, component)) ||
|
68
68
|
is_active_link?(decidim_admin_initiatives.edit_component_permissions_path(current_participatory_space, component)) ||
|
69
|
+
is_active_link?(decidim_admin_initiatives.component_share_tokens_path(current_participatory_space, component)) ||
|
69
70
|
participatory_space_active_link?(component),
|
70
71
|
if: component.manifest.admin_engine # && user_role_config.component_is_accessible?(component.manifest_name)
|
71
72
|
end
|
@@ -106,6 +107,13 @@ module Decidim
|
|
106
107
|
decidim_admin_initiatives.moderations_path(current_participatory_space),
|
107
108
|
icon_name: "flag-line",
|
108
109
|
if: allowed_to?(:read, :moderation)
|
110
|
+
|
111
|
+
menu.add_item :initiatives_share_tokens,
|
112
|
+
I18n.t("menu.share_tokens", scope: "decidim.admin"),
|
113
|
+
decidim_admin_initiatives.initiative_share_tokens_path(current_participatory_space),
|
114
|
+
active: is_active_link?(decidim_admin_initiatives.initiative_share_tokens_path(current_participatory_space)),
|
115
|
+
icon_name: "share-line",
|
116
|
+
if: allowed_to?(:read, :share_tokens, current_participatory_space:)
|
109
117
|
end
|
110
118
|
end
|
111
119
|
|
@@ -38,12 +38,19 @@ Decidim.register_participatory_space(:initiatives) do |participatory_space|
|
|
38
38
|
participatory_space.model_class_name = "Decidim::Initiative"
|
39
39
|
participatory_space.permissions_class_name = "Decidim::Initiatives::Permissions"
|
40
40
|
|
41
|
+
participatory_space.data_portable_entities = [
|
42
|
+
"Decidim::Initiative"
|
43
|
+
]
|
44
|
+
|
41
45
|
participatory_space.exports :initiatives do |export|
|
42
46
|
export.collection do
|
43
|
-
Decidim::Initiative
|
47
|
+
Decidim::Initiative.public_spaces
|
44
48
|
end
|
45
49
|
|
50
|
+
export.include_in_open_data = true
|
51
|
+
|
46
52
|
export.serializer Decidim::Initiatives::InitiativeSerializer
|
53
|
+
export.open_data_serializer Decidim::Initiatives::OpenDataInitiativeSerializer
|
47
54
|
end
|
48
55
|
|
49
56
|
participatory_space.seeds do
|
@@ -108,6 +108,7 @@ FactoryBot.define do
|
|
108
108
|
end
|
109
109
|
type { create(:initiatives_type, skip_injection:) }
|
110
110
|
scope { create(:scope, organization: type.organization, skip_injection:) }
|
111
|
+
taxonomy { create(:taxonomy, organization: type.organization, skip_injection:) }
|
111
112
|
supports_required { 1000 }
|
112
113
|
|
113
114
|
trait :with_user_extra_fields_collection do
|
@@ -124,8 +125,8 @@ FactoryBot.define do
|
|
124
125
|
description { generate_localized_description(:initiative_description, skip_injection:) }
|
125
126
|
organization
|
126
127
|
author { create(:user, :confirmed, organization:, skip_injection:) }
|
127
|
-
|
128
|
-
|
128
|
+
state { "open" }
|
129
|
+
published_at { Time.current.utc }
|
129
130
|
signature_type { "online" }
|
130
131
|
signature_start_date { Date.current - 1.day }
|
131
132
|
signature_end_date { Date.current + 120.days }
|
@@ -156,12 +157,8 @@ FactoryBot.define do
|
|
156
157
|
signature_end_date { nil }
|
157
158
|
end
|
158
159
|
|
159
|
-
trait :
|
160
|
-
state { "
|
161
|
-
end
|
162
|
-
|
163
|
-
trait :unpublished do
|
164
|
-
published_at { nil }
|
160
|
+
trait :open do
|
161
|
+
state { "open" }
|
165
162
|
end
|
166
163
|
|
167
164
|
trait :accepted do
|
data/lib/decidim/initiatives.rb
CHANGED
@@ -7,8 +7,14 @@ require "decidim/initiatives/admin_engine"
|
|
7
7
|
require "decidim/initiatives/participatory_space"
|
8
8
|
|
9
9
|
module Decidim
|
10
|
+
module Exporters
|
11
|
+
autoload :InitiativeVotesPDF, "decidim/exporters/initiative_votes_pdf"
|
12
|
+
end
|
13
|
+
|
10
14
|
# Base module for the initiatives engine.
|
11
15
|
module Initiatives
|
16
|
+
autoload :ApplicationFormPDF, "decidim/initiatives/application_form_pdf"
|
17
|
+
|
12
18
|
include ActiveSupport::Configurable
|
13
19
|
|
14
20
|
# Public setting that defines whether creation is allowed to any validated
|
@@ -32,7 +38,7 @@ module Decidim
|
|
32
38
|
|
33
39
|
# Components enabled for a new initiative
|
34
40
|
config_accessor :default_components do
|
35
|
-
[:pages, :meetings]
|
41
|
+
[:pages, :meetings, :blogs]
|
36
42
|
end
|
37
43
|
|
38
44
|
# Notifies when the given percentage of supports is reached for an
|
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: 2025-
|
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,112 +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'
|
68
|
+
version: 0.30.0.rc1
|
97
69
|
- !ruby/object:Gem::Dependency
|
98
70
|
name: decidim-dev
|
99
71
|
requirement: !ruby/object:Gem::Requirement
|
100
72
|
requirements:
|
101
73
|
- - '='
|
102
74
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
75
|
+
version: 0.30.0.rc1
|
104
76
|
type: :development
|
105
77
|
prerelease: false
|
106
78
|
version_requirements: !ruby/object:Gem::Requirement
|
107
79
|
requirements:
|
108
80
|
- - '='
|
109
81
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
82
|
+
version: 0.30.0.rc1
|
111
83
|
- !ruby/object:Gem::Dependency
|
112
84
|
name: decidim-meetings
|
113
85
|
requirement: !ruby/object:Gem::Requirement
|
114
86
|
requirements:
|
115
87
|
- - '='
|
116
88
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
89
|
+
version: 0.30.0.rc1
|
118
90
|
type: :development
|
119
91
|
prerelease: false
|
120
92
|
version_requirements: !ruby/object:Gem::Requirement
|
121
93
|
requirements:
|
122
94
|
- - '='
|
123
95
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
96
|
+
version: 0.30.0.rc1
|
125
97
|
description: Participants initiatives plugin for decidim.
|
126
98
|
email:
|
127
99
|
- jsperezg@gmail.com
|
@@ -140,8 +112,6 @@ files:
|
|
140
112
|
- app/cells/decidim/initiatives/initiative_g_cell.rb
|
141
113
|
- app/cells/decidim/initiatives/initiative_metadata_g_cell.rb
|
142
114
|
- app/cells/decidim/initiatives/initiative_s_cell.rb
|
143
|
-
- app/cells/decidim/initiatives_votes/vote/show.erb
|
144
|
-
- app/cells/decidim/initiatives_votes/vote_cell.rb
|
145
115
|
- app/commands/decidim/initiatives/admin/accept_initiative.rb
|
146
116
|
- app/commands/decidim/initiatives/admin/create_initiative_type.rb
|
147
117
|
- app/commands/decidim/initiatives/admin/create_initiative_type_scope.rb
|
@@ -178,9 +148,11 @@ files:
|
|
178
148
|
- app/controllers/decidim/initiatives/admin/application_controller.rb
|
179
149
|
- app/controllers/decidim/initiatives/admin/committee_requests_controller.rb
|
180
150
|
- app/controllers/decidim/initiatives/admin/component_permissions_controller.rb
|
151
|
+
- app/controllers/decidim/initiatives/admin/component_share_tokens_controller.rb
|
181
152
|
- app/controllers/decidim/initiatives/admin/components_controller.rb
|
182
153
|
- app/controllers/decidim/initiatives/admin/exports_controller.rb
|
183
154
|
- app/controllers/decidim/initiatives/admin/initiative_attachments_controller.rb
|
155
|
+
- app/controllers/decidim/initiatives/admin/initiative_share_tokens_controller.rb
|
184
156
|
- app/controllers/decidim/initiatives/admin/initiatives_controller.rb
|
185
157
|
- app/controllers/decidim/initiatives/admin/initiatives_permissions_controller.rb
|
186
158
|
- app/controllers/decidim/initiatives/admin/initiatives_settings_controller.rb
|
@@ -224,6 +196,7 @@ files:
|
|
224
196
|
- app/helpers/decidim/initiatives/application_helper.rb
|
225
197
|
- app/helpers/decidim/initiatives/initiative_helper.rb
|
226
198
|
- app/helpers/decidim/initiatives/initiatives_helper.rb
|
199
|
+
- app/helpers/decidim/initiatives/scopes_helper.rb
|
227
200
|
- app/helpers/decidim/initiatives/signature_type_options_helper.rb
|
228
201
|
- app/jobs/decidim/initiatives/export_initiatives_job.rb
|
229
202
|
- app/mailers/decidim/initiatives/initiatives_mailer.rb
|
@@ -237,10 +210,6 @@ files:
|
|
237
210
|
- app/packs/entrypoints/decidim_initiatives.js
|
238
211
|
- app/packs/entrypoints/decidim_initiatives_admin.js
|
239
212
|
- app/packs/entrypoints/decidim_initiatives_admin.scss
|
240
|
-
- app/packs/entrypoints/decidim_initiatives_initiatives_votes.js
|
241
|
-
- app/packs/entrypoints/decidim_initiatives_initiatives_votes.scss
|
242
|
-
- app/packs/entrypoints/decidim_initiatives_print.js
|
243
|
-
- app/packs/entrypoints/decidim_initiatives_print.scss
|
244
213
|
- app/packs/images/decidim/gamification/badges/decidim_gamification_badges_initiatives.svg
|
245
214
|
- app/packs/images/decidim/initiatives/decidim_initiatives.svg
|
246
215
|
- app/packs/src/decidim/initiatives/admin/initiatives_types.js
|
@@ -249,8 +218,6 @@ files:
|
|
249
218
|
- app/packs/src/decidim/initiatives/identity_selector_dialog.js
|
250
219
|
- app/packs/src/decidim/initiatives/scoped_type.js
|
251
220
|
- app/packs/stylesheets/decidim/initiatives/admin/initiatives.scss
|
252
|
-
- app/packs/stylesheets/decidim/initiatives/initiatives-votes.scss
|
253
|
-
- app/packs/stylesheets/decidim/initiatives/print-initiative.scss
|
254
221
|
- app/packs/stylesheets/initiatives.scss
|
255
222
|
- app/permissions/decidim/initiatives/admin/permissions.rb
|
256
223
|
- app/permissions/decidim/initiatives/permissions.rb
|
@@ -269,7 +236,9 @@ files:
|
|
269
236
|
- app/queries/decidim/initiatives/outdated_validating_initiatives.rb
|
270
237
|
- app/queries/decidim/initiatives/support_period_finished_initiatives.rb
|
271
238
|
- app/queries/decidim/initiatives/user_authorizations.rb
|
239
|
+
- app/serializers/decidim/initiatives/download_your_data_initiative_serializer.rb
|
272
240
|
- app/serializers/decidim/initiatives/initiative_serializer.rb
|
241
|
+
- app/serializers/decidim/initiatives/open_data_initiative_serializer.rb
|
273
242
|
- app/services/decidim/initiatives/data_encryptor.rb
|
274
243
|
- app/services/decidim/initiatives/diff_renderer.rb
|
275
244
|
- app/services/decidim/initiatives/dummy_timestamp.rb
|
@@ -285,10 +254,7 @@ files:
|
|
285
254
|
- app/views/decidim/initiatives/admin/exports/_dropdown.html.erb
|
286
255
|
- app/views/decidim/initiatives/admin/initiatives/_form.html.erb
|
287
256
|
- app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb
|
288
|
-
- app/views/decidim/initiatives/admin/initiatives/_signatures.html.erb
|
289
257
|
- app/views/decidim/initiatives/admin/initiatives/edit.html.erb
|
290
|
-
- app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.html.erb
|
291
|
-
- app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.pdf.erb
|
292
258
|
- app/views/decidim/initiatives/admin/initiatives/index.html.erb
|
293
259
|
- app/views/decidim/initiatives/admin/initiatives_settings/_form.html.erb
|
294
260
|
- app/views/decidim/initiatives/admin/initiatives_settings/edit.html.erb
|
@@ -320,7 +286,6 @@ files:
|
|
320
286
|
- app/views/decidim/initiatives/initiatives/_initiative_hero.html.erb
|
321
287
|
- app/views/decidim/initiatives/initiatives/_initiatives.html.erb
|
322
288
|
- app/views/decidim/initiatives/initiatives/_interactions.html.erb
|
323
|
-
- app/views/decidim/initiatives/initiatives/_linked_initiatives.html.erb
|
324
289
|
- app/views/decidim/initiatives/initiatives/_new_initiative_button.html.erb
|
325
290
|
- app/views/decidim/initiatives/initiatives/_no_initiatives_yet.html.erb
|
326
291
|
- app/views/decidim/initiatives/initiatives/_progress_bar.html.erb
|
@@ -331,7 +296,6 @@ files:
|
|
331
296
|
- app/views/decidim/initiatives/initiatives/edit.html.erb
|
332
297
|
- app/views/decidim/initiatives/initiatives/index.html.erb
|
333
298
|
- app/views/decidim/initiatives/initiatives/index.js.erb
|
334
|
-
- app/views/decidim/initiatives/initiatives/print.html.erb
|
335
299
|
- app/views/decidim/initiatives/initiatives/show.html.erb
|
336
300
|
- app/views/decidim/initiatives/initiatives_mailer/_initiative_link.html.erb
|
337
301
|
- app/views/decidim/initiatives/initiatives_mailer/notify_creation.html.erb
|
@@ -344,15 +308,14 @@ files:
|
|
344
308
|
- app/views/layouts/decidim/_initiative_header.html.erb
|
345
309
|
- app/views/layouts/decidim/_initiative_header_steps.html.erb
|
346
310
|
- app/views/layouts/decidim/_initiative_signature_creation_header.html.erb
|
311
|
+
- app/views/layouts/decidim/admin/_manage_initiatives.html.erb
|
347
312
|
- app/views/layouts/decidim/admin/initiative.html.erb
|
348
313
|
- app/views/layouts/decidim/admin/initiatives.html.erb
|
349
|
-
- app/views/layouts/decidim/admin/initiatives_votes.pdf.erb
|
350
314
|
- app/views/layouts/decidim/initiative.html.erb
|
351
315
|
- app/views/layouts/decidim/initiative_creation.html.erb
|
352
316
|
- app/views/layouts/decidim/initiative_head.html.erb
|
353
317
|
- app/views/layouts/decidim/initiative_signature_creation.html.erb
|
354
318
|
- config/assets.rb
|
355
|
-
- config/initializers/wicked_pdf.rb
|
356
319
|
- config/locales/am-ET.yml
|
357
320
|
- config/locales/ar-SA.yml
|
358
321
|
- config/locales/ar.yml
|
@@ -360,7 +323,6 @@ files:
|
|
360
323
|
- config/locales/bg.yml
|
361
324
|
- config/locales/bn-BD.yml
|
362
325
|
- config/locales/bs-BA.yml
|
363
|
-
- config/locales/ca-IT.yml
|
364
326
|
- config/locales/ca.yml
|
365
327
|
- config/locales/cs-CZ.yml
|
366
328
|
- config/locales/cs.yml
|
@@ -495,15 +457,18 @@ files:
|
|
495
457
|
- db/migrate/20210310120720_add_followable_counter_cache_to_initiatives.rb
|
496
458
|
- db/migrate/20220518053612_add_comments_enabled_to_initiative_types.rb
|
497
459
|
- db/migrate/20220527130640_create_decidim_initiatives_settings.rb
|
460
|
+
- db/migrate/20241127104718_add_taxonomy_to_initiatives_type_scope.rb
|
498
461
|
- decidim-initiatives.gemspec
|
499
462
|
- lib/decidim/api/initiative_api_type.rb
|
500
463
|
- lib/decidim/api/initiative_committee_member_type.rb
|
501
464
|
- lib/decidim/api/initiative_type.rb
|
502
465
|
- lib/decidim/api/initiative_type_interface.rb
|
466
|
+
- lib/decidim/exporters/initiative_votes_pdf.rb
|
503
467
|
- lib/decidim/initiatives.rb
|
504
468
|
- lib/decidim/initiatives/admin.rb
|
505
469
|
- lib/decidim/initiatives/admin_engine.rb
|
506
470
|
- lib/decidim/initiatives/api.rb
|
471
|
+
- lib/decidim/initiatives/application_form_pdf.rb
|
507
472
|
- lib/decidim/initiatives/content_blocks/registry_manager.rb
|
508
473
|
- lib/decidim/initiatives/current_locale.rb
|
509
474
|
- lib/decidim/initiatives/engine.rb
|
@@ -533,14 +498,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
533
498
|
requirements:
|
534
499
|
- - "~>"
|
535
500
|
- !ruby/object:Gem::Version
|
536
|
-
version: 3.
|
501
|
+
version: 3.3.0
|
537
502
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
538
503
|
requirements:
|
539
504
|
- - ">="
|
540
505
|
- !ruby/object:Gem::Version
|
541
506
|
version: '0'
|
542
507
|
requirements: []
|
543
|
-
rubygems_version: 3.
|
508
|
+
rubygems_version: 3.5.11
|
544
509
|
signing_key:
|
545
510
|
specification_version: 4
|
546
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>
|