decidim-consultations 0.19.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/decidim/consultations/icon.svg +1 -3
  3. data/app/assets/images/decidim/consultations/icon2.svg +1 -88
  4. data/app/assets/javascripts/decidim/consultations/utils_multiple.js +1 -1
  5. data/app/assets/stylesheets/decidim/consultations/_question.scss +0 -6
  6. data/app/assets/stylesheets/decidim/consultations/_question_multiple_votes.scss +22 -0
  7. data/app/assets/stylesheets/decidim/consultations/consultations.scss +1 -0
  8. data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-header.scss +0 -1
  9. data/app/cells/decidim/consultations/consultation_m/data.erb +1 -1
  10. data/app/cells/decidim/consultations/consultation_m/footer.erb +1 -1
  11. data/app/cells/decidim/consultations/content_blocks/highlighted_consultations/show.erb +3 -3
  12. data/app/commands/decidim/consultations/admin/create_response.rb +2 -1
  13. data/app/commands/decidim/consultations/admin/create_response_group.rb +40 -0
  14. data/app/commands/decidim/consultations/admin/destroy_response_group.rb +39 -0
  15. data/app/commands/decidim/consultations/admin/update_response.rb +3 -2
  16. data/app/commands/decidim/consultations/admin/update_response_group.rb +46 -0
  17. data/app/controllers/concerns/decidim/consultations/admin/filterable.rb +27 -0
  18. data/app/controllers/decidim/consultations/admin/consultations_controller.rb +2 -1
  19. data/app/controllers/decidim/consultations/admin/response_groups_controller.rb +88 -0
  20. data/app/controllers/decidim/consultations/admin/responses_controller.rb +1 -0
  21. data/app/controllers/decidim/consultations/consultations_controller.rb +1 -1
  22. data/app/forms/decidim/consultations/admin/response_form.rb +5 -0
  23. data/app/forms/decidim/consultations/admin/response_group_form.rb +18 -0
  24. data/app/helpers/decidim/consultations/admin/questions_helper.rb +11 -0
  25. data/app/models/decidim/consultation.rb +16 -0
  26. data/app/models/decidim/consultations/question.rb +22 -0
  27. data/app/models/decidim/consultations/response.rb +7 -0
  28. data/app/models/decidim/consultations/response_group.rb +19 -0
  29. data/app/permissions/decidim/consultations/admin/permissions.rb +16 -0
  30. data/app/permissions/decidim/consultations/permissions.rb +2 -0
  31. data/app/types/decidim/consultations/consultation_question_type.rb +57 -0
  32. data/app/types/decidim/consultations/consultation_type.rb +32 -0
  33. data/app/views/decidim/consultations/admin/consultations/index.html.erb +3 -2
  34. data/app/views/decidim/consultations/admin/response_groups/_form.html.erb +11 -0
  35. data/app/views/decidim/consultations/admin/response_groups/edit.html.erb +18 -0
  36. data/app/views/decidim/consultations/admin/response_groups/index.html.erb +56 -0
  37. data/app/views/decidim/consultations/admin/response_groups/new.html.erb +13 -0
  38. data/app/views/decidim/consultations/admin/responses/_form.html.erb +3 -0
  39. data/app/views/decidim/consultations/admin/responses/index.html.erb +12 -1
  40. data/app/views/decidim/consultations/consultations/_consultation_card.html.erb +3 -3
  41. data/app/views/decidim/consultations/consultations/_consultation_details.html.erb +2 -2
  42. data/app/views/decidim/consultations/consultations/_filters.html.erb +9 -4
  43. data/app/views/decidim/consultations/consultations/_question.html.erb +2 -2
  44. data/app/views/decidim/consultations/consultations/index.html.erb +3 -3
  45. data/app/views/decidim/consultations/question_multiple_votes/_form.html.erb +14 -10
  46. data/app/views/decidim/consultations/question_multiple_votes/show.html.erb +8 -2
  47. data/app/views/decidim/consultations/questions/_vote_button.html.erb +70 -67
  48. data/app/views/decidim/consultations/questions/_vote_modal.html.erb +1 -1
  49. data/app/views/decidim/consultations/questions/_vote_modal_confirm.html.erb +1 -1
  50. data/app/views/decidim/consultations/questions/show.html.erb +4 -4
  51. data/app/views/layouts/decidim/_question_components.html.erb +3 -3
  52. data/app/views/layouts/decidim/_question_header.html.erb +1 -1
  53. data/app/views/layouts/decidim/admin/question.html.erb +1 -1
  54. data/config/locales/ar.yml +45 -1
  55. data/config/locales/bg-BG.yml +1 -0
  56. data/config/locales/ca.yml +29 -1
  57. data/config/locales/cs.yml +35 -7
  58. data/config/locales/da-DK.yml +1 -0
  59. data/config/locales/de.yml +82 -1
  60. data/config/locales/el-GR.yml +1 -0
  61. data/config/locales/el.yml +377 -0
  62. data/config/locales/en.yml +29 -1
  63. data/config/locales/es-MX.yml +67 -1
  64. data/config/locales/es-PY.yml +67 -1
  65. data/config/locales/es.yml +29 -1
  66. data/config/locales/et-EE.yml +1 -0
  67. data/config/locales/eu.yml +0 -1
  68. data/config/locales/fi-plain.yml +29 -1
  69. data/config/locales/fi.yml +38 -10
  70. data/config/locales/fr-CA.yml +377 -0
  71. data/config/locales/fr.yml +31 -2
  72. data/config/locales/ga-IE.yml +1 -0
  73. data/config/locales/gl.yml +0 -1
  74. data/config/locales/hr-HR.yml +1 -0
  75. data/config/locales/hu.yml +31 -7
  76. data/config/locales/id-ID.yml +0 -1
  77. data/config/locales/is-IS.yml +185 -0
  78. data/config/locales/it.yml +115 -51
  79. data/config/locales/ja-JP.yml +367 -0
  80. data/config/locales/lt-LT.yml +1 -0
  81. data/config/locales/lv-LV.yml +383 -0
  82. data/config/locales/mt-MT.yml +1 -0
  83. data/config/locales/nl.yml +29 -1
  84. data/config/locales/no.yml +366 -0
  85. data/config/locales/pl.yml +177 -96
  86. data/config/locales/pt-BR.yml +1 -2
  87. data/config/locales/pt.yml +156 -75
  88. data/config/locales/ro-RO.yml +338 -0
  89. data/config/locales/ru.yml +0 -1
  90. data/config/locales/sk-SK.yml +394 -0
  91. data/config/locales/sk.yml +393 -0
  92. data/config/locales/sl.yml +5 -0
  93. data/config/locales/sr-CS.yml +1 -0
  94. data/config/locales/sv.yml +78 -8
  95. data/config/locales/tr-TR.yml +0 -1
  96. data/config/locales/uk.yml +0 -1
  97. data/db/migrate/20190708114204_create_decidim_consultations_response_groups.rb +16 -0
  98. data/db/migrate/20190708120345_add_response_groups_count_to_decidim_consultations_questions.rb +7 -0
  99. data/db/migrate/20190708121643_add_response_groups_to_decidim_consultations_responses.rb +10 -0
  100. data/db/migrate/20200320105916_index_foreign_keys_in_decidim_consultations_votes.rb +7 -0
  101. data/db/seeds/city.jpeg +0 -0
  102. data/db/seeds/city2.jpeg +0 -0
  103. data/lib/decidim/consultations/admin_engine.rb +1 -0
  104. data/lib/decidim/consultations/participatory_space.rb +6 -0
  105. data/lib/decidim/consultations/test/factories.rb +5 -0
  106. data/lib/decidim/consultations/version.rb +1 -1
  107. metadata +47 -11
