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.
Files changed (131) 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_consultation.rb +9 -4
  16. data/app/commands/decidim/consultations/admin/update_response.rb +3 -2
  17. data/app/commands/decidim/consultations/admin/update_response_group.rb +46 -0
  18. data/app/controllers/concerns/decidim/consultations/admin/filterable.rb +27 -0
  19. data/app/controllers/decidim/consultations/admin/consultations_controller.rb +2 -1
  20. data/app/controllers/decidim/consultations/admin/response_groups_controller.rb +88 -0
  21. data/app/controllers/decidim/consultations/admin/responses_controller.rb +1 -0
  22. data/app/forms/decidim/consultations/admin/consultation_form.rb +5 -6
  23. data/app/forms/decidim/consultations/admin/question_form.rb +5 -6
  24. data/app/forms/decidim/consultations/admin/response_form.rb +5 -0
  25. data/app/forms/decidim/consultations/admin/response_group_form.rb +18 -0
  26. data/app/helpers/decidim/consultations/admin/questions_helper.rb +11 -0
  27. data/app/models/decidim/consultation.rb +25 -0
  28. data/app/models/decidim/consultations/question.rb +34 -1
  29. data/app/models/decidim/consultations/response.rb +11 -0
  30. data/app/models/decidim/consultations/response_group.rb +23 -0
  31. data/app/permissions/decidim/consultations/admin/permissions.rb +16 -0
  32. data/app/permissions/decidim/consultations/permissions.rb +2 -0
  33. data/app/presenters/decidim/consultations/question_stats_presenter.rb +1 -1
  34. data/app/types/decidim/consultations/consultation_question_type.rb +57 -0
  35. data/app/types/decidim/consultations/consultation_type.rb +32 -0
  36. data/app/views/decidim/consultations/admin/consultations/index.html.erb +3 -2
  37. data/app/views/decidim/consultations/admin/response_groups/_form.html.erb +11 -0
  38. data/app/views/decidim/consultations/admin/response_groups/edit.html.erb +18 -0
  39. data/app/views/decidim/consultations/admin/response_groups/index.html.erb +56 -0
  40. data/app/views/decidim/consultations/admin/response_groups/new.html.erb +13 -0
  41. data/app/views/decidim/consultations/admin/responses/_form.html.erb +3 -0
  42. data/app/views/decidim/consultations/admin/responses/index.html.erb +12 -1
  43. data/app/views/decidim/consultations/consultations/_consultation_card.html.erb +3 -3
  44. data/app/views/decidim/consultations/consultations/_consultation_details.html.erb +2 -2
  45. data/app/views/decidim/consultations/consultations/_filters.html.erb +9 -4
  46. data/app/views/decidim/consultations/consultations/_question.html.erb +2 -2
  47. data/app/views/decidim/consultations/consultations/index.html.erb +3 -3
  48. data/app/views/decidim/consultations/question_multiple_votes/_form.html.erb +14 -10
  49. data/app/views/decidim/consultations/question_multiple_votes/show.html.erb +8 -2
  50. data/app/views/decidim/consultations/questions/_vote_button.html.erb +70 -67
  51. data/app/views/decidim/consultations/questions/_vote_modal.html.erb +1 -1
  52. data/app/views/decidim/consultations/questions/_vote_modal_confirm.html.erb +1 -1
  53. data/app/views/decidim/consultations/questions/show.html.erb +4 -4
  54. data/app/views/layouts/decidim/_question_components.html.erb +3 -3
  55. data/app/views/layouts/decidim/_question_header.html.erb +1 -1
  56. data/app/views/layouts/decidim/admin/question.html.erb +1 -1
  57. data/app/views/layouts/decidim/consultation.html.erb +1 -0
  58. data/config/locales/am-ET.yml +1 -0
  59. data/config/locales/ar.yml +29 -1
  60. data/config/locales/bg-BG.yml +1 -0
  61. data/config/locales/bg.yml +1 -0
  62. data/config/locales/ca.yml +29 -1
  63. data/config/locales/cs.yml +37 -9
  64. data/config/locales/da-DK.yml +1 -0
  65. data/config/locales/da.yml +1 -0
  66. data/config/locales/de.yml +82 -1
  67. data/config/locales/el-GR.yml +1 -0
  68. data/config/locales/el.yml +377 -0
  69. data/config/locales/en.yml +29 -1
  70. data/config/locales/eo.yml +1 -0
  71. data/config/locales/es-MX.yml +29 -1
  72. data/config/locales/es-PY.yml +29 -1
  73. data/config/locales/es.yml +29 -1
  74. data/config/locales/et-EE.yml +1 -0
  75. data/config/locales/et.yml +1 -0
  76. data/config/locales/eu.yml +0 -1
  77. data/config/locales/fi-plain.yml +29 -1
  78. data/config/locales/fi.yml +38 -10
  79. data/config/locales/fr-CA.yml +377 -0
  80. data/config/locales/fr.yml +30 -2
  81. data/config/locales/ga-IE.yml +1 -0
  82. data/config/locales/gl.yml +0 -1
  83. data/config/locales/hr-HR.yml +1 -0
  84. data/config/locales/hr.yml +1 -0
  85. data/config/locales/hu.yml +25 -1
  86. data/config/locales/id-ID.yml +0 -1
  87. data/config/locales/is-IS.yml +185 -0
  88. data/config/locales/is.yml +185 -0
  89. data/config/locales/it.yml +82 -54
  90. data/config/locales/ja-JP.yml +367 -0
  91. data/config/locales/ja.yml +367 -0
  92. data/config/locales/ko-KR.yml +1 -0
  93. data/config/locales/ko.yml +1 -0
  94. data/config/locales/lt-LT.yml +1 -0
  95. data/config/locales/lt.yml +1 -0
  96. data/config/locales/lv.yml +383 -0
  97. data/config/locales/mt-MT.yml +1 -0
  98. data/config/locales/mt.yml +1 -0
  99. data/config/locales/nl.yml +29 -1
  100. data/config/locales/no.yml +312 -1
  101. data/config/locales/om-ET.yml +1 -0
  102. data/config/locales/pl.yml +183 -102
  103. data/config/locales/pt-BR.yml +1 -2
  104. data/config/locales/pt.yml +156 -75
  105. data/config/locales/ro-RO.yml +338 -0
  106. data/config/locales/ru.yml +0 -1
  107. data/config/locales/sk-SK.yml +394 -0
  108. data/config/locales/sk.yml +393 -0
  109. data/config/locales/sl.yml +9 -0
  110. data/config/locales/so-SO.yml +1 -0
  111. data/config/locales/sr-CS.yml +1 -0
  112. data/config/locales/sv.yml +60 -11
  113. data/config/locales/ti-ER.yml +1 -0
  114. data/config/locales/tr-TR.yml +0 -1
  115. data/config/locales/uk.yml +0 -1
  116. data/config/locales/vi-VN.yml +1 -0
  117. data/config/locales/vi.yml +1 -0
  118. data/config/locales/zh-CN.yml +367 -0
  119. data/config/locales/zh-TW.yml +1 -0
  120. data/db/migrate/20190708114204_create_decidim_consultations_response_groups.rb +16 -0
  121. data/db/migrate/20190708120345_add_response_groups_count_to_decidim_consultations_questions.rb +7 -0
  122. data/db/migrate/20190708121643_add_response_groups_to_decidim_consultations_responses.rb +10 -0
  123. data/db/migrate/20200320105916_index_foreign_keys_in_decidim_consultations_votes.rb +7 -0
  124. data/db/migrate/20200827154143_add_commentable_counter_cache_to_consultations.rb +9 -0
  125. data/db/seeds/city.jpeg +0 -0
  126. data/db/seeds/city2.jpeg +0 -0
  127. data/lib/decidim/consultations/admin_engine.rb +2 -0
  128. data/lib/decidim/consultations/participatory_space.rb +23 -17
  129. data/lib/decidim/consultations/test/factories.rb +6 -0
  130. data/lib/decidim/consultations/version.rb +1 -1
  131. metadata +67 -11
