decidim-consultations 0.19.1 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/decidim/consultations/icon.svg +1 -3
- data/app/assets/images/decidim/consultations/icon2.svg +1 -88
- data/app/assets/javascripts/decidim/consultations/utils_multiple.js +1 -1
- data/app/assets/stylesheets/decidim/consultations/_question.scss +0 -6
- data/app/assets/stylesheets/decidim/consultations/_question_multiple_votes.scss +22 -0
- data/app/assets/stylesheets/decidim/consultations/consultations.scss +1 -0
- data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-header.scss +0 -1
- data/app/cells/decidim/consultations/consultation_m/data.erb +1 -1
- data/app/cells/decidim/consultations/consultation_m/footer.erb +1 -1
- data/app/cells/decidim/consultations/content_blocks/highlighted_consultations/show.erb +3 -3
- data/app/commands/decidim/consultations/admin/create_response.rb +2 -1
- data/app/commands/decidim/consultations/admin/create_response_group.rb +40 -0
- data/app/commands/decidim/consultations/admin/destroy_response_group.rb +39 -0
- data/app/commands/decidim/consultations/admin/update_consultation.rb +9 -4
- data/app/commands/decidim/consultations/admin/update_response.rb +3 -2
- data/app/commands/decidim/consultations/admin/update_response_group.rb +46 -0
- data/app/controllers/concerns/decidim/consultations/admin/filterable.rb +27 -0
- data/app/controllers/decidim/consultations/admin/consultations_controller.rb +2 -1
- data/app/controllers/decidim/consultations/admin/response_groups_controller.rb +88 -0
- data/app/controllers/decidim/consultations/admin/responses_controller.rb +1 -0
- data/app/forms/decidim/consultations/admin/consultation_form.rb +5 -6
- data/app/forms/decidim/consultations/admin/question_form.rb +5 -6
- data/app/forms/decidim/consultations/admin/response_form.rb +5 -0
- data/app/forms/decidim/consultations/admin/response_group_form.rb +18 -0
- data/app/helpers/decidim/consultations/admin/questions_helper.rb +11 -0
- data/app/models/decidim/consultation.rb +25 -0
- data/app/models/decidim/consultations/question.rb +34 -1
- data/app/models/decidim/consultations/response.rb +11 -0
- data/app/models/decidim/consultations/response_group.rb +23 -0
- data/app/permissions/decidim/consultations/admin/permissions.rb +16 -0
- data/app/permissions/decidim/consultations/permissions.rb +2 -0
- data/app/presenters/decidim/consultations/question_stats_presenter.rb +1 -1
- data/app/types/decidim/consultations/consultation_question_type.rb +57 -0
- data/app/types/decidim/consultations/consultation_type.rb +32 -0
- data/app/views/decidim/consultations/admin/consultations/index.html.erb +3 -2
- data/app/views/decidim/consultations/admin/response_groups/_form.html.erb +11 -0
- data/app/views/decidim/consultations/admin/response_groups/edit.html.erb +18 -0
- data/app/views/decidim/consultations/admin/response_groups/index.html.erb +56 -0
- data/app/views/decidim/consultations/admin/response_groups/new.html.erb +13 -0
- data/app/views/decidim/consultations/admin/responses/_form.html.erb +3 -0
- data/app/views/decidim/consultations/admin/responses/index.html.erb +12 -1
- data/app/views/decidim/consultations/consultations/_consultation_card.html.erb +3 -3
- data/app/views/decidim/consultations/consultations/_consultation_details.html.erb +2 -2
- data/app/views/decidim/consultations/consultations/_filters.html.erb +9 -4
- data/app/views/decidim/consultations/consultations/_question.html.erb +2 -2
- data/app/views/decidim/consultations/consultations/index.html.erb +3 -3
- data/app/views/decidim/consultations/question_multiple_votes/_form.html.erb +14 -10
- data/app/views/decidim/consultations/question_multiple_votes/show.html.erb +8 -2
- data/app/views/decidim/consultations/questions/_vote_button.html.erb +70 -67
- data/app/views/decidim/consultations/questions/_vote_modal.html.erb +1 -1
- data/app/views/decidim/consultations/questions/_vote_modal_confirm.html.erb +1 -1
- data/app/views/decidim/consultations/questions/show.html.erb +4 -4
- data/app/views/layouts/decidim/_question_components.html.erb +3 -3
- data/app/views/layouts/decidim/_question_header.html.erb +1 -1
- data/app/views/layouts/decidim/admin/question.html.erb +1 -1
- data/app/views/layouts/decidim/consultation.html.erb +1 -0
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +29 -1
- data/config/locales/bg-BG.yml +1 -0
- data/config/locales/bg.yml +1 -0
- data/config/locales/ca.yml +29 -1
- data/config/locales/cs.yml +37 -9
- data/config/locales/da-DK.yml +1 -0
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +82 -1
- data/config/locales/el-GR.yml +1 -0
- data/config/locales/el.yml +377 -0
- data/config/locales/en.yml +29 -1
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +29 -1
- data/config/locales/es-PY.yml +29 -1
- data/config/locales/es.yml +29 -1
- data/config/locales/et-EE.yml +1 -0
- data/config/locales/et.yml +1 -0
- data/config/locales/eu.yml +0 -1
- data/config/locales/fi-plain.yml +29 -1
- data/config/locales/fi.yml +38 -10
- data/config/locales/fr-CA.yml +377 -0
- data/config/locales/fr.yml +30 -2
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/gl.yml +0 -1
- data/config/locales/hr-HR.yml +1 -0
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +25 -1
- data/config/locales/id-ID.yml +0 -1
- data/config/locales/is-IS.yml +185 -0
- data/config/locales/is.yml +185 -0
- data/config/locales/it.yml +82 -54
- data/config/locales/ja-JP.yml +367 -0
- data/config/locales/ja.yml +367 -0
- data/config/locales/ko-KR.yml +1 -0
- data/config/locales/ko.yml +1 -0
- data/config/locales/lt-LT.yml +1 -0
- data/config/locales/lt.yml +1 -0
- data/config/locales/lv.yml +383 -0
- data/config/locales/mt-MT.yml +1 -0
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +29 -1
- data/config/locales/no.yml +312 -1
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +183 -102
- data/config/locales/pt-BR.yml +1 -2
- data/config/locales/pt.yml +156 -75
- data/config/locales/ro-RO.yml +338 -0
- data/config/locales/ru.yml +0 -1
- data/config/locales/sk-SK.yml +394 -0
- data/config/locales/sk.yml +393 -0
- data/config/locales/sl.yml +9 -0
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +1 -0
- data/config/locales/sv.yml +60 -11
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +0 -1
- data/config/locales/uk.yml +0 -1
- data/config/locales/vi-VN.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +367 -0
- data/config/locales/zh-TW.yml +1 -0
- data/db/migrate/20190708114204_create_decidim_consultations_response_groups.rb +16 -0
- data/db/migrate/20190708120345_add_response_groups_count_to_decidim_consultations_questions.rb +7 -0
- data/db/migrate/20190708121643_add_response_groups_to_decidim_consultations_responses.rb +10 -0
- data/db/migrate/20200320105916_index_foreign_keys_in_decidim_consultations_votes.rb +7 -0
- data/db/migrate/20200827154143_add_commentable_counter_cache_to_consultations.rb +9 -0
- data/db/seeds/city.jpeg +0 -0
- data/db/seeds/city2.jpeg +0 -0
- data/lib/decidim/consultations/admin_engine.rb +2 -0
- data/lib/decidim/consultations/participatory_space.rb +23 -17
- data/lib/decidim/consultations/test/factories.rb +6 -0
- data/lib/decidim/consultations/version.rb +1 -1
- metadata +67 -11
@@ -0,0 +1 @@
|
|
1
|
+
zh-TW:
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class CreateDecidimConsultationsResponseGroups < ActiveRecord::Migration[5.2]
|
4
|
+
def change
|
5
|
+
create_table :decidim_consultations_response_groups do |t|
|
6
|
+
t.jsonb :title
|
7
|
+
t.references :decidim_consultations_questions,
|
8
|
+
foreign_key: true,
|
9
|
+
index: { name: "index_consultations_response_groups_on_consultation_questions" }
|
10
|
+
t.integer :responses_count,
|
11
|
+
null: false,
|
12
|
+
default: 0
|
13
|
+
t.timestamps
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class AddResponseGroupsToDecidimConsultationsResponses < ActiveRecord::Migration[5.2]
|
4
|
+
def change
|
5
|
+
add_reference :decidim_consultations_responses,
|
6
|
+
:decidim_consultations_response_group,
|
7
|
+
foreign_key: true,
|
8
|
+
index: { name: "index_consultations_response_groups_on_consultation_responses" }
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class AddCommentableCounterCacheToConsultations < ActiveRecord::Migration[5.2]
|
4
|
+
def change
|
5
|
+
add_column :decidim_consultations_questions, :comments_count, :integer, null: false, default: 0, index: true
|
6
|
+
Decidim::Consultations::Question.reset_column_information
|
7
|
+
Decidim::Consultations::Question.find_each(&:update_comments_count)
|
8
|
+
end
|
9
|
+
end
|
data/db/seeds/city.jpeg
CHANGED
Binary file
|
data/db/seeds/city2.jpeg
CHANGED
Binary file
|
@@ -32,12 +32,14 @@ module Decidim
|
|
32
32
|
member do
|
33
33
|
put :publish
|
34
34
|
put :unpublish
|
35
|
+
get :share
|
35
36
|
end
|
36
37
|
resources :exports, only: :create
|
37
38
|
end
|
38
39
|
|
39
40
|
resources :question_attachments
|
40
41
|
resources :responses, except: :show
|
42
|
+
resources :response_groups, except: :show
|
41
43
|
end
|
42
44
|
|
43
45
|
scope "/questions/:question_slug/components/:component_id/manage" do
|
@@ -10,6 +10,8 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
|
|
10
10
|
Decidim::Consultation.where(organization: organization)
|
11
11
|
end
|
12
12
|
|
13
|
+
participatory_space.query_type = "Decidim::Consultations::ConsultationType"
|
14
|
+
|
13
15
|
participatory_space.context(:public) do |context|
|
14
16
|
context.engine = Decidim::Consultations::Engine
|
15
17
|
context.layout = "layouts/decidim/question"
|
@@ -24,6 +26,7 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
|
|
24
26
|
participatory_space.register_resource(:consultation) do |resource|
|
25
27
|
resource.model_class_name = "Decidim::Consultation"
|
26
28
|
resource.card = "decidim/consultations/consultation"
|
29
|
+
resource.searchable = true
|
27
30
|
end
|
28
31
|
|
29
32
|
participatory_space.register_resource(:question) do |resource|
|
@@ -46,10 +49,10 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
|
|
46
49
|
published_at: Time.now.utc,
|
47
50
|
start_voting_date: Time.zone.today,
|
48
51
|
end_voting_date: Time.zone.today + 1.month,
|
49
|
-
|
52
|
+
organization: organization,
|
53
|
+
banner_image: File.new(File.join(seeds_root, "city2.jpeg")), # Keep after organization
|
50
54
|
introductory_video_url: "https://www.youtube.com/embed/zhMMW0TENNA",
|
51
|
-
decidim_highlighted_scope_id: Decidim::Scope.reorder(Arel.sql("RANDOM()")).first.id
|
52
|
-
organization: organization
|
55
|
+
decidim_highlighted_scope_id: Decidim::Scope.reorder(Arel.sql("RANDOM()")).first.id
|
53
56
|
}
|
54
57
|
|
55
58
|
active_consultation = Decidim.traceability.perform_action!(
|
@@ -60,6 +63,7 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
|
|
60
63
|
) do
|
61
64
|
Decidim::Consultation.create!(active_consultation_params)
|
62
65
|
end
|
66
|
+
active_consultation.add_to_index_as_search_resource
|
63
67
|
|
64
68
|
finished_consultation_params = {
|
65
69
|
slug: Faker::Internet.unique.slug(nil, "-"),
|
@@ -72,10 +76,10 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
|
|
72
76
|
results_published_at: Time.zone.today - 1.month,
|
73
77
|
start_voting_date: Time.zone.today - 2.months,
|
74
78
|
end_voting_date: Time.zone.today - 1.month,
|
75
|
-
|
79
|
+
organization: organization,
|
80
|
+
banner_image: File.new(File.join(seeds_root, "city2.jpeg")), # Keep after organization
|
76
81
|
introductory_video_url: "https://www.youtube.com/embed/zhMMW0TENNA",
|
77
|
-
decidim_highlighted_scope_id: Decidim::Scope.reorder(Arel.sql("RANDOM()")).first.id
|
78
|
-
organization: organization
|
82
|
+
decidim_highlighted_scope_id: Decidim::Scope.reorder(Arel.sql("RANDOM()")).first.id
|
79
83
|
}
|
80
84
|
|
81
85
|
finished_consultation = Decidim.traceability.perform_action!(
|
@@ -86,6 +90,7 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
|
|
86
90
|
) do
|
87
91
|
Decidim::Consultation.create!(finished_consultation_params)
|
88
92
|
end
|
93
|
+
finished_consultation.add_to_index_as_search_resource
|
89
94
|
|
90
95
|
upcoming_consultation_params = {
|
91
96
|
slug: Faker::Internet.unique.slug(nil, "-"),
|
@@ -97,10 +102,10 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
|
|
97
102
|
published_at: Time.zone.today + 1.month,
|
98
103
|
start_voting_date: Time.zone.today + 1.month + 1.day,
|
99
104
|
end_voting_date: Time.zone.today + 2.months,
|
100
|
-
|
105
|
+
organization: organization,
|
106
|
+
banner_image: File.new(File.join(seeds_root, "city2.jpeg")), # Keep after organization
|
101
107
|
introductory_video_url: "https://www.youtube.com/embed/zhMMW0TENNA",
|
102
|
-
decidim_highlighted_scope_id: Decidim::Scope.reorder(Arel.sql("RANDOM()")).first.id
|
103
|
-
organization: organization
|
108
|
+
decidim_highlighted_scope_id: Decidim::Scope.reorder(Arel.sql("RANDOM()")).first.id
|
104
109
|
}
|
105
110
|
|
106
111
|
upcoming_consultation = Decidim.traceability.perform_action!(
|
@@ -111,6 +116,7 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
|
|
111
116
|
) do
|
112
117
|
Decidim::Consultation.create!(upcoming_consultation_params)
|
113
118
|
end
|
119
|
+
upcoming_consultation.add_to_index_as_search_resource
|
114
120
|
|
115
121
|
[finished_consultation, active_consultation, upcoming_consultation].each do |consultation|
|
116
122
|
4.times do
|
@@ -126,12 +132,12 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
|
|
126
132
|
question_context: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
|
127
133
|
Decidim::Faker::Localized.paragraph(3)
|
128
134
|
end,
|
129
|
-
|
130
|
-
|
135
|
+
organization: organization,
|
136
|
+
hero_image: File.new(File.join(seeds_root, "city.jpeg")), # Keep after organization
|
137
|
+
banner_image: File.new(File.join(seeds_root, "city2.jpeg")), # Keep after organization
|
131
138
|
promoter_group: Decidim::Faker::Localized.sentence(3),
|
132
139
|
participatory_scope: Decidim::Faker::Localized.sentence(3),
|
133
|
-
published_at: Time.now.utc
|
134
|
-
organization: organization
|
140
|
+
published_at: Time.now.utc
|
135
141
|
}
|
136
142
|
|
137
143
|
question = Decidim.traceability.perform_action!(
|
@@ -155,15 +161,15 @@ Decidim.register_participatory_space(:consultations) do |participatory_space|
|
|
155
161
|
Decidim::Attachment.create!(
|
156
162
|
title: Decidim::Faker::Localized.sentence(2),
|
157
163
|
description: Decidim::Faker::Localized.sentence(5),
|
158
|
-
|
159
|
-
|
164
|
+
attached_to: question,
|
165
|
+
file: File.new(File.join(seeds_root, "city.jpeg")) # Keep after attached_to
|
160
166
|
)
|
161
167
|
|
162
168
|
Decidim::Attachment.create!(
|
163
169
|
title: Decidim::Faker::Localized.sentence(2),
|
164
170
|
description: Decidim::Faker::Localized.sentence(5),
|
165
|
-
|
166
|
-
|
171
|
+
attached_to: question,
|
172
|
+
file: File.new(File.join(seeds_root, "Exampledocument.pdf")) # Keep after attached_to
|
167
173
|
)
|
168
174
|
end
|
169
175
|
end
|
@@ -22,6 +22,7 @@ FactoryBot.define do
|
|
22
22
|
published_at { Time.current }
|
23
23
|
start_voting_date { Time.zone.today }
|
24
24
|
end_voting_date { Time.zone.today + 1.month }
|
25
|
+
introductory_image { Decidim::Dev.test_file("city.jpeg", "image/jpeg") }
|
25
26
|
introductory_video_url { "https://www.youtube.com/embed/zhMMW0TENNA" }
|
26
27
|
decidim_highlighted_scope_id { create(:scope, organization: organization).id }
|
27
28
|
results_published_at { nil }
|
@@ -101,6 +102,11 @@ FactoryBot.define do
|
|
101
102
|
title { generate_localized_title }
|
102
103
|
end
|
103
104
|
|
105
|
+
factory :response_group, class: "Decidim::Consultations::ResponseGroup" do
|
106
|
+
question { create(:question, :multiple) }
|
107
|
+
title { generate_localized_title }
|
108
|
+
end
|
109
|
+
|
104
110
|
factory :vote, class: "Decidim::Consultations::Vote" do
|
105
111
|
question
|
106
112
|
response
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-consultations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.0
|
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: 2020-11-05 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.23.0
|
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.23.0
|
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.23.0
|
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.23.0
|
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.23.0
|
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.23.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: decidim-dev
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.23.0
|
62
62
|
type: :development
|
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.23.0
|
69
69
|
description: Extends Decidim adding a first level public consultation component
|
70
70
|
email:
|
71
71
|
- jsperezg@gmail.com
|
@@ -84,6 +84,7 @@ files:
|
|
84
84
|
- app/assets/javascripts/decidim/consultations/utils_multiple.js
|
85
85
|
- app/assets/javascripts/decidim/consultations/vote_dialog.js
|
86
86
|
- app/assets/stylesheets/decidim/consultations/_question.scss
|
87
|
+
- app/assets/stylesheets/decidim/consultations/_question_multiple_votes.scss
|
87
88
|
- app/assets/stylesheets/decidim/consultations/_stats.scss
|
88
89
|
- app/assets/stylesheets/decidim/consultations/_video_wrapper.scss
|
89
90
|
- app/assets/stylesheets/decidim/consultations/banners/_block-banner.scss
|
@@ -111,6 +112,8 @@ files:
|
|
111
112
|
- app/commands/decidim/consultations/admin/create_consultation.rb
|
112
113
|
- app/commands/decidim/consultations/admin/create_question.rb
|
113
114
|
- app/commands/decidim/consultations/admin/create_response.rb
|
115
|
+
- app/commands/decidim/consultations/admin/create_response_group.rb
|
116
|
+
- app/commands/decidim/consultations/admin/destroy_response_group.rb
|
114
117
|
- app/commands/decidim/consultations/admin/publish_consultation.rb
|
115
118
|
- app/commands/decidim/consultations/admin/publish_consultation_results.rb
|
116
119
|
- app/commands/decidim/consultations/admin/publish_question.rb
|
@@ -121,12 +124,14 @@ files:
|
|
121
124
|
- app/commands/decidim/consultations/admin/update_question.rb
|
122
125
|
- app/commands/decidim/consultations/admin/update_question_configuration.rb
|
123
126
|
- app/commands/decidim/consultations/admin/update_response.rb
|
127
|
+
- app/commands/decidim/consultations/admin/update_response_group.rb
|
124
128
|
- app/commands/decidim/consultations/multiple_vote_question.rb
|
125
129
|
- app/commands/decidim/consultations/unvote_question.rb
|
126
130
|
- app/commands/decidim/consultations/vote_question.rb
|
127
131
|
- app/constraints/decidim/consultations/current_component.rb
|
128
132
|
- app/constraints/decidim/consultations/current_question.rb
|
129
133
|
- app/controllers/concerns/decidim/consultations/admin/consultation_admin.rb
|
134
|
+
- app/controllers/concerns/decidim/consultations/admin/filterable.rb
|
130
135
|
- app/controllers/concerns/decidim/consultations/admin/question_admin.rb
|
131
136
|
- app/controllers/concerns/decidim/consultations/needs_consultation.rb
|
132
137
|
- app/controllers/concerns/decidim/consultations/needs_question.rb
|
@@ -143,6 +148,7 @@ files:
|
|
143
148
|
- app/controllers/decidim/consultations/admin/question_permissions_controller.rb
|
144
149
|
- app/controllers/decidim/consultations/admin/question_publications_controller.rb
|
145
150
|
- app/controllers/decidim/consultations/admin/questions_controller.rb
|
151
|
+
- app/controllers/decidim/consultations/admin/response_groups_controller.rb
|
146
152
|
- app/controllers/decidim/consultations/admin/responses_controller.rb
|
147
153
|
- app/controllers/decidim/consultations/application_controller.rb
|
148
154
|
- app/controllers/decidim/consultations/authorization_vote_modals_controller.rb
|
@@ -156,6 +162,7 @@ files:
|
|
156
162
|
- app/forms/decidim/consultations/admin/question_configuration_form.rb
|
157
163
|
- app/forms/decidim/consultations/admin/question_form.rb
|
158
164
|
- app/forms/decidim/consultations/admin/response_form.rb
|
165
|
+
- app/forms/decidim/consultations/admin/response_group_form.rb
|
159
166
|
- app/forms/decidim/consultations/multi_vote_form.rb
|
160
167
|
- app/forms/decidim/consultations/vote_form.rb
|
161
168
|
- app/helpers/decidim/consultations/admin/consultations_helper.rb
|
@@ -168,6 +175,7 @@ files:
|
|
168
175
|
- app/models/decidim/consultations/application_record.rb
|
169
176
|
- app/models/decidim/consultations/question.rb
|
170
177
|
- app/models/decidim/consultations/response.rb
|
178
|
+
- app/models/decidim/consultations/response_group.rb
|
171
179
|
- app/models/decidim/consultations/vote.rb
|
172
180
|
- app/permissions/decidim/consultations/admin/permissions.rb
|
173
181
|
- app/permissions/decidim/consultations/permissions.rb
|
@@ -177,6 +185,8 @@ files:
|
|
177
185
|
- app/queries/decidim/consultations/organization_consultations.rb
|
178
186
|
- app/queries/decidim/consultations/organization_questions.rb
|
179
187
|
- app/services/decidim/consultations/consultation_search.rb
|
188
|
+
- app/types/decidim/consultations/consultation_question_type.rb
|
189
|
+
- app/types/decidim/consultations/consultation_type.rb
|
180
190
|
- app/views/decidim/consultations/_consultation.html.erb
|
181
191
|
- app/views/decidim/consultations/admin/consultations/_form.html.erb
|
182
192
|
- app/views/decidim/consultations/admin/consultations/edit.html.erb
|
@@ -189,6 +199,10 @@ files:
|
|
189
199
|
- app/views/decidim/consultations/admin/questions/edit.html.erb
|
190
200
|
- app/views/decidim/consultations/admin/questions/index.html.erb
|
191
201
|
- app/views/decidim/consultations/admin/questions/new.html.erb
|
202
|
+
- app/views/decidim/consultations/admin/response_groups/_form.html.erb
|
203
|
+
- app/views/decidim/consultations/admin/response_groups/edit.html.erb
|
204
|
+
- app/views/decidim/consultations/admin/response_groups/index.html.erb
|
205
|
+
- app/views/decidim/consultations/admin/response_groups/new.html.erb
|
192
206
|
- app/views/decidim/consultations/admin/responses/_form.html.erb
|
193
207
|
- app/views/decidim/consultations/admin/responses/edit.html.erb
|
194
208
|
- app/views/decidim/consultations/admin/responses/index.html.erb
|
@@ -232,35 +246,72 @@ files:
|
|
232
246
|
- app/views/layouts/decidim/consultation_choose.html.erb
|
233
247
|
- app/views/layouts/decidim/question.html.erb
|
234
248
|
- app/views/layouts/decidim/question_multivote.html.erb
|
249
|
+
- config/locales/am-ET.yml
|
235
250
|
- config/locales/ar-SA.yml
|
236
251
|
- config/locales/ar.yml
|
252
|
+
- config/locales/bg-BG.yml
|
253
|
+
- config/locales/bg.yml
|
237
254
|
- config/locales/ca.yml
|
238
255
|
- config/locales/cs-CZ.yml
|
239
256
|
- config/locales/cs.yml
|
257
|
+
- config/locales/da-DK.yml
|
258
|
+
- config/locales/da.yml
|
240
259
|
- config/locales/de.yml
|
260
|
+
- config/locales/el-GR.yml
|
261
|
+
- config/locales/el.yml
|
241
262
|
- config/locales/en.yml
|
242
263
|
- config/locales/eo-UY.yml
|
264
|
+
- config/locales/eo.yml
|
243
265
|
- config/locales/es-MX.yml
|
244
266
|
- config/locales/es-PY.yml
|
245
267
|
- config/locales/es.yml
|
268
|
+
- config/locales/et-EE.yml
|
269
|
+
- config/locales/et.yml
|
246
270
|
- config/locales/eu.yml
|
247
271
|
- config/locales/fi-pl.yml
|
248
272
|
- config/locales/fi-plain.yml
|
249
273
|
- config/locales/fi.yml
|
274
|
+
- config/locales/fr-CA.yml
|
250
275
|
- config/locales/fr.yml
|
276
|
+
- config/locales/ga-IE.yml
|
251
277
|
- config/locales/gl.yml
|
278
|
+
- config/locales/hr-HR.yml
|
279
|
+
- config/locales/hr.yml
|
252
280
|
- config/locales/hu.yml
|
253
281
|
- config/locales/id-ID.yml
|
282
|
+
- config/locales/is-IS.yml
|
283
|
+
- config/locales/is.yml
|
254
284
|
- config/locales/it.yml
|
285
|
+
- config/locales/ja-JP.yml
|
286
|
+
- config/locales/ja.yml
|
287
|
+
- config/locales/ko-KR.yml
|
288
|
+
- config/locales/ko.yml
|
289
|
+
- config/locales/lt-LT.yml
|
290
|
+
- config/locales/lt.yml
|
291
|
+
- config/locales/lv.yml
|
292
|
+
- config/locales/mt-MT.yml
|
293
|
+
- config/locales/mt.yml
|
255
294
|
- config/locales/nl.yml
|
256
295
|
- config/locales/no.yml
|
296
|
+
- config/locales/om-ET.yml
|
257
297
|
- config/locales/pl.yml
|
258
298
|
- config/locales/pt-BR.yml
|
259
299
|
- config/locales/pt.yml
|
300
|
+
- config/locales/ro-RO.yml
|
260
301
|
- config/locales/ru.yml
|
302
|
+
- config/locales/sk-SK.yml
|
303
|
+
- config/locales/sk.yml
|
304
|
+
- config/locales/sl.yml
|
305
|
+
- config/locales/so-SO.yml
|
306
|
+
- config/locales/sr-CS.yml
|
261
307
|
- config/locales/sv.yml
|
308
|
+
- config/locales/ti-ER.yml
|
262
309
|
- config/locales/tr-TR.yml
|
263
310
|
- config/locales/uk.yml
|
311
|
+
- config/locales/vi-VN.yml
|
312
|
+
- config/locales/vi.yml
|
313
|
+
- config/locales/zh-CN.yml
|
314
|
+
- config/locales/zh-TW.yml
|
264
315
|
- db/migrate/20180109092205_create_decidim_consultations.rb
|
265
316
|
- db/migrate/20180112053247_create_decidim_consultations_questions.rb
|
266
317
|
- db/migrate/20180115132000_add_end_voting_date_to_decidim_consultations.rb
|
@@ -290,7 +341,12 @@ files:
|
|
290
341
|
- db/migrate/20180712111146_remove_unused_search_indexs.rb
|
291
342
|
- db/migrate/20181003082318_fix_user_groups_ids_on_consultations.rb
|
292
343
|
- db/migrate/20190702162755_add_options_to_decidim_consultations_questions.rb
|
344
|
+
- db/migrate/20190708114204_create_decidim_consultations_response_groups.rb
|
345
|
+
- db/migrate/20190708120345_add_response_groups_count_to_decidim_consultations_questions.rb
|
346
|
+
- db/migrate/20190708121643_add_response_groups_to_decidim_consultations_responses.rb
|
293
347
|
- db/migrate/20190710121122_add_free_instructions_field_to_consultations_questions.rb
|
348
|
+
- db/migrate/20200320105916_index_foreign_keys_in_decidim_consultations_votes.rb
|
349
|
+
- db/migrate/20200827154143_add_commentable_counter_cache_to_consultations.rb
|
294
350
|
- db/seeds/Exampledocument.pdf
|
295
351
|
- db/seeds/city.jpeg
|
296
352
|
- db/seeds/city2.jpeg
|
@@ -314,7 +370,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
314
370
|
requirements:
|
315
371
|
- - ">="
|
316
372
|
- !ruby/object:Gem::Version
|
317
|
-
version: '2.
|
373
|
+
version: '2.6'
|
318
374
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
319
375
|
requirements:
|
320
376
|
- - ">="
|