@@ -0,0 +1,5 @@
1
+ sl:
2
+ activemodel:
3
+ attributes:
4
+ consultation:
5
+ description: Opis
@@ -0,0 +1 @@
1
+ sr:
@@ -2,8 +2,8 @@ sv:
2
2
  activemodel:
3
3
  attributes:
4
4
  consultation:
5
- banner_image: Banner image
6
- decidim_highlighted_scope_id: Markerat omfattning
5
+ banner_image: Bannerbild
6
+ decidim_highlighted_scope_id: Markerat omfång
7
7
  description: Beskrivning
8
8
  end_voting_date: Omröstningen avslutas
9
9
  introductory_image: Introduktionsbild
@@ -14,29 +14,44 @@ sv:
14
14
  subtitle: Underrubrik
15
15
  title: Titel
16
16
  question:
17
- banner_image: Banner image
17
+ banner_image: Bannerbild
18
18
  decidim_scope_id: Kommundelsområde
19
19
  hashtag: Hashtag
20
20
  hero_image: Hembild
21
21
  i_frame_url: URL till externt röstningssystem
22
+ instructions: Ytterligare anvisningar för röstning
23
+ max_votes: Max antal röster
24
+ min_votes: Minsta antal röster
22
25
  origin_scope: Omfång
23
26
  origin_title: Ursprung
24
27
  origin_url: Ursprungs-URL