@@ -0,0 +1 @@
1
+ ga:
@@ -29,7 +29,6 @@ gl:
29
29
  scope: Área municipal
30
30
  slug: URL slug
31
31
  subtitle: Subtítulo
32
- title: Título
33
32
  vote: Sistema de votación externa
34
33
  what_is_decided: O que se decide
35
34
  errors:
@@ -0,0 +1 @@
1
+ hr:
@@ -0,0 +1 @@
1
+ hr:
@@ -32,9 +32,10 @@ hu:
32
32
  scope: Helyhatósági terület
33
33
  slug: URL slug
34
34
  subtitle: Felirat
35
- title: Cím
36
35
  vote: Külső szavazási rendszer
37
36
  what_is_decided: Mi a döntés
37
+ response:
38
+ decidim_consultations_response_group_id: Csoport
38
39
  errors:
39
40
  models:
40
41
  question:
@@ -67,10 +68,13 @@ hu:
67
68
  decidim:
68
69
  admin:
69
70
  actions:
71
+ back_to_responses: Vissza a válaszokhoz
70
72
  new_consultation: Új konzultáció
71
73
  new_question: Új kérdés
72
74
  new_response: Új válasz
75
+ new_response_group: Új csoport
73
76
  publish_results: Eredmények közzététele
77
+ response_groups: Válaszcsoportok kezelése
74
78
  unpublish_results: Eredmények visszavonása
