decidim-initiatives 0.23.0 → 0.24.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/stylesheet/decidim/initiatives/initiatives.scss +6 -0
- data/app/assets/stylesheet/decidim/initiatives/print-initiative.css.scss +22 -0
- data/app/cells/decidim/initiatives/content_blocks/highlighted_initiatives/show.erb +4 -8
- data/app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_cell.rb +5 -1
- data/app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_settings_form/show.erb +2 -1
- data/app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_settings_form_cell.rb +12 -1
- data/app/commands/decidim/initiatives/admin/update_initiative.rb +3 -3
- data/app/commands/decidim/initiatives/admin/update_initiative_answer.rb +3 -3
- data/app/commands/decidim/initiatives/approve_membership_request.rb +40 -0
- data/app/commands/decidim/initiatives/create_initiative.rb +5 -4
- data/app/commands/decidim/initiatives/revoke_membership_request.rb +40 -0
- data/app/commands/decidim/initiatives/send_initiative_to_technical_validation.rb +57 -0
- data/app/commands/decidim/initiatives/spawn_committee_request.rb +18 -0
- data/app/commands/decidim/initiatives/update_initiative.rb +74 -0
- data/app/controllers/decidim/initiatives/admin/committee_requests_controller.rb +15 -4
- data/app/controllers/decidim/initiatives/admin/initiatives_controller.rb +1 -1
- data/app/controllers/decidim/initiatives/admin/moderations/reports_controller.rb +18 -0
- data/app/controllers/decidim/initiatives/committee_requests_controller.rb +32 -0
- data/app/controllers/decidim/initiatives/initiative_signatures_controller.rb +1 -3
- data/app/controllers/decidim/initiatives/initiatives_controller.rb +58 -1
- data/app/events/decidim/initiatives/approve_membership_request_event.rb +61 -0
- data/app/events/decidim/initiatives/initiative_sent_to_technical_validation_event.rb +19 -0
- data/app/events/decidim/initiatives/revoke_membership_request_event.rb +61 -0
- data/app/events/decidim/initiatives/spawn_committee_request_event.rb +61 -0
- data/app/forms/decidim/initiatives/admin/initiative_form.rb +8 -4
- data/app/forms/decidim/initiatives/admin/initiative_type_form.rb +3 -0
- data/app/forms/decidim/initiatives/initiative_form.rb +25 -2
- data/app/forms/decidim/initiatives/vote_form.rb +3 -1
- data/app/helpers/decidim/initiatives/admin/initiative_admin_menu_helper.rb +15 -0
- data/app/helpers/decidim/initiatives/create_initiative_helper.rb +3 -2
- data/app/models/concerns/decidim/initiatives/has_area.rb +1 -1
- data/app/models/decidim/initiative.rb +0 -1
- data/app/permissions/decidim/initiatives/admin/permissions.rb +5 -4
- data/app/permissions/decidim/initiatives/permissions.rb +47 -20
- data/app/presenters/decidim/initiatives/admin_log/initiative_presenter.rb +2 -2
- data/app/queries/decidim/initiatives/initiatives_promoted.rb +1 -1
- data/app/queries/decidim/initiatives/organization_prioritized_initiatives.rb +13 -2
- data/app/serializers/decidim/initiatives/initiative_serializer.rb +3 -0
- data/app/services/decidim/initiatives/dummy_timestamp.rb +1 -1
- data/app/services/decidim/initiatives/initiative_search.rb +15 -13
- data/app/services/decidim/initiatives/pdf_signature_example.rb +27 -27
- data/app/views/decidim/initiatives/admin/initiatives/edit.html.erb +1 -1
- data/app/views/decidim/initiatives/admin/initiatives/index.html.erb +6 -0
- data/app/views/decidim/initiatives/admin/initiatives_type_scopes/edit.html.erb +24 -17
- data/app/views/decidim/initiatives/admin/initiatives_type_scopes/new.html.erb +17 -11
- data/app/views/decidim/initiatives/create_initiative/_finish_help.html.erb +2 -7
- data/app/views/decidim/initiatives/create_initiative/fill_data.html.erb +4 -17
- data/app/views/decidim/initiatives/create_initiative/finish.html.erb +11 -11
- data/app/views/decidim/initiatives/initiative_signatures/error_on_vote.js.erb +5 -0
- data/app/views/decidim/initiatives/initiatives/_committee_members.html.erb +73 -0
- data/app/views/decidim/initiatives/initiatives/_form.html.erb +112 -0
- data/app/views/decidim/initiatives/initiatives/_result.html.erb +1 -1
- data/app/views/decidim/initiatives/initiatives/_send_to_technical_validation.html.erb +8 -0
- data/app/views/decidim/initiatives/initiatives/edit.html.erb +78 -0
- data/app/views/decidim/initiatives/initiatives/print.html.erb +156 -0
- data/app/views/decidim/initiatives/initiatives/show.html.erb +19 -7
- data/app/views/layouts/decidim/admin/initiative.html.erb +0 -1
- data/app/views/layouts/decidim/admin/initiatives.html.erb +2 -15
- data/config/locales/ar.yml +2 -28
- data/config/locales/ca.yml +62 -32
- data/config/locales/cs.yml +106 -46
- data/config/locales/de.yml +147 -64
- data/config/locales/el.yml +2 -34
- data/config/locales/en.yml +94 -34
- data/config/locales/es-MX.yml +8 -35
- data/config/locales/es-PY.yml +8 -35
- data/config/locales/es.yml +8 -35
- data/config/locales/eu.yml +2 -28
- data/config/locales/fi-plain.yml +94 -34
- data/config/locales/fi.yml +94 -34
- data/config/locales/fr-CA.yml +94 -34
- data/config/locales/fr.yml +97 -37
- data/config/locales/gl.yml +2 -28
- data/config/locales/hu.yml +2 -31
- data/config/locales/id-ID.yml +2 -28
- data/config/locales/is-IS.yml +2 -13
- data/config/locales/it.yml +2 -34
- data/config/locales/ja.yml +2 -35
- data/config/locales/lv.yml +2 -32
- data/config/locales/nl.yml +37 -40
- data/config/locales/no.yml +20 -31
- data/config/locales/pl.yml +86 -33
- data/config/locales/pt-BR.yml +2 -28
- data/config/locales/pt.yml +2 -34
- data/config/locales/ro-RO.yml +2 -34
- data/config/locales/ru.yml +2 -21
- data/config/locales/si-LK.yml +1 -0
- data/config/locales/sk.yml +2 -30
- data/config/locales/sr-CS.yml +0 -7
- data/config/locales/sv.yml +5 -37
- data/config/locales/sw-KE.yml +1 -0
- data/config/locales/tr-TR.yml +266 -136
- data/config/locales/uk.yml +2 -21
- data/config/locales/zh-CN.yml +2 -35
- data/db/migrate/20171017095143_update_initiative_scoped_type.rb +0 -1
- data/db/migrate/20191107134847_add_scopes_to_initiatives_votes.rb +1 -1
- data/db/migrate/20191118105634_allow_multiple_offline_votes.rb +1 -1
- data/lib/decidim/api/initiative_api_type.rb +26 -0
- data/lib/decidim/api/initiative_committee_member_type.rb +18 -0
- data/lib/decidim/api/initiative_type.rb +49 -0
- data/lib/decidim/api/initiative_type_interface.rb +8 -3
- data/lib/decidim/initiatives.rb +1 -0
- data/lib/decidim/initiatives/admin_engine.rb +23 -1
- data/lib/decidim/initiatives/api.rb +3 -0
- data/lib/decidim/initiatives/engine.rb +14 -9
- data/lib/decidim/initiatives/initiatives_filter_form_builder.rb +19 -12
- data/lib/decidim/initiatives/participatory_space.rb +6 -6
- data/lib/decidim/initiatives/query_extensions.rb +42 -19
- data/lib/decidim/initiatives/test/factories.rb +36 -0
- data/lib/decidim/initiatives/version.rb +1 -1
- metadata +40 -22
- data/app/types/decidim/initiatives/initiative_api_type.rb +0 -26
- data/app/types/decidim/initiatives/initiative_committee_member_type.rb +0 -18
- data/app/types/decidim/initiatives/initiative_type.rb +0 -42
@@ -16,6 +16,24 @@ module Decidim
|
|
16
16
|
def initiative_types_select(name, collection, options = {})
|
17
17
|
selected = object.send(name)
|
18
18
|
|
19
|
+
types = types_for_options_for_select(selected, collection)
|
20
|
+
|
21
|
+
prompt = options.delete(:prompt)
|
22
|
+
remote_path = options.delete(:remote_path) || false
|
23
|
+
multiple = options.delete(:multiple) || false
|
24
|
+
html_options = {
|
25
|
+
multiple: multiple,
|
26
|
+
class: "select2",
|
27
|
+
"data-remote-path" => remote_path,
|
28
|
+
"data-placeholder" => prompt
|
29
|
+
}
|
30
|
+
|
31
|
+
select(name, @template.options_for_select(types, selected: selected), options, html_options)
|
32
|
+
end
|
33
|
+
|
34
|
+
private
|
35
|
+
|
36
|
+
def types_for_options_for_select(selected, collection)
|
19
37
|
if selected.present?
|
20
38
|
if selected == "all"
|
21
39
|
types = collection.all.map do |type|
|
@@ -31,18 +49,7 @@ module Decidim
|
|
31
49
|
else
|
32
50
|
types = []
|
33
51
|
end
|
34
|
-
|
35
|
-
prompt = options.delete(:prompt)
|
36
|
-
remote_path = options.delete(:remote_path) || false
|
37
|
-
multiple = options.delete(:multiple) || false
|
38
|
-
html_options = {
|
39
|
-
multiple: multiple,
|
40
|
-
class: "select2",
|
41
|
-
"data-remote-path" => remote_path,
|
42
|
-
"data-placeholder" => prompt
|
43
|
-
}
|
44
|
-
|
45
|
-
select(name, @template.options_for_select(types, selected: selected), options, html_options)
|
52
|
+
types
|
46
53
|
end
|
47
54
|
end
|
48
55
|
end
|
@@ -56,8 +56,8 @@ Decidim.register_participatory_space(:initiatives) do |participatory_space|
|
|
56
56
|
|
57
57
|
3.times do |n|
|
58
58
|
type = Decidim::InitiativesType.create!(
|
59
|
-
title: Decidim::Faker::Localized.sentence(5),
|
60
|
-
description: Decidim::Faker::Localized.sentence(25),
|
59
|
+
title: Decidim::Faker::Localized.sentence(word_count: 5),
|
60
|
+
description: Decidim::Faker::Localized.sentence(word_count: 25),
|
61
61
|
organization: organization,
|
62
62
|
banner_image: File.new(File.join(seeds_root, "city2.jpeg"))
|
63
63
|
)
|
@@ -76,8 +76,8 @@ Decidim.register_participatory_space(:initiatives) do |participatory_space|
|
|
76
76
|
Decidim::Initiative.skip_callback(:create, :after, :notify_creation, raise: false)
|
77
77
|
|
78
78
|
params = {
|
79
|
-
title: Decidim::Faker::Localized.sentence(3),
|
80
|
-
description: Decidim::Faker::Localized.sentence(25),
|
79
|
+
title: Decidim::Faker::Localized.sentence(word_count: 3),
|
80
|
+
description: Decidim::Faker::Localized.sentence(word_count: 25),
|
81
81
|
scoped_type: Decidim::InitiativesTypeScope.reorder(Arel.sql("RANDOM()")).first,
|
82
82
|
state: state,
|
83
83
|
signature_type: "online",
|
@@ -101,8 +101,8 @@ Decidim.register_participatory_space(:initiatives) do |participatory_space|
|
|
101
101
|
Decidim::Comments::Seed.comments_for(initiative)
|
102
102
|
|
103
103
|
Decidim::Attachment.create!(
|
104
|
-
title: Decidim::Faker::Localized.sentence(2),
|
105
|
-
description: Decidim::Faker::Localized.sentence(5),
|
104
|
+
title: Decidim::Faker::Localized.sentence(word_count: 2),
|
105
|
+
description: Decidim::Faker::Localized.sentence(word_count: 5),
|
106
106
|
attached_to: initiative,
|
107
107
|
file: File.new(File.join(seeds_root, "city.jpeg"))
|
108
108
|
)
|
@@ -10,31 +10,54 @@ module Decidim
|
|
10
10
|
# type - A GraphQL::BaseType to extend.
|
11
11
|
#
|
12
12
|
# Returns nothing.
|
13
|
-
def self.
|
14
|
-
type.field :
|
15
|
-
type !types[InitiativeApiType]
|
13
|
+
def self.included(type)
|
14
|
+
type.field :initiatives_types, [InitiativeApiType], null: false do
|
16
15
|
description "Lists all initiative types"
|
16
|
+
end
|
17
|
+
|
18
|
+
type.field :initiatives_type, InitiativeApiType, null: true, description: "Finds a initiative type" do
|
19
|
+
argument :id, GraphQL::Types::ID, "The ID of the initiative type", required: true
|
20
|
+
end
|
17
21
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
22
|
+
type.field :initiatives,
|
23
|
+
[Decidim::Initiatives::InitiativeType],
|
24
|
+
null: true,
|
25
|
+
description: "Lists all initiatives" do
|
26
|
+
argument :filter, Decidim::ParticipatoryProcesses::ParticipatoryProcessInputFilter, "This argument lets you filter the results", required: false
|
27
|
+
argument :order, Decidim::ParticipatoryProcesses::ParticipatoryProcessInputSort, "This argument lets you order the results", required: false
|
23
28
|
end
|
24
29
|
|
25
|
-
type.field :
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
resolve lambda { |_obj, args, ctx|
|
31
|
-
Decidim::InitiativesType.find_by(
|
32
|
-
organization: ctx[:current_organization],
|
33
|
-
id: args[:id]
|
34
|
-
)
|
35
|
-
}
|
30
|
+
type.field :initiative,
|
31
|
+
Decidim::Initiatives::InitiativeType,
|
32
|
+
null: true,
|
33
|
+
description: "Finds a initiative" do
|
34
|
+
argument :id, GraphQL::Types::ID, "The ID of the participatory space", required: false
|
36
35
|
end
|
37
36
|
end
|
37
|
+
|
38
|
+
def initiatives_types
|
39
|
+
Decidim::InitiativesType.where(
|
40
|
+
organization: context[:current_organization]
|
41
|
+
)
|
42
|
+
end
|
43
|
+
|
44
|
+
def initiatives_type(id:)
|
45
|
+
Decidim::InitiativesType.find_by(
|
46
|
+
organization: context[:current_organization],
|
47
|
+
id: id
|
48
|
+
)
|
49
|
+
end
|
50
|
+
|
51
|
+
def initiatives(filter: {}, order: {})
|
52
|
+
manifest = Decidim.participatory_space_manifests.select { |m| m.name == :initiatives }.first
|
53
|
+
Decidim::Core::ParticipatorySpaceListBase.new(manifest: manifest).call(object, { filter: filter, order: order }, context)
|
54
|
+
end
|
55
|
+
|
56
|
+
def initiative(id: nil)
|
57
|
+
manifest = Decidim.participatory_space_manifests.select { |m| m.name == :initiatives }.first
|
58
|
+
|
59
|
+
Decidim::Core::ParticipatorySpaceFinderBase.new(manifest: manifest).call(object, { id: id }, context)
|
60
|
+
end
|
38
61
|
end
|
39
62
|
end
|
40
63
|
end
|
@@ -190,6 +190,42 @@ FactoryBot.define do
|
|
190
190
|
type: create(:initiatives_type, :with_user_extra_fields_collection, organization: organization))
|
191
191
|
end
|
192
192
|
end
|
193
|
+
|
194
|
+
trait :with_area do
|
195
|
+
area { create(:area, organization: organization) }
|
196
|
+
end
|
197
|
+
|
198
|
+
trait :with_documents do
|
199
|
+
transient do
|
200
|
+
documents_number { 2 }
|
201
|
+
end
|
202
|
+
|
203
|
+
after :create do |initiative, evaluator|
|
204
|
+
evaluator.documents_number.times do
|
205
|
+
initiative.attachments << create(
|
206
|
+
:attachment,
|
207
|
+
:with_pdf,
|
208
|
+
attached_to: initiative
|
209
|
+
)
|
210
|
+
end
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
trait :with_photos do
|
215
|
+
transient do
|
216
|
+
photos_number { 2 }
|
217
|
+
end
|
218
|
+
|
219
|
+
after :create do |initiative, evaluator|
|
220
|
+
evaluator.photos_number.times do
|
221
|
+
initiative.attachments << create(
|
222
|
+
:attachment,
|
223
|
+
:with_image,
|
224
|
+
attached_to: initiative
|
225
|
+
)
|
226
|
+
end
|
227
|
+
end
|
228
|
+
end
|
193
229
|
end
|
194
230
|
|
195
231
|
factory :initiative_user_vote, class: "Decidim::InitiativesVote" do
|
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.24.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Salvador Perez Garcia
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim-admin
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.24.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.24.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.24.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.24.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.24.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.24.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.24.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.
|
68
|
+
version: 0.24.0.rc1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: kaminari
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -162,14 +162,14 @@ dependencies:
|
|
162
162
|
requirements:
|
163
163
|
- - '='
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version: 0.
|
165
|
+
version: 0.24.0.rc1
|
166
166
|
type: :development
|
167
167
|
prerelease: false
|
168
168
|
version_requirements: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
170
|
- - '='
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: 0.
|
172
|
+
version: 0.24.0.rc1
|
173
173
|
description: Citizen initiatives plugin for decidim.
|
174
174
|
email:
|
175
175
|
- jsperezg@gmail.com
|
@@ -216,10 +216,14 @@ files:
|
|
216
216
|
- app/commands/decidim/initiatives/admin/update_initiative_answer.rb
|
217
217
|
- app/commands/decidim/initiatives/admin/update_initiative_type.rb
|
218
218
|
- app/commands/decidim/initiatives/admin/update_initiative_type_scope.rb
|
219
|
+
- app/commands/decidim/initiatives/approve_membership_request.rb
|
219
220
|
- app/commands/decidim/initiatives/attachment_methods.rb
|
220
221
|
- app/commands/decidim/initiatives/create_initiative.rb
|
222
|
+
- app/commands/decidim/initiatives/revoke_membership_request.rb
|
223
|
+
- app/commands/decidim/initiatives/send_initiative_to_technical_validation.rb
|
221
224
|
- app/commands/decidim/initiatives/spawn_committee_request.rb
|
222
225
|
- app/commands/decidim/initiatives/unvote_initiative.rb
|
226
|
+
- app/commands/decidim/initiatives/update_initiative.rb
|
223
227
|
- app/commands/decidim/initiatives/validate_mobile_phone.rb
|
224
228
|
- app/commands/decidim/initiatives/validate_sms_code.rb
|
225
229
|
- app/commands/decidim/initiatives/vote_initiative.rb
|
@@ -241,6 +245,7 @@ files:
|
|
241
245
|
- app/controllers/decidim/initiatives/admin/initiatives_type_scopes_controller.rb
|
242
246
|
- app/controllers/decidim/initiatives/admin/initiatives_types_controller.rb
|
243
247
|
- app/controllers/decidim/initiatives/admin/initiatives_types_permissions_controller.rb
|
248
|
+
- app/controllers/decidim/initiatives/admin/moderations/reports_controller.rb
|
244
249
|
- app/controllers/decidim/initiatives/admin/moderations_controller.rb
|
245
250
|
- app/controllers/decidim/initiatives/application_controller.rb
|
246
251
|
- app/controllers/decidim/initiatives/authorization_sign_modals_controller.rb
|
@@ -256,10 +261,14 @@ files:
|
|
256
261
|
- app/controllers/decidim/initiatives/widgets_controller.rb
|
257
262
|
- app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
|
258
263
|
- app/events/decidim/initiatives/admin/support_threshold_reached_event.rb
|
264
|
+
- app/events/decidim/initiatives/approve_membership_request_event.rb
|
259
265
|
- app/events/decidim/initiatives/create_initiative_event.rb
|
260
266
|
- app/events/decidim/initiatives/endorse_initiative_event.rb
|
261
267
|
- app/events/decidim/initiatives/extend_initiative_event.rb
|
268
|
+
- app/events/decidim/initiatives/initiative_sent_to_technical_validation_event.rb
|
262
269
|
- app/events/decidim/initiatives/milestone_completed_event.rb
|
270
|
+
- app/events/decidim/initiatives/revoke_membership_request_event.rb
|
271
|
+
- app/events/decidim/initiatives/spawn_committee_request_event.rb
|
263
272
|
- app/forms/decidim/initiatives/admin/initiative_answer_form.rb
|
264
273
|
- app/forms/decidim/initiatives/admin/initiative_form.rb
|
265
274
|
- app/forms/decidim/initiatives/admin/initiative_type_form.rb
|
@@ -269,6 +278,7 @@ files:
|
|
269
278
|
- app/forms/decidim/initiatives/previous_form.rb
|
270
279
|
- app/forms/decidim/initiatives/select_initiative_type_form.rb
|
271
280
|
- app/forms/decidim/initiatives/vote_form.rb
|
281
|
+
- app/helpers/decidim/initiatives/admin/initiative_admin_menu_helper.rb
|
272
282
|
- app/helpers/decidim/initiatives/application_helper.rb
|
273
283
|
- app/helpers/decidim/initiatives/create_initiative_helper.rb
|
274
284
|
- app/helpers/decidim/initiatives/initiative_helper.rb
|
@@ -305,9 +315,6 @@ files:
|
|
305
315
|
- app/services/decidim/initiatives/pdf_signature_example.rb
|
306
316
|
- app/services/decidim/initiatives/progress_notifier.rb
|
307
317
|
- app/services/decidim/initiatives/status_change_notifier.rb
|
308
|
-
- app/types/decidim/initiatives/initiative_api_type.rb
|
309
|
-
- app/types/decidim/initiatives/initiative_committee_member_type.rb
|
310
|
-
- app/types/decidim/initiatives/initiative_type.rb
|
311
318
|
- app/views/decidim/initiatives/_initiative.html.erb
|
312
319
|
- app/views/decidim/initiatives/admin/answers/_info_initiative.html.erb
|
313
320
|
- app/views/decidim/initiatives/admin/answers/edit.html.erb
|
@@ -337,6 +344,7 @@ files:
|
|
337
344
|
- app/views/decidim/initiatives/create_initiative/select_initiative_type.html.erb
|
338
345
|
- app/views/decidim/initiatives/create_initiative/show_similar_initiatives.html.erb
|
339
346
|
- app/views/decidim/initiatives/initiative_signatures/_wizard_steps.html.erb
|
347
|
+
- app/views/decidim/initiatives/initiative_signatures/error_on_vote.js.erb
|
340
348
|
- app/views/decidim/initiatives/initiative_signatures/fill_personal_data.html.erb
|
341
349
|
- app/views/decidim/initiatives/initiative_signatures/finish.html.erb
|
342
350
|
- app/views/decidim/initiatives/initiative_signatures/sms_code.html.erb
|
@@ -344,9 +352,11 @@ files:
|
|
344
352
|
- app/views/decidim/initiatives/initiative_signatures/update_buttons_and_counters.js.erb
|
345
353
|
- app/views/decidim/initiatives/initiative_votes/update_buttons_and_counters.js.erb
|
346
354
|
- app/views/decidim/initiatives/initiatives/_author.html.erb
|
355
|
+
- app/views/decidim/initiatives/initiatives/_committee_members.html.erb
|
347
356
|
- app/views/decidim/initiatives/initiatives/_count.html.erb
|
348
357
|
- app/views/decidim/initiatives/initiatives/_filters.html.erb
|
349
358
|
- app/views/decidim/initiatives/initiatives/_filters_small_view.html.erb
|
359
|
+
- app/views/decidim/initiatives/initiatives/_form.html.erb
|
350
360
|
- app/views/decidim/initiatives/initiatives/_index_header.html.erb
|
351
361
|
- app/views/decidim/initiatives/initiatives/_initiative_badge.html.erb
|
352
362
|
- app/views/decidim/initiatives/initiatives/_initiatives.html.erb
|
@@ -355,11 +365,14 @@ files:
|
|
355
365
|
- app/views/decidim/initiatives/initiatives/_no_initiatives_yet.html.erb
|
356
366
|
- app/views/decidim/initiatives/initiatives/_progress_bar.html.erb
|
357
367
|
- app/views/decidim/initiatives/initiatives/_result.html.erb
|
368
|
+
- app/views/decidim/initiatives/initiatives/_send_to_technical_validation.html.erb
|
358
369
|
- app/views/decidim/initiatives/initiatives/_tags.html.erb
|
359
370
|
- app/views/decidim/initiatives/initiatives/_vote_button.html.erb
|
360
371
|
- app/views/decidim/initiatives/initiatives/_vote_cabin.html.erb
|
372
|
+
- app/views/decidim/initiatives/initiatives/edit.html.erb
|
361
373
|
- app/views/decidim/initiatives/initiatives/index.html.erb
|
362
374
|
- app/views/decidim/initiatives/initiatives/index.js.erb
|
375
|
+
- app/views/decidim/initiatives/initiatives/print.html.erb
|
363
376
|
- app/views/decidim/initiatives/initiatives/show.html.erb
|
364
377
|
- app/views/decidim/initiatives/initiatives_mailer/_initiative_link.html.erb
|
365
378
|
- app/views/decidim/initiatives/initiatives_mailer/notify_creation.html.erb
|
@@ -434,12 +447,14 @@ files:
|
|
434
447
|
- config/locales/pt.yml
|
435
448
|
- config/locales/ro-RO.yml
|
436
449
|
- config/locales/ru.yml
|
450
|
+
- config/locales/si-LK.yml
|
437
451
|
- config/locales/sk-SK.yml
|
438
452
|
- config/locales/sk.yml
|
439
453
|
- config/locales/sl.yml
|
440
454
|
- config/locales/so-SO.yml
|
441
455
|
- config/locales/sr-CS.yml
|
442
456
|
- config/locales/sv.yml
|
457
|
+
- config/locales/sw-KE.yml
|
443
458
|
- config/locales/ti-ER.yml
|
444
459
|
- config/locales/tr-TR.yml
|
445
460
|
- config/locales/uk.yml
|
@@ -505,6 +520,9 @@ files:
|
|
505
520
|
- db/migrate/20200827154214_add_commentable_counter_cache_to_initiatives.rb
|
506
521
|
- db/seeds/city.jpeg
|
507
522
|
- db/seeds/city2.jpeg
|
523
|
+
- lib/decidim/api/initiative_api_type.rb
|
524
|
+
- lib/decidim/api/initiative_committee_member_type.rb
|
525
|
+
- lib/decidim/api/initiative_type.rb
|
508
526
|
- lib/decidim/api/initiative_type_interface.rb
|
509
527
|
- lib/decidim/initiatives.rb
|
510
528
|
- lib/decidim/initiatives/admin.rb
|
@@ -523,7 +541,7 @@ homepage: https://github.com/decidim/decidim
|
|
523
541
|
licenses:
|
524
542
|
- AGPL-3.0
|
525
543
|
metadata: {}
|
526
|
-
post_install_message:
|
544
|
+
post_install_message:
|
527
545
|
rdoc_options: []
|
528
546
|
require_paths:
|
529
547
|
- lib
|
@@ -531,15 +549,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
531
549
|
requirements:
|
532
550
|
- - ">="
|
533
551
|
- !ruby/object:Gem::Version
|
534
|
-
version: '2.
|
552
|
+
version: '2.7'
|
535
553
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
536
554
|
requirements:
|
537
|
-
- - "
|
555
|
+
- - ">"
|
538
556
|
- !ruby/object:Gem::Version
|
539
|
-
version:
|
557
|
+
version: 1.3.1
|
540
558
|
requirements: []
|
541
|
-
rubygems_version: 3.
|
542
|
-
signing_key:
|
559
|
+
rubygems_version: 3.1.2
|
560
|
+
signing_key:
|
543
561
|
specification_version: 4
|
544
562
|
summary: Decidim initiatives module
|
545
563
|
test_files: []
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Initiatives
|
5
|
-
InitiativeApiType = GraphQL::ObjectType.define do
|
6
|
-
name "InitiativeType"
|
7
|
-
description "An initiative type"
|
8
|
-
|
9
|
-
field :id, !types.ID, "The internal ID for this initiative type"
|
10
|
-
field :title, Decidim::Core::TranslatedFieldType, "Initiative type name"
|
11
|
-
field :description, Decidim::Core::TranslatedFieldType, "This is the initiative type description"
|
12
|
-
field :createdAt, Decidim::Core::DateTimeType, "The date this initiative type was created", property: :created_at
|
13
|
-
field :updatedAt, Decidim::Core::DateTimeType, "The date this initiative type was updated", property: :updated_at
|
14
|
-
field :bannerImage, types.String, "Banner image", property: :banner_image
|
15
|
-
field :collectUserExtraFields, types.Boolean, "Collect participant personal data on signature", property: :collect_user_extra_fields
|
16
|
-
field :extraFieldsLegalInformation, types.String, "Legal information about the collection of personal data", property: :extra_fields_legal_information
|
17
|
-
field :minimumCommitteeMembers, types.Int, "Minimum of committee members", property: :minimum_committee_members
|
18
|
-
field :validateSmsCodeOnVotes, types.Boolean, "Add SMS code validation step to signature process", property: :validate_sms_code_on_votes
|
19
|
-
field :undoOnlineSignaturesEnabled, types.Boolean, "Enable participants to undo their online signatures", property: :undo_online_signatures_enabled
|
20
|
-
field :promotingComitteeEnabled, types.Boolean, "If promoting committee is enabled", property: :promoting_committee_enabled
|
21
|
-
field :signatureType, types.String, "Signature type of the initiative", property: :signature_type
|
22
|
-
|
23
|
-
field :initiatives, !types[Decidim::Initiatives::InitiativeType], "The initiatives that have this type"
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|