25
28
  participatory_scope: Deltagaromfång
26
- promoter_group: Promotorgrupp
29
+ promoter_group: Kampanjgrupp
27
30
  question_context: Kontext
28
31
  reference: Referens
29
- scope: Kommunala området
32
+ scope: Kommundelsområde
30
33
  slug: URL-slug
31
34
  subtitle: Underrubrik
32
- title: Titel
33
35
  vote: Externt omröstningssystem
34
36
  what_is_decided: Vad som bestäms
37
+ response:
38
+ decidim_consultations_response_group_id: Grupp
35
39
  errors:
40
+ models:
41
+ question:
42
+ attributes:
43
+ max_votes:
44
+ lower_than_min: Maximalt antal röster bör vara högre eller lika med minimum.
36
45
  vote:
37
46
  decidim_consultations_response_id:
38
47
  not_found: Hittade inte svar.
39
48
  activerecord:
49
+ errors:
50
+ models:
51
+ decidim/consultations/vote:
52
+ attributes:
53
+ question:
54
+ invalid_num_votes: Ogiltigt antal röster
40
55
  models:
41
56
  decidim/consultation:
42
57
  one: Samråd
@@ -53,10 +68,13 @@ sv:
53
68
  decidim:
54
69
  admin:
55
70
  actions:
71
+ back_to_responses: Tillbaka till svar
56
72
  new_consultation: Nytt samråd
57
73
  new_question: Ny fråga
58
74
  new_response: Nytt svar
75
+ new_response_group: Ny grupp
59
76
  publish_results: Publicera resultat
77
+ response_groups: Hantera svarsgrupper
60
78
  unpublish_results: Avpublicera resultat
61
79
  consultation_publications:
62
80
  create:
@@ -89,6 +107,7 @@ sv:
89
107
  title: Nytt samråd
90
108
  results:
91
109
  not_visible: Resultaten kommer att vara tillgängliga när samrådet har avslutats
110
+ participants: "%{count} deltagare"
92
111
  total_votes: 'Totalt: %{count} röster'
93
112
  update:
94
113
  error: Det gick inte att uppdatera samrådet.
@@ -101,6 +120,7 @@ sv:
101
120
  results: Resultat
102
121
  questions_submenu:
103
122
  components: Komponenter
123
+ configuration: Konfiguration
104
124
  consultation: Samråd
105
125
  info: Information
106
126
  responses: Svar
@@ -124,10 +144,16 @@ sv:
124
144
  response:
125
145
  fields:
126
146
  created_at: Skapad
147
+ response_group: Grupp
127
148
  title: Titel
128
149
  name:
129
150
  one: Svar
130
151
  other: Svar
152
+ question_configuration:
153
+ disable_external_voting: Avaktivera extern röstning för avancerade konfigurationer
154
+ form:
155
+ help: Skapa flervalsfrågor genom att öka det maximala antalet svar en deltagare kan ge. Det förvalda maxvärdet är 1, vilket innebär att det endast går att rösta på ett alternativ.
156
+ title: Avancerad konfiguration
131
157
  question_publications:
132
158
  create:
133
159
  error: Det gick inte att publicera den här frågan.
@@ -154,6 +180,24 @@ sv:
154
180
  update:
155
181
  error: Det gick inte att uppdatera frågan.
156
182
  success: Frågan har uppdaterats.
183
+ response_groups:
184
+ create:
185
+ error: Det gick inte att skapa en ny svarsgrupp.
186
+ success: Svarsgruppen har skapats.
187
+ destroy:
188
+ error: Det gick inte att ta bort svarsgruppen. Kontrollera att inga svar beror på den.
189
+ success: Svarsgruppen har raderats.
190
+ edit:
191
+ update: Uppdatera
192
+ form:
193
+ title: Allmän information
194
+ help: Ordna paket med flervalsfrågor med hjälp av grupper.
195
+ new:
196
+ create: Skapa
197
+ title: Ny svarsgrupp
198
+ update:
199
+ error: Det gick inte att uppdatera svaret.
200
+ success: Svaret har uppdaterats.
157
201
  responses:
158
202
  create:
159
203
  error: Det gick inte att skapa ett nytt svar.
@@ -174,6 +218,7 @@ sv:
174
218
  titles:
175
219
  consultations: Samråd
176
220
  questions: Frågor
221
+ response_groups: Svarsgrupper
177
222
  responses: Svar
178
223
  results: Resultat
179
224
  consultations:
@@ -191,9 +236,11 @@ sv:
191
236
  label: 'Sortera samråd efter:'
192
237
  random: Slumpmässig
193
238
  recent: Senaste