75
79
  consultation_publications:
76
80
  create:
@@ -140,6 +144,7 @@ hu:
140
144
  response:
141
145
  fields:
142
146
  created_at: 'Létrehozva:'
147
+ response_group: Csoport
143
148
  title: Cím
144
149
  name:
145
150
  one: Válasz
@@ -175,6 +180,24 @@ hu:
175
180
  update:
176
181
  error: Hiba történt a kérdés frissítése során.
177
182
  success: Kérdés frissítése sikeres.
183
+ response_groups:
184
+ create:
185
+ error: Hiba történt az új válaszcsoport létrehozása során.
186
+ success: A válaszcsoport sikeresen létrehozva.
187
+ destroy:
188
+ error: Probléma merült fel a válaszcsoport eltávolításánál. Ellenőrizze, hogy nincsenek függő válaszok.
189
+ success: A válaszcsoport sikeresen törölve.
190
+ edit:
191
+ update: Frissítés
192
+ form:
193
+ title: Általános információ
194
+ help: Használj csoportokat, hogy többválaszos kérdéseket csoportokba szervezz.
195
+ new:
196
+ create: Létrehoz
197
+ title: Új válaszcsoport
198
+ update:
199
+ error: Hiba történt a válasz frissítése során.
200
+ success: A válasz sikeresen frissült.
178
201
  responses:
179
202
  create:
180
203
  error: Hiba történt az új válasz létrehozása során.
@@ -195,6 +218,7 @@ hu:
195
218
  titles:
196
219
  consultations: Konzultációk
197
220
  questions: Kérdések
221
+ response_groups: Válaszcsoportok
198
222
  responses: Válaszok
199
223
  results: Eredmények
200
224
  consultations:
@@ -29,7 +29,6 @@ id:
29
29
  scope: Daerah kota
30
30
  slug: Siput URL
31
31
  subtitle: Subtitle
32
- title: Judul
33
32
  vote: Sistem pemungutan suara eksternal
34
33
  what_is_decided: Apa yang diputuskan
35
34
  errors:
