decidim-consultations 0.19.1 → 0.20.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/javascripts/decidim/consultations/utils_multiple.js +1 -1
- data/app/assets/stylesheets/decidim/consultations/_question_multiple_votes.scss +22 -0
- data/app/assets/stylesheets/decidim/consultations/consultations.scss +1 -0
- 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_response.rb +3 -2
- data/app/commands/decidim/consultations/admin/update_response_group.rb +46 -0
- 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/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 +11 -0
- data/app/models/decidim/consultations/question.rb +22 -0
- data/app/models/decidim/consultations/response.rb +7 -0
- data/app/models/decidim/consultations/response_group.rb +19 -0
- data/app/permissions/decidim/consultations/admin/permissions.rb +16 -0
- 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/question_multiple_votes/_form.html.erb +14 -10
- data/app/views/decidim/consultations/question_multiple_votes/show.html.erb +8 -2
- data/app/views/layouts/decidim/admin/question.html.erb +1 -1
- data/config/locales/ca.yml +13 -0
- data/config/locales/cs.yml +25 -0
- data/config/locales/en.yml +25 -0
- data/config/locales/fi-plain.yml +25 -0
- data/config/locales/fi.yml +25 -0
- data/config/locales/fr.yml +25 -0
- data/config/locales/hu.yml +25 -0
- data/config/locales/it.yml +25 -0
- data/config/locales/nl.yml +25 -0
- data/config/locales/no.yml +2 -0
- data/config/locales/sv.yml +15 -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/lib/decidim/consultations/admin_engine.rb +1 -0
- data/lib/decidim/consultations/participatory_space.rb +4 -0
- data/lib/decidim/consultations/test/factories.rb +5 -0
- data/lib/decidim/consultations/version.rb +1 -1
- metadata +24 -10
@@ -1,14 +1,18 @@
|
|
1
|
-
<div class="
|
2
|
-
|
3
|
-
<div class="
|
4
|
-
<div class="card__content
|
5
|
-
|
6
|
-
<div>
|
7
|
-
<%= check_box_tag "responses[]", response.id, false, id: "vote_id_#{response.id}" %>
|
8
|
-
<%= form.label :id, translated_attribute(response.title), for: "vote_id_#{response.id}" %>
|
9
|
-
</div>
|
10
|
-
<% end %>
|
1
|
+
<div class="card">
|
2
|
+
<% if group %>
|
3
|
+
<div class="card__top">
|
4
|
+
<div class="card__content">
|
5
|
+
<h5 class="card__title"><%= translated_attribute group.title %></h5>
|
11
6
|
</div>
|
12
7
|
</div>
|
8
|
+
<% end %>
|
9
|
+
|
10
|
+
<div class="card__content multiple_votes_form">
|
11
|
+
<% responses.each do |response| %>
|
12
|
+
<div>
|
13
|
+
<%= check_box_tag "responses[]", response.id, false, id: "vote_id_#{response.id}" %>
|
14
|
+
<%= form.label :id, translated_attribute(response.title), for: "vote_id_#{response.id}" %>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
13
17
|
</div>
|
14
18
|
</div>
|
@@ -3,9 +3,15 @@
|
|
3
3
|
method: :post,
|
4
4
|
html: { class: "form" }) do |f| %>
|
5
5
|
|
6
|
-
|
6
|
+
<div class="section row<%= " question-masonry-group" if current_participatory_space.grouped? %>">
|
7
|
+
<% current_participatory_space.grouped_responses.each do |group, responses| %>
|
8
|
+
<div class="column large-4 medium-6<%= " large-offset-4 medium-offset-3" unless current_participatory_space.grouped? %>">
|
9
|
+
<%= render partial: "form", locals: { form: f, group: group, responses: responses } %>
|
10
|
+
</div>
|
11
|
+
<% end %>
|
12
|
+
</div>
|
7
13
|
|
8
|
-
<div class="
|
14
|
+
<div class="question-vote-cabin">
|
9
15
|
|
10
16
|
<div class="row column">
|
11
17
|
<div class="large-offset-4 large-4 medium-offset-3 medium-6">
|
@@ -29,7 +29,7 @@
|
|
29
29
|
<% end %>
|
30
30
|
|
31
31
|
<% if allowed_to? :read, :response %>
|
32
|
-
<li <% if is_active_link?(decidim_admin_consultations.responses_path(current_participatory_space)) %> class="is-active" <% end %>>
|
32
|
+
<li <% if is_active_link?(decidim_admin_consultations.responses_path(current_participatory_space)) || is_active_link?(decidim_admin_consultations.response_groups_path(current_participatory_space)) %> class="is-active" <% end %>>
|
33
33
|
<%= aria_selected_link_to t("responses", scope: "decidim.admin.menu.questions_submenu"),
|
34
34
|
decidim_admin_consultations.responses_path(current_participatory_space) %>
|
35
35
|
</li>
|
data/config/locales/ca.yml
CHANGED
@@ -35,6 +35,8 @@ ca:
|
|
35
35
|
title: Títol
|
36
36
|
vote: Sistema de votació extern
|
37
37
|
what_is_decided: Què es decideix
|
38
|
+
response:
|
39
|
+
decidim_consultations_response_group_id: Grup
|
38
40
|
errors:
|
39
41
|
models:
|
40
42
|
question:
|
@@ -67,10 +69,13 @@ ca:
|
|
67
69
|
decidim:
|
68
70
|
admin:
|
69
71
|
actions:
|
72
|
+
back_to_responses: Torna a les respostes
|
70
73
|
new_consultation: Nova consulta
|
71
74
|
new_question: Nova pregunta
|
72
75
|
new_response: Nova resposta
|
76
|
+
new_response_group: Nou grup
|
73
77
|
publish_results: Publica els resultats
|
78
|
+
response_groups: Administra els grups de respostes
|
74
79
|
unpublish_results: Despublicar resultats
|
75
80
|
consultation_publications:
|
76
81
|
create:
|
@@ -140,6 +145,7 @@ ca:
|
|
140
145
|
response:
|
141
146
|
fields:
|
142
147
|
created_at: Creat el
|
148
|
+
response_group: Grup
|
143
149
|
title: Títol
|
144
150
|
name:
|
145
151
|
one: Resposta
|
@@ -175,6 +181,13 @@ ca:
|
|
175
181
|
update:
|
176
182
|
error: S'ha produït un error en actualitzar aquesta pregunta.
|
177
183
|
success: La pregunta s'ha actualitzat correctament.
|
184
|
+
response_groups:
|
185
|
+
create:
|
186
|
+
error: S'ha produït un error en crear un nou grup de respostes.
|
187
|
+
edit:
|
188
|
+
update: Actualitza
|
189
|
+
form:
|
190
|
+
title: Informació general
|
178
191
|
responses:
|
179
192
|
create:
|
180
193
|
error: Se ha producido un error al crear una nueva respuesta.
|
data/config/locales/cs.yml
CHANGED
@@ -35,6 +35,8 @@ cs:
|
|
35
35
|
title: Titul
|
36
36
|
vote: Externí hlasovací systém
|
37
37
|
what_is_decided: Co se rozhodlo
|
38
|
+
response:
|
39
|
+
decidim_consultations_response_group_id: Skupina
|
38
40
|
errors:
|
39
41
|
models:
|
40
42
|
question:
|
@@ -75,10 +77,13 @@ cs:
|
|
75
77
|
decidim:
|
76
78
|
admin:
|
77
79
|
actions:
|
80
|
+
back_to_responses: Zpět k reakcím
|
78
81
|
new_consultation: Nová konzultace
|
79
82
|
new_question: Nová otázka
|
80
83
|
new_response: Nová odpověď
|
84
|
+
new_response_group: Nová skupina
|
81
85
|
publish_results: Publikujte výsledky
|
86
|
+
response_groups: Spravovat skupinu odpovídajících
|
82
87
|
unpublish_results: Zrušit publikování výsledků
|
83
88
|
consultation_publications:
|
84
89
|
create:
|
@@ -152,6 +157,7 @@ cs:
|
|
152
157
|
response:
|
153
158
|
fields:
|
154
159
|
created_at: Vytvořeno u
|
160
|
+
response_group: Skupina
|
155
161
|
title: Titul
|
156
162
|
name:
|
157
163
|
one: Odezva
|
@@ -189,6 +195,24 @@ cs:
|
|
189
195
|
update:
|
190
196
|
error: Při aktualizaci této otázky došlo k chybě.
|
191
197
|
success: Otázka byla úspěšně aktualizována.
|
198
|
+
response_groups:
|
199
|
+
create:
|
200
|
+
error: Při vytváření nové skupiny odpovídajících došlo k potížím.
|
201
|
+
success: Skupina odpovídajících byla úspěšně vytvořena.
|
202
|
+
destroy:
|
203
|
+
error: Při odstraňování skupiny odpovídajících došlo k potížím. Zkontrolujte, zda na tom nezávisí žádné odpovědi.
|
204
|
+
success: Skupina odpovídajících byla úspěšně smazána.
|
205
|
+
edit:
|
206
|
+
update: Aktualizovat
|
207
|
+
form:
|
208
|
+
title: Obecné informace
|
209
|
+
help: Použijte skupiny pro organizování více otázek při výběru v balíčcích.
|
210
|
+
new:
|
211
|
+
create: Vytvořit
|
212
|
+
title: Nová skupina odpovídajících
|
213
|
+
update:
|
214
|
+
error: Při aktualizaci této odpovědi došlo k chybě.
|
215
|
+
success: Odpověď úspěšně aktualizována.
|
192
216
|
responses:
|
193
217
|
create:
|
194
218
|
error: Při vytváření nové odpovědi došlo k chybě.
|
@@ -209,6 +233,7 @@ cs:
|
|
209
233
|
titles:
|
210
234
|
consultations: Konzultace
|
211
235
|
questions: Otázky
|
236
|
+
response_groups: Skupiny odpovídajících
|
212
237
|
responses: Odpovědi
|
213
238
|
results: Výsledky
|
214
239
|
consultations:
|
data/config/locales/en.yml
CHANGED
@@ -36,6 +36,8 @@ en:
|
|
36
36
|
title: Title
|
37
37
|
vote: External voting system
|
38
38
|
what_is_decided: What is decided
|
39
|
+
response:
|
40
|
+
decidim_consultations_response_group_id: Group
|
39
41
|
errors:
|
40
42
|
models:
|
41
43
|
question:
|
@@ -68,10 +70,13 @@ en:
|
|
68
70
|
decidim:
|
69
71
|
admin:
|
70
72
|
actions:
|
73
|
+
back_to_responses: Back to responses
|
71
74
|
new_consultation: New consultation
|
72
75
|
new_question: New question
|
73
76
|
new_response: New response
|
77
|
+
new_response_group: New group
|
74
78
|
publish_results: Publish results
|
79
|
+
response_groups: Manage response groups
|
75
80
|
unpublish_results: Unpublish results
|
76
81
|
consultation_publications:
|
77
82
|
create:
|
@@ -141,6 +146,7 @@ en:
|
|
141
146
|
response:
|
142
147
|
fields:
|
143
148
|
created_at: Created at
|
149
|
+
response_group: Group
|
144
150
|
title: Title
|
145
151
|
name:
|
146
152
|
one: Response
|
@@ -176,6 +182,24 @@ en:
|
|
176
182
|
update:
|
177
183
|
error: There was a problem updating this question.
|
178
184
|
success: Question successfully updated.
|
185
|
+
response_groups:
|
186
|
+
create:
|
187
|
+
error: There was a problem creating a new response group.
|
188
|
+
success: Response group successfully created.
|
189
|
+
destroy:
|
190
|
+
error: There was a problem removing the response group. Check that no responses depend on it.
|
191
|
+
success: Response group successfully deleted.
|
192
|
+
edit:
|
193
|
+
update: Update
|
194
|
+
form:
|
195
|
+
title: General information
|
196
|
+
help: Use groups to organize multiple choices questions in packages.
|
197
|
+
new:
|
198
|
+
create: Create
|
199
|
+
title: New response group
|
200
|
+
update:
|
201
|
+
error: There was a problem updating this response.
|
202
|
+
success: Response successfully updated.
|
179
203
|
responses:
|
180
204
|
create:
|
181
205
|
error: There was a problem creating a new response.
|
@@ -196,6 +220,7 @@ en:
|
|
196
220
|
titles:
|
197
221
|
consultations: Consultations
|
198
222
|
questions: Questions
|
223
|
+
response_groups: Response Groups
|
199
224
|
responses: Responses
|
200
225
|
results: Results
|
201
226
|
consultations:
|
data/config/locales/fi-plain.yml
CHANGED
@@ -35,6 +35,8 @@ fi-pl:
|
|
35
35
|
title: Otsikko
|
36
36
|
vote: Ulkoinen äänestysjärjestelmä
|
37
37
|
what_is_decided: Mitä päätetään
|
38
|
+
response:
|
39
|
+
decidim_consultations_response_group_id: Ryhmä
|
38
40
|
errors:
|
39
41
|
models:
|
40
42
|
question:
|
@@ -67,10 +69,13 @@ fi-pl:
|
|
67
69
|
decidim:
|
68
70
|
admin:
|
69
71
|
actions:
|
72
|
+
back_to_responses: Takaisin vastauksiin
|
70
73
|
new_consultation: Uusi kuuleminen
|
71
74
|
new_question: Uusi kysymys
|
72
75
|
new_response: Uusi vastaus
|
76
|
+
new_response_group: Uusi ryhmä
|
73
77
|
publish_results: Julkaise tulokset
|
78
|
+
response_groups: Hallitse vastausryhmiä
|
74
79
|
unpublish_results: Peru tulosten julkistus
|
75
80
|
consultation_publications:
|
76
81
|
create:
|
@@ -140,6 +145,7 @@ fi-pl:
|
|
140
145
|
response:
|
141
146
|
fields:
|
142
147
|
created_at: Luontiaika
|
148
|
+
response_group: Ryhmä
|
143
149
|
title: Otsikko
|
144
150
|
name:
|
145
151
|
one: Vastaus
|
@@ -175,6 +181,24 @@ fi-pl:
|
|
175
181
|
update:
|
176
182
|
error: Tämän kysymyksen päivityksessä tapahtui virhe.
|
177
183
|
success: Kysymys päivitetty onnistuneesti.
|
184
|
+
response_groups:
|
185
|
+
create:
|
186
|
+
error: Virhe luotaessa uutta vastausryhmää.
|
187
|
+
success: Vastausryhmän luonti onnistui.
|
188
|
+
destroy:
|
189
|
+
error: Vastausryhmän luonti ei onnistunut. Tarkista, että yksikään vastaus ei riipu tästä ryhmästä.
|
190
|
+
success: Vastausryhmän poisto onnistui.
|
191
|
+
edit:
|
192
|
+
update: Päivitä
|
193
|
+
form:
|
194
|
+
title: Yleiset tiedot
|
195
|
+
help: Käytä ryhmiä järjestelläksesi usean vastausvaihtoehdon kysymyksiä hallittaviksi kokonaisuuksiksi.
|
196
|
+
new:
|
197
|
+
create: Luo
|
198
|
+
title: Uusi vastausryhmä
|
199
|
+
update:
|
200
|
+
error: Tämän vastauksen päivittämisessä tapahtui virhe.
|
201
|
+
success: Vastauksen päivitys onnistui.
|
178
202
|
responses:
|
179
203
|
create:
|
180
204
|
error: Uuden vastauksen luonnissa tapahtui virhe.
|
@@ -195,6 +219,7 @@ fi-pl:
|
|
195
219
|
titles:
|
196
220
|
consultations: Kuulemiset
|
197
221
|
questions: Kysymykset
|
222
|
+
response_groups: Vastausryhmät
|
198
223
|
responses: Vastaukset
|
199
224
|
results: Tulokset
|
200
225
|
consultations:
|
data/config/locales/fi.yml
CHANGED
@@ -35,6 +35,8 @@ fi:
|
|
35
35
|
title: Otsikko
|
36
36
|
vote: Ulkoinen äänestysjärjestelmä
|
37
37
|
what_is_decided: Mitä päätetään
|
38
|
+
response:
|
39
|
+
decidim_consultations_response_group_id: Ryhmä
|
38
40
|
errors:
|
39
41
|
models:
|
40
42
|
question:
|
@@ -67,10 +69,13 @@ fi:
|
|
67
69
|
decidim:
|
68
70
|
admin:
|
69
71
|
actions:
|
72
|
+
back_to_responses: Takaisin vastauksiin
|
70
73
|
new_consultation: Uusi kuuleminen
|
71
74
|
new_question: Uusi kysymys
|
72
75
|
new_response: Uusi vastaus
|
76
|
+
new_response_group: Uusi ryhmä
|
73
77
|
publish_results: Julkaise tulokset
|
78
|
+
response_groups: Hallitse vastausryhmiä
|
74
79
|
unpublish_results: Peru tulosten julkistus
|
75
80
|
consultation_publications:
|
76
81
|
create:
|
@@ -140,6 +145,7 @@ fi:
|
|
140
145
|
response:
|
141
146
|
fields:
|
142
147
|
created_at: Luontiaika
|
148
|
+
response_group: Ryhmä
|
143
149
|
title: Otsikko
|
144
150
|
name:
|
145
151
|
one: Vastaus
|
@@ -175,6 +181,24 @@ fi:
|
|
175
181
|
update:
|
176
182
|
error: Kysymyksen päivitys epäonnistui.
|
177
183
|
success: Kysymyksen päivitys onnistui.
|
184
|
+
response_groups:
|
185
|
+
create:
|
186
|
+
error: Virhe luotaessa uutta vastausryhmää.
|
187
|
+
success: Vastausryhmän luonti onnistui.
|
188
|
+
destroy:
|
189
|
+
error: Vastausryhmän luonti ei onnistunut. Tarkista, että yksikään vastaus ei riipu tästä ryhmästä.
|
190
|
+
success: Vastausryhmän poisto onnistui.
|
191
|
+
edit:
|
192
|
+
update: Päivitä
|
193
|
+
form:
|
194
|
+
title: Yleiset tiedot
|
195
|
+
help: Käytä ryhmiä järjestelläksesi usean vastausvaihtoehdon kysymyksiä hallittaviksi kokonaisuuksiksi.
|
196
|
+
new:
|
197
|
+
create: Luo
|
198
|
+
title: Uusi vastausryhmä
|
199
|
+
update:
|
200
|
+
error: Tämän vastauksen päivittämisessä tapahtui virhe.
|
201
|
+
success: Vastauksen päivitys onnistui.
|
178
202
|
responses:
|
179
203
|
create:
|
180
204
|
error: Uuden vastauksen luonti epäonnistui.
|
@@ -195,6 +219,7 @@ fi:
|
|
195
219
|
titles:
|
196
220
|
consultations: Kuulemiset
|
197
221
|
questions: Kysymykset
|
222
|
+
response_groups: Vastausryhmät
|
198
223
|
responses: Vastaukset
|
199
224
|
results: Tulokset
|
200
225
|
consultations:
|
data/config/locales/fr.yml
CHANGED
@@ -35,6 +35,8 @@ fr:
|
|
35
35
|
title: Titre
|
36
36
|
vote: Système de vote externe
|
37
37
|
what_is_decided: Objectifs
|
38
|
+
response:
|
39
|
+
decidim_consultations_response_group_id: Groupe
|
38
40
|
errors:
|
39
41
|
models:
|
40
42
|
question:
|
@@ -67,10 +69,13 @@ fr:
|
|
67
69
|
decidim:
|
68
70
|
admin:
|
69
71
|
actions:
|
72
|
+
back_to_responses: Retour aux résultats
|
70
73
|
new_consultation: Nouvelle votation
|
71
74
|
new_question: Nouvelle question
|
72
75
|
new_response: Nouvelle réponse
|
76
|
+
new_response_group: Nouveau groupe
|
73
77
|
publish_results: Publier les résultats
|
78
|
+
response_groups: Gérer les groupes de réponses
|
74
79
|
unpublish_results: Dépublier des résultats
|
75
80
|
consultation_publications:
|
76
81
|
create:
|
@@ -140,6 +145,7 @@ fr:
|
|
140
145
|
response:
|
141
146
|
fields:
|
142
147
|
created_at: Créée le
|
148
|
+
response_group: Groupe
|
143
149
|
title: Titre
|
144
150
|
name:
|
145
151
|
one: Réponse
|
@@ -175,6 +181,24 @@ fr:
|
|
175
181
|
update:
|
176
182
|
error: Une erreur s'est produite lors de la mise à jour de cette question.
|
177
183
|
success: Question mise à jour avec succès.
|
184
|
+
response_groups:
|
185
|
+
create:
|
186
|
+
error: Une erreur s'est produite lors de la création d'un nouveau groupe de réponses.
|
187
|
+
success: Le groupe de réponses a été créé avec succès.
|
188
|
+
destroy:
|
189
|
+
error: Il y a eu un problème lors de la suppression du groupe de réponse. Vérifiez qu'aucune réponse ne dépend d'elle.
|
190
|
+
success: Le groupe de réponses a bien été supprimé.
|
191
|
+
edit:
|
192
|
+
update: Mettre à jour
|
193
|
+
form:
|
194
|
+
title: Informations générales
|
195
|
+
help: Utiliser des groupes pour organiser des questions à choix multiples dans des blocs.
|
196
|
+
new:
|
197
|
+
create: Créer
|
198
|
+
title: Nouveau groupe de réponse
|
199
|
+
update:
|
200
|
+
error: Il y a eu un problème lors de la mise à jour de cette réponse.
|
201
|
+
success: Réponse mise à jour avec succès.
|
178
202
|
responses:
|
179
203
|
create:
|
180
204
|
error: Une erreur s'est produite lors de la création d'une nouvelle réponse.
|
@@ -195,6 +219,7 @@ fr:
|
|
195
219
|
titles:
|
196
220
|
consultations: Votations
|
197
221
|
questions: Questions
|
222
|
+
response_groups: Groupes de réponses
|
198
223
|
responses: Réponses
|
199
224
|
results: Résultats
|
200
225
|
consultations:
|
data/config/locales/hu.yml
CHANGED
@@ -35,6 +35,8 @@ hu:
|
|
35
35
|
title: Cím
|
36
36
|
vote: Külső szavazási rendszer
|
37
37
|
what_is_decided: Mi a döntés
|
38
|
+
response:
|
39
|
+
decidim_consultations_response_group_id: Csoport
|
38
40
|
errors:
|
39
41
|
models:
|
40
42
|
question:
|
@@ -67,10 +69,13 @@ hu:
|
|
67
69
|
decidim:
|
68
70
|
admin:
|
69
71
|
actions:
|
72
|
+
back_to_responses: Vissza a válaszokhoz
|
70
73
|
new_consultation: Új konzultáció
|
71
74
|
new_question: Új kérdés
|
72
75
|
new_response: Új válasz
|
76
|
+
new_response_group: Új csoport
|
73
77
|
publish_results: Eredmények közzététele
|
78
|
+
response_groups: Válaszcsoportok kezelése
|
74
79
|
unpublish_results: Eredmények visszavonása
|
75
80
|
consultation_publications:
|
76
81
|
create:
|
@@ -140,6 +145,7 @@ hu:
|
|
140
145
|
response:
|
141
146
|
fields:
|
142
147
|
created_at: 'Létrehozva:'
|
148
|
+
response_group: Csoport
|
143
149
|
title: Cím
|
144
150
|
name:
|
145
151
|
one: Válasz
|
@@ -175,6 +181,24 @@ hu:
|
|
175
181
|
update:
|
176
182
|
error: Hiba történt a kérdés frissítése során.
|
177
183
|
success: Kérdés frissítése sikeres.
|
184
|
+
response_groups:
|
185
|
+
create:
|
186
|
+
error: Hiba történt az új válaszcsoport létrehozása során.
|
187
|
+
success: A válaszcsoport sikeresen létrehozva.
|
188
|
+
destroy:
|
189
|
+
error: Probléma merült fel a válaszcsoport eltávolításánál. Ellenőrizze, hogy nincsenek függő válaszok.
|
190
|
+
success: A válaszcsoport sikeresen törölve.
|
191
|
+
edit:
|
192
|
+
update: Frissítés
|
193
|
+
form:
|
194
|
+
title: Általános információ
|
195
|
+
help: Használj csoportokat, hogy többválaszos kérdéseket csoportokba szervezz.
|
196
|
+
new:
|
197
|
+
create: Létrehoz
|
198
|
+
title: Új válaszcsoport
|
199
|
+
update:
|
200
|
+
error: Hiba történt a válasz frissítése során.
|
201
|
+
success: A válasz sikeresen frissült.
|
178
202
|
responses:
|
179
203
|
create:
|
180
204
|
error: Hiba történt az új válasz létrehozása során.
|
@@ -195,6 +219,7 @@ hu:
|
|
195
219
|
titles:
|
196
220
|
consultations: Konzultációk
|
197
221
|
questions: Kérdések
|
222
|
+
response_groups: Válaszcsoportok
|
198
223
|
responses: Válaszok
|
199
224
|
results: Eredmények
|
200
225
|
consultations:
|
data/config/locales/it.yml
CHANGED
@@ -35,6 +35,8 @@ it:
|
|
35
35
|
title: Titolo
|
36
36
|
vote: Sistema di voto esterno
|
37
37
|
what_is_decided: Cosa è deciso
|
38
|
+
response:
|
39
|
+
decidim_consultations_response_group_id: Gruppo
|
38
40
|
errors:
|
39
41
|
models:
|
40
42
|
question:
|
@@ -67,10 +69,13 @@ it:
|
|
67
69
|
decidim:
|
68
70
|
admin:
|
69
71
|
actions:
|
72
|
+
back_to_responses: Torna alle risposte
|
70
73
|
new_consultation: Nuova consultazione
|
71
74
|
new_question: Nuova domanda
|
72
75
|
new_response: Nuova risposta
|
76
|
+
new_response_group: Nuovo gruppo
|
73
77
|
publish_results: Pubblica risultati
|
78
|
+
response_groups: Gestione gruppi di risposte
|
74
79
|
unpublish_results: Annulla pubblicazione dei risultati
|
75
80
|
consultation_publications:
|
76
81
|
create:
|
@@ -140,6 +145,7 @@ it:
|
|
140
145
|
response:
|
141
146
|
fields:
|
142
147
|
created_at: Creato a
|
148
|
+
response_group: Gruppo
|
143
149
|
title: Titolo
|
144
150
|
name:
|
145
151
|
one: Risposta
|
@@ -175,6 +181,24 @@ it:
|
|
175
181
|
update:
|
176
182
|
error: Si è verificato un errore durante l'aggiornamento di questa domanda.
|
177
183
|
success: Domanda aggiornata correttamente.
|
184
|
+
response_groups:
|
185
|
+
create:
|
186
|
+
error: Si è verificato un problema durante la creazione di un nuovo gruppo di risposta.
|
187
|
+
success: Gruppo di risposta creato con successo.
|
188
|
+
destroy:
|
189
|
+
error: Si è verificato un problema durante la rimozione del gruppo di risposta. Controlla che nessuna risposta dipenda da esso.
|
190
|
+
success: Gruppo di varianti rimosso con successo.
|
191
|
+
edit:
|
192
|
+
update: Aggiorna
|
193
|
+
form:
|
194
|
+
title: Informazioni Generali
|
195
|
+
help: Utilizza i gruppi per organizzare domande di scelta multipla in pacchetti.
|
196
|
+
new:
|
197
|
+
create: Crea
|
198
|
+
title: Nuovo gruppo di risposta
|
199
|
+
update:
|
200
|
+
error: C'è stato un problema durante l'aggiornamento di questa risposta.
|
201
|
+
success: Risposta aggiornata correttamente.
|
178
202
|
responses:
|
179
203
|
create:
|
180
204
|
error: Si è verificato un errore durante la creazione di una nuova risposta.
|
@@ -195,6 +219,7 @@ it:
|
|
195
219
|
titles:
|
196
220
|
consultations: consultazioni
|
197
221
|
questions: Domande
|
222
|
+
response_groups: Gruppi di risposta
|
198
223
|
responses: risposte
|
199
224
|
results: Risultati
|
200
225
|
consultations:
|
data/config/locales/nl.yml
CHANGED
@@ -35,6 +35,8 @@ nl:
|
|
35
35
|
title: Titel
|
36
36
|
vote: Extern stemsysteem
|
37
37
|
what_is_decided: Wat besloten werd
|
38
|
+
response:
|
39
|
+
decidim_consultations_response_group_id: Groep
|
38
40
|
errors:
|
39
41
|
models:
|
40
42
|
question:
|
@@ -67,10 +69,13 @@ nl:
|
|
67
69
|
decidim:
|
68
70
|
admin:
|
69
71
|
actions:
|
72
|
+
back_to_responses: Terug naar reacties
|
70
73
|
new_consultation: Nieuwe raadpleging
|
71
74
|
new_question: Nieuwe vraag
|
72
75
|
new_response: Nieuw antwoord
|
76
|
+
new_response_group: Nieuwe groep
|
73
77
|
publish_results: Publiceer resultaten
|
78
|
+
response_groups: Beheer reacties
|
74
79
|
unpublish_results: Publicatie van resultaten ongedaan maken
|
75
80
|
consultation_publications:
|
76
81
|
create:
|
@@ -140,6 +145,7 @@ nl:
|
|
140
145
|
response:
|
141
146
|
fields:
|
142
147
|
created_at: Aangemaakt op
|
148
|
+
response_group: Groep
|
143
149
|
title: Titel
|
144
150
|
name:
|
145
151
|
one: Antwoord
|
@@ -175,6 +181,24 @@ nl:
|
|
175
181
|
update:
|
176
182
|
error: Er is een fout opgetreden bij het bijwerken van deze vraag.
|
177
183
|
success: Vraag is succesvol bijgewerkt.
|
184
|
+
response_groups:
|
185
|
+
create:
|
186
|
+
error: Er is een fout opgetreden bij het maken van een nieuwe groep.
|
187
|
+
success: Groep met succes gemaakt.
|
188
|
+
destroy:
|
189
|
+
error: Er was een probleem bij het verwijderen van de reactiegroep. Misschien hangen er nog reacties aan.
|
190
|
+
success: Groep succesvol verwijderd.
|
191
|
+
edit:
|
192
|
+
update: Bijwerken
|
193
|
+
form:
|
194
|
+
title: Algemene informatie
|
195
|
+
help: Gebruik groepen om meerkeuzevragen in pakketten te organiseren.
|
196
|
+
new:
|
197
|
+
create: Aanmaken
|
198
|
+
title: Nieuwe responsgroep
|
199
|
+
update:
|
200
|
+
error: Er is een fout opgetreden bij het bijwerken van dit antwoord.
|
201
|
+
success: Resultaat met succes bijgewerkt.
|
178
202
|
responses:
|
179
203
|
create:
|
180
204
|
error: Er is een fout opgetreden bij het maken van een nieuw antwoord.
|
@@ -195,6 +219,7 @@ nl:
|
|
195
219
|
titles:
|
196
220
|
consultations: Burgerinspraak
|
197
221
|
questions: vragen
|
222
|
+
response_groups: Responsgroepen
|
198
223
|
responses: Antwoorden
|
199
224
|
results: Resultaten
|
200
225
|
consultations:
|
data/config/locales/no.yml
CHANGED
data/config/locales/sv.yml
CHANGED
@@ -35,6 +35,8 @@ sv:
|
|
35
35
|
title: Titel
|
36
36
|
vote: Externt omröstningssystem
|
37
37
|
what_is_decided: Vad som bestäms
|
38
|
+
response:
|
39
|
+
decidim_consultations_response_group_id: Grupp
|
38
40
|
errors:
|
39
41
|
vote:
|
40
42
|
decidim_consultations_response_id:
|
@@ -62,10 +64,13 @@ sv:
|
|
62
64
|
decidim:
|
63
65
|
admin:
|
64
66
|
actions:
|
67
|
+
back_to_responses: Tillbaka till svaren
|
65
68
|
new_consultation: Nytt samråd
|
66
69
|
new_question: Ny fråga
|
67
70
|
new_response: Nytt svar
|
71
|
+
new_response_group: Ny grupp
|
68
72
|
publish_results: Publicera resultat
|
73
|
+
response_groups: Hantera svarsgrupper
|
69
74
|
unpublish_results: Avpublicera resultat
|
70
75
|
consultation_publications:
|
71
76
|
create:
|
@@ -134,6 +139,7 @@ sv:
|
|
134
139
|
response:
|
135
140
|
fields:
|
136
141
|
created_at: Skapad
|
142
|
+
response_group: Grupp
|
137
143
|
title: Titel
|
138
144
|
name:
|
139
145
|
one: Svar
|
@@ -167,6 +173,14 @@ sv:
|
|
167
173
|
update:
|
168
174
|
error: Det gick inte att uppdatera frågan.
|
169
175
|
success: Frågan har uppdaterats.
|
176
|
+
response_groups:
|
177
|
+
edit:
|
178
|
+
update: Uppdatera
|
179
|
+
form:
|
180
|
+
title: Allmän information
|
181
|
+
new:
|
182
|
+
create: Skapa
|
183
|
+
title: Ny svarsgrupp
|
170
184
|
responses:
|
171
185
|
create:
|
172
186
|
error: Det gick inte att skapa ett nytt svar.
|
@@ -187,6 +201,7 @@ sv:
|
|
187
201
|
titles:
|
188
202
|
consultations: Samråd
|
189
203
|
questions: Frågor
|
204
|
+
response_groups: Svarsgrupper
|
190
205
|
responses: Svar
|
191
206
|
results: Resultat
|
192
207
|
consultations:
|
@@ -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
|