239
+ show:
240
+ dates: Datum
194
241
  content_blocks:
195
242
  highlighted_consultations:
196
- name: Annonserade samråd
243
+ name: Viktiga samråd just nu
197
244
  count:
198
245
  title:
199
246
  one: "%{count} samråd"
@@ -220,7 +267,7 @@ sv:
220
267
  pages:
221
268
  home:
222
269
  highlighted_consultations:
223
- active_consultations: Aktiva samråd
270
+ active_consultations: Pågående samråd
224
271
  see_all_consultations: Se alla samråd
225
272
  voting_ends_in:
226
273
  one: Omröstningen avslutas <strong>imorgon</strong>
@@ -232,9 +279,28 @@ sv:
232
279
  votes_out_of:
233
280
  one: röst av
234
281
  other: röster av
282
+ question_multiple_votes:
283
+ results_rules:
284
+ minimum_votes_per_user:
285
+ description: Deltagarna kunde fördela minst %{votes} röster mellan olika alternativ.
286
+ title: Flera val är möjliga som svar på denna fråga
287
+ total_participants: Sammanlagt deltog %{count} personer i omröstningen.
288
+ vote_limit:
289
+ description: Deltagarna kunde rösta på upp till %{limit} alternativ.
290
+ voting_rules:
291
+ minimum_votes_per_user:
292
+ description: Du måste distribuera minst %{votes} röster mellan olika alternativ.
293
+ title: 'Röster måste följa följande regler:'
294
+ vote_limit:
295
+ description: Du kan rösta på upp till %{limit} alternativ.
296
+ left: Återstående
297
+ votes: Röster
235
298
  question_votes:
236
299
  create:
237
300
  error: Det gick inte att rösta i frågan
301
+ success: Du kan ändra den upp till slutet av samrådet. Endast den sista rösten räknas.
302
+ title_error: Röstningsfel!
303
+ title_success: Rösten har tagits emot
238
304
  regular_questions:
239
305
  title: Frågor för detta samråd
240
306
  show:
@@ -279,12 +345,15 @@ sv:
279
345
  already_voted: Redan röstat
280
346
  already_voted_hover: Återkalla röst
281
347
  starting_from: Börjar %{date}
348
+ verification_required: Bekräfta ditt konto för att rösta
282
349
  vote: Rösta
283
350
  vote_modal:
351
+ close_modal: Stäng modal
284
352
  contextual_help: Välj ett alternativ.
285
353
  title: 'Samråd: rösta på en fråga'
286
354
  vote_modal_confirm:
287
355
  change: Ändra
356
+ close_modal: Stäng modal
288
357
  confirm: Bekräfta
289
358
  contextual_help: Bekräfta det valda alternativet.
290
359
  title: 'Samråd: bekräfta röst'
@@ -305,3 +374,4 @@ sv:
305
374
  unfold: Veckla ut
306
375
  question_header:
307
376
  back_to_consultation: Visa alla samråd
377
+ back_to_question: Tillbaka till frågan
@@ -29,7 +29,6 @@ tr:
29
29
  scope: Belediye alanı
30
30
  slug: URL sümüklü böcek
31
31
  subtitle: Alt yazı
32
- title: Başlık
33
32
  vote: Dış oylama sistemi
34
33
  what_is_decided: Karar nedir
35
34
  errors:
@@ -29,7 +29,6 @@ uk:
29
29
  scope: Дільниця міста
30
30
  slug: Скорочена веб-адреса
31
31
  subtitle: Підзаголовок
32
- title: Заголовок
33
32
  vote: Зовнішня система голосування
34
33
  what_is_decided: Що вирішується
35
34
  errors:
@@ -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,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddResponseGroupsCountToDecidimConsultationsQuestions < ActiveRecord::Migration[5.2]
4
+ def change
5
+ add_column :decidim_consultations_questions, :response_groups_count, :integer, null: false, default: 0
6
+ end
7
+ 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,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class IndexForeignKeysInDecidimConsultationsVotes < ActiveRecord::Migration[5.2]
4
+ def change
5
+ add_index :decidim_consultations_votes, :decidim_user_group_id
6
+ end
7
+ end
Binary file
Binary file
@@ -38,6 +38,7 @@ module Decidim
38
38
 
39
39
  resources :question_attachments
40
40
  resources :responses, except: :show
41
+ resources :response_groups, except: :show
41
42
  end
42
43
 
43
44
  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|
@@ -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, "-"),
@@ -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, "-"),
@@ -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
@@ -101,6 +101,11 @@ FactoryBot.define do
101
101
  title { generate_localized_title }