@@ -0,0 +1,185 @@
1
+ is-IS:
2
+ activemodel:
3
+ attributes:
4
+ consultation:
5
+ banner_image: Banner image
6
+ decidim_highlighted_scope_id: Hápunktur sviðsins
7
+ description: Lýsing
8
+ introductory_image: Inngangs mynd
9
+ introductory_video_url: Inngangur vídeó URL
10
+ slug: URL slug
11
+ subtitle: Texti
12
+ title: Titill
13
+ question:
14
+ banner_image: Banner image
15
+ decidim_scope_id: Borgarsvæði
16
+ hashtag: Kassamerki
17
+ hero_image: Heimsmynd
18
+ i_frame_url: Vefslóð fyrir utanaðkomandi atkvæðagreiðslur
19
+ origin_scope: Umfang
20
+ origin_title: Uppruni
21
+ origin_url: Uppruni vefslóð
22
+ participatory_scope: Þátttökuskilyrði
23
+ promoter_group: Framkvæmdarhópur
24
+ question_context: Samhengi
25
+ reference: Tilvísun
26
+ scope: Borgarsvæði
27
+ slug: URL slug
28
+ subtitle: Texti
29
+ vote: Ytri atkvæðakerfi
30
+ what_is_decided: Hvað er ákveðið
31
+ errors:
32
+ vote:
33
+ decidim_consultations_response_id:
34
+ not_found: Svar fannst ekki.
35
+ decidim:
36
+ admin:
37
+ actions:
38
+ publish_results: Birta niðurstöður
39
+ unpublish_results: Afritaðu niðurstöðurnar
40
+ consultations:
41
+ create:
42
+ success: Samráð hefur verið búið til.
43
+ edit:
44
+ update: Uppfæra
45
+ form:
46
+ slug_help: 'Vefslóðir eru notaðir til að búa til slóðir sem benda til þessa samráðs. Aðeins viðurkennir stafir, tölur og bindur og verður að byrja með stafi. Dæmi: %{url}'
47
+ title: Almennar upplýsingar
48
+ index:
49
+ not_published: Ekki birt
50
+ published: Published
51
+ new:
52
+ create: Búa til
53
+ title: Nýtt samráð
54
+ update:
55
+ success: Samráð uppfærður með góðum árangri.
56
+ menu:
57
+ consultations: Samráð
58
+ consultations_submenu:
59
+ info: Upplýsingar
60
+ questions: Spurningar
61
+ questions_submenu:
62
+ components: Hluti
63
+ consultation: Samráð
64
+ info: Upplýsingar
65
+ responses: Svör
66
+ models:
67
+ consultation:
68
+ fields:
69
+ created_at: Búið til á
70
+ published: Published
71
+ title: Titill
72
+ name:
73
+ one: Samráð
74
+ other: Samráð
75
+ question:
76
+ fields:
77
+ created_at: Búið til á
78
+ published: Published
79
+ title: Titill
80
+ name:
81
+ one: Spurning
82
+ other: Spurningar
83
+ response:
84
+ fields:
85
+ created_at: Búið til á
86
+ title: Titill
87
+ name:
88
+ one: Svar
89
+ other: Svör
90
+ questions:
91
+ create:
92
+ success: Spurning búin til.
93
+ edit:
94
+ update: Uppfæra
95
+ form:
96
+ title: Almennar upplýsingar
97
+ index:
98
+ not_published: Ekki birt
99
+ published: Published
100
+ new:
101
+ create: Búa til
102
+ title: Ný spurning
103
+ responses:
104
+ create:
105
+ success: Svar búin til.
106
+ edit:
107
+ update: Uppfæra
108
+ form:
109
+ title: Almennar upplýsingar
110
+ new:
111
+ create: Búa til
112
+ title: Nýtt svar
113
+ titles:
114
+ consultations: Samráð
115
+ questions: Spurningar
116
+ responses: Svör
117
+ consultations:
118
+ consultation:
119
+ view_results: Skoða niðurstöður
120
+ consultation_card:
121
+ view_results: Skoða niðurstöður
122
+ consultations:
123
+ orders:
124
+ label: 'Raða samráð með:'
125
+ random: Handahófi
126
+ recent: Síðast
127
+ count:
128
+ title:
129
+ one: "%{count} samráð"
130
+ other: "%{count} samráð"
131
+ filters:
132
+ active: Virkur
133
+ all: Allt
134
+ finished: Lokið
135
+ search: Leita
136
+ upcoming: Næstu
137
+ filters_small_view:
138
+ close_modal: Lokaðu glugga
139
+ filter: Sía
140
+ filter_by: Sía eftir
141
+ unfold: Fella út
142
+ index:
143
+ title: Samráð
144
+ pages:
145
+ home:
146
+ highlighted_consultations:
147
+ active_consultations: Virkt samráð
148
+ question:
149
+ take_part: Taka þátt
150
+ view_results: Skoða niðurstöður
151
+ votes_out_of:
152
+ one: kjósa út úr
153
+ other: atkvæði úr
154
+ menu:
155
+ consultations: Samráð
156
+ questions:
157
+ results:
158
+ title: Niðurstöður
159
+ show:
160
+ read_more: Lestu meira
161
+ statistics:
162
+ assistants_count_title: Aðstoðarmenn
163
+ comments_count_title: Athugasemdir
164
+ meetings_count_title: Fundir
165
+ technical_info:
166
+ technical_data: Tæknilegar upplýsingar
167
+ vote_button:
168
+ already_voted: Already kusu
169
+ starting_from: Byrjar frá %{date}
170
+ vote: Kjósa
171
+ vote_modal_confirm:
172
+ change: Breyta
173
+ confirm: Staðfesta
174
+ contextual_help: Vinsamlegast staðfestu valinn valkost.
175
+ layouts:
176
+ decidim:
177
+ admin:
178
+ question:
179
+ attachments: Viðhengi
180
+ categories: Flokkar
181
+ question_components:
182
+ question_menu_item: Spurningin
183
+ unfold: Fella út
184
+ question_header:
185
+ back_to_consultation: Sjá öll samráð
@@ -0,0 +1,185 @@
1
+ is:
2
+ activemodel:
3
+ attributes:
4
+ consultation:
5
+ banner_image: Banner image
6
+ decidim_highlighted_scope_id: Hápunktur sviðsins
7
+ description: Lýsing
8
+ introductory_image: Inngangs mynd
9
+ introductory_video_url: Inngangur vídeó URL
10
+ slug: URL slug
11
+ subtitle: Texti
12
+ title: Titill
13
+ question:
14
+ banner_image: Banner image
15
+ decidim_scope_id: Borgarsvæði
16
+ hashtag: Kassamerki
17
+ hero_image: Heimsmynd
18
+ i_frame_url: Vefslóð fyrir utanaðkomandi atkvæðagreiðslur
19
+ origin_scope: Umfang
20
+ origin_title: Uppruni
21
+ origin_url: Uppruni vefslóð
22
+ participatory_scope: Þátttökuskilyrði
23
+ promoter_group: Framkvæmdarhópur
24
+ question_context: Samhengi
25
+ reference: Tilvísun
26
+ scope: Borgarsvæði
27
+ slug: URL slug
28
+ subtitle: Texti
29
+ vote: Ytri atkvæðakerfi
30
+ what_is_decided: Hvað er ákveðið
31
+ errors:
32
+ vote:
33
+ decidim_consultations_response_id:
34
+ not_found: Svar fannst ekki.
35
+ decidim:
36
+ admin:
37
+ actions:
38
+ publish_results: Birta niðurstöður
39
+ unpublish_results: Afritaðu niðurstöðurnar
40
+ consultations:
41
+ create:
42
+ success: Samráð hefur verið búið til.
43
+ edit:
44
+ update: Uppfæra
45
+ form:
46
+ slug_help: 'Vefslóðir eru notaðir til að búa til slóðir sem benda til þessa samráðs. Aðeins viðurkennir stafir, tölur og bindur og verður að byrja með stafi. Dæmi: %{url}'
47
+ title: Almennar upplýsingar
48
+ index:
49
+ not_published: Ekki birt
50
+ published: Published
51
+ new:
52
+ create: Búa til
53
+ title: Nýtt samráð
54
+ update:
55
+ success: Samráð uppfærður með góðum árangri.
56
+ menu:
57
+ consultations: Samráð
58
+ consultations_submenu:
59
+ info: Upplýsingar
60
+ questions: Spurningar
61
+ questions_submenu:
62
+ components: Hluti
63
+ consultation: Samráð
64
+ info: Upplýsingar
65
+ responses: Svör
66
+ models:
67
+ consultation:
68
+ fields:
69
+ created_at: Búið til á
70
+ published: Published
71
+ title: Titill
72
+ name:
73
+ one: Samráð
74
+ other: Samráð
75
+ question:
76
+ fields:
77
+ created_at: Búið til á
78
+ published: Published
79
+ title: Titill
80
+ name:
81
+ one: Spurning
82
+ other: Spurningar
83
+ response:
84
+ fields:
85
+ created_at: Búið til á
86
+ title: Titill
87
+ name:
88
+ one: Svar
89
+ other: Svör
90
+ questions:
91
+ create:
92
+ success: Spurning búin til.
93
+ edit:
94
+ update: Uppfæra
95
+ form:
96
+ title: Almennar upplýsingar
97
+ index:
98
+ not_published: Ekki birt
99
+ published: Published
100
+ new:
101
+ create: Búa til
102
+ title: Ný spurning
103
+ responses:
104
+ create:
105
+ success: Svar búin til.
106
+ edit:
107
+ update: Uppfæra
108
+ form:
109
+ title: Almennar upplýsingar
110
+ new:
111
+ create: Búa til
112
+ title: Nýtt svar
113
+ titles:
114
+ consultations: Samráð
115
+ questions: Spurningar
116
+ responses: Svör
117
+ consultations:
118
+ consultation:
119
+ view_results: Skoða niðurstöður
120
+ consultation_card:
121
+ view_results: Skoða niðurstöður
122
+ consultations:
123
+ orders:
124
+ label: 'Raða samráð með:'
125
+ random: Handahófi
126
+ recent: Síðast
127
+ count:
128
+ title:
129
+ one: "%{count} samráð"
130
+ other: "%{count} samráð"
131
+ filters:
132
+ active: Virkur
133
+ all: Allt
134
+ finished: Lokið
135
+ search: Leita
136
+ upcoming: Næstu
137
+ filters_small_view:
138
+ close_modal: Lokaðu glugga
139
+ filter: Sía
140
+ filter_by: Sía eftir
141
+ unfold: Fella út
142
+ index:
143
+ title: Samráð
144
+ pages:
145
+ home:
146
+ highlighted_consultations:
147
+ active_consultations: Virkt samráð
148
+ question:
149
+ take_part: Taka þátt
150
+ view_results: Skoða niðurstöður
151
+ votes_out_of:
152
+ one: kjósa út úr
153
+ other: atkvæði úr
154
+ menu:
155
+ consultations: Samráð
156
+ questions:
157
+ results:
158
+ title: Niðurstöður
159
+ show:
160
+ read_more: Lestu meira
161
+ statistics:
162
+ assistants_count_title: Aðstoðarmenn
163
+ comments_count_title: Athugasemdir
164
+ meetings_count_title: Fundir
165
+ technical_info:
166
+ technical_data: Tæknilegar upplýsingar
167
+ vote_button:
168
+ already_voted: Already kusu
169
+ starting_from: Byrjar frá %{date}
170
+ vote: Kjósa
171
+ vote_modal_confirm:
172
+ change: Breyta
173
+ confirm: Staðfesta
174
+ contextual_help: Vinsamlegast staðfestu valinn valkost.
175
+ layouts:
176
+ decidim:
177
+ admin:
178
+ question:
179
+ attachments: Viðhengi
180
+ categories: Flokkar
181
+ question_components:
182
+ question_menu_item: Spurningin
183
+ unfold: Fella út
184
+ question_header:
185
+ back_to_consultation: Sjá öll samráð