102
102
  end
103
103
 
104
+ factory :response_group, class: "Decidim::Consultations::ResponseGroup" do
105
+ question { create(:question, :multiple) }
106
+ title { generate_localized_title }
107
+ end
108
+
104
109
  factory :vote, class: "Decidim::Consultations::Vote" do
105
110
  question
106
111
  response
@@ -3,7 +3,7 @@
3
3
  module Decidim
4
4
  module Consultations
5
5
  def self.version
6
- "0.19.0"
6
+ "0.22.0"
7
7
  end
8
8
  end
9
9
  end
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.19.0
4
+ version: 0.22.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: 2019-10-21 00:00:00.000000000 Z
11
+ date: 2020-09-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.0
19
+ version: 0.22.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.19.0
26
+ version: 0.22.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.19.0
33
+ version: 0.22.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.19.0
40
+ version: 0.22.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.19.0
47
+ version: 0.22.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.19.0
54
+ version: 0.22.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.19.0
61
+ version: 0.22.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.19.0
68
+ version: 0.22.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
@@ -234,30 +248,48 @@ files:
234
248
  - app/views/layouts/decidim/question_multivote.html.erb
235
249
  - config/locales/ar-SA.yml
236
250
  - config/locales/ar.yml
251
+ - config/locales/bg-BG.yml
237
252
  - config/locales/ca.yml
238
253
  - config/locales/cs-CZ.yml
239
254
  - config/locales/cs.yml
255
+ - config/locales/da-DK.yml
240
256
  - config/locales/de.yml
257
+ - config/locales/el-GR.yml
258
+ - config/locales/el.yml
241
259
  - config/locales/en.yml
242
260
  - config/locales/eo-UY.yml
243
261
  - config/locales/es-MX.yml
244
262
  - config/locales/es-PY.yml
245
263
  - config/locales/es.yml
264
+ - config/locales/et-EE.yml
246
265
  - config/locales/eu.yml
247
266
  - config/locales/fi-pl.yml
248
267
  - config/locales/fi-plain.yml
249
268
  - config/locales/fi.yml
269
+ - config/locales/fr-CA.yml
250
270
  - config/locales/fr.yml
271
+ - config/locales/ga-IE.yml
251
272
  - config/locales/gl.yml
273
+ - config/locales/hr-HR.yml
252
274
  - config/locales/hu.yml
253
275
  - config/locales/id-ID.yml
276
+ - config/locales/is-IS.yml
254
277
  - config/locales/it.yml
278
+ - config/locales/ja-JP.yml
279
+ - config/locales/lt-LT.yml
280
+ - config/locales/lv-LV.yml
281
+ - config/locales/mt-MT.yml
255
282
  - config/locales/nl.yml
256
283
  - config/locales/no.yml
257
284
  - config/locales/pl.yml
258
285
  - config/locales/pt-BR.yml
259
286
  - config/locales/pt.yml
287
+ - config/locales/ro-RO.yml
260
288
  - config/locales/ru.yml
289
+ - config/locales/sk-SK.yml
290
+ - config/locales/sk.yml
291
+ - config/locales/sl.yml
292
+ - config/locales/sr-CS.yml
261
293
  - config/locales/sv.yml
262
294
  - config/locales/tr-TR.yml
263
295
  - config/locales/uk.yml
@@ -290,7 +322,11 @@ files:
290
322
  - db/migrate/20180712111146_remove_unused_search_indexs.rb
291
323
  - db/migrate/20181003082318_fix_user_groups_ids_on_consultations.rb
292
324
  - db/migrate/20190702162755_add_options_to_decidim_consultations_questions.rb
325
+ - db/migrate/20190708114204_create_decidim_consultations_response_groups.rb
326
+ - db/migrate/20190708120345_add_response_groups_count_to_decidim_consultations_questions.rb
327
+ - db/migrate/20190708121643_add_response_groups_to_decidim_consultations_responses.rb
293
328
  - db/migrate/20190710121122_add_free_instructions_field_to_consultations_questions.rb
329
+ - db/migrate/20200320105916_index_foreign_keys_in_decidim_consultations_votes.rb
294
330
  - db/seeds/Exampledocument.pdf
295
331
  - db/seeds/city.jpeg
296
332
  - db/seeds/city2.jpeg
@@ -321,7 +357,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
321
357
  - !ruby/object:Gem::Version
322
358
  version: '0'
323
359
  requirements: []
324
- rubygems_version: 3.0.3
360
+ rubygems_version: 3.1.2
325
361
  signing_key:
326
362
  specification_version: 4
327
363
  summary: Decidim consultations module