decidim-admin 0.13.1 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of decidim-admin might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/assets/javascripts/decidim/admin/application.js.es6 +3 -0
- data/app/assets/javascripts/decidim/admin/bundle.js +5 -5
- data/app/assets/javascripts/decidim/admin/bundle.js.map +1 -1
- data/app/assets/javascripts/decidim/admin/draggable-list.js.es6 +30 -0
- data/app/assets/stylesheets/decidim/admin/components/_autocomplete_select.component.scss +6 -0
- data/app/assets/stylesheets/decidim/admin/extra/_action-icon.scss +5 -0
- data/app/assets/stylesheets/decidim/admin/extra/_title_bar.scss +4 -0
- data/app/assets/stylesheets/decidim/admin/modules/_card-grid.scss +25 -0
- data/app/assets/stylesheets/decidim/admin/modules/_draggable-list.scss +27 -0
- data/app/assets/stylesheets/decidim/admin/modules/_forms.scss +8 -1
- data/app/assets/stylesheets/decidim/admin/modules/_modules.scss +8 -0
- data/app/assets/stylesheets/decidim/admin/utils/_mixins.scss +2 -0
- data/app/cells/decidim/admin/content_block/show.erb +13 -0
- data/app/cells/decidim/admin/content_block_cell.rb +19 -0
- data/app/commands/decidim/admin/reorder_content_blocks.rb +97 -0
- data/app/commands/decidim/admin/update_component_permissions.rb +31 -11
- data/app/commands/decidim/admin/update_content_block.rb +55 -0
- data/app/commands/decidim/admin/update_organization_appearance.rb +0 -3
- data/app/controllers/decidim/admin/component_permissions_controller.rb +32 -5
- data/app/controllers/decidim/admin/components/base_controller.rb +2 -1
- data/app/controllers/decidim/admin/concerns/has_attachment_collections.rb +0 -8
- data/app/controllers/decidim/admin/concerns/has_private_users.rb +6 -10
- data/app/controllers/decidim/admin/impersonations_controller.rb +1 -0
- data/app/controllers/decidim/admin/officializations_controller.rb +1 -0
- data/app/controllers/decidim/admin/organization_homepage_content_blocks_controller.rb +64 -0
- data/app/controllers/decidim/admin/organization_homepage_controller.rb +52 -0
- data/app/forms/decidim/admin/content_block_form.rb +24 -0
- data/app/forms/decidim/admin/organization_appearance_form.rb +0 -4
- data/app/helpers/decidim/admin/resource_permissions_helper.rb +24 -0
- data/app/views/decidim/admin/component_permissions/edit.html.erb +8 -3
- data/app/views/decidim/admin/components/edit.html.erb +1 -1
- data/app/views/decidim/admin/components/new.html.erb +1 -1
- data/app/views/decidim/admin/officializations/index.html.erb +3 -2
- data/app/views/decidim/admin/organization_appearance/_form.html.erb +0 -10
- data/app/views/decidim/admin/organization_homepage/edit.html.erb +43 -0
- data/app/views/decidim/admin/organization_homepage_content_blocks/edit.html.erb +13 -0
- data/app/views/decidim/admin/participatory_space_private_users/index.html.erb +3 -2
- data/app/views/layouts/decidim/admin/newsletters.erb +1 -1
- data/app/views/layouts/decidim/admin/settings.html.erb +3 -0
- data/config/locales/ca.yml +8 -30
- data/config/locales/en.yml +8 -30
- data/config/locales/es-PY.yml +8 -30
- data/config/locales/es.yml +8 -30
- data/config/locales/eu.yml +8 -30
- data/config/locales/fi.yml +128 -150
- data/config/locales/fr.yml +8 -30
- data/config/locales/gl.yml +8 -30
- data/config/locales/hu.yml +660 -0
- data/config/locales/it.yml +8 -30
- data/config/locales/nl.yml +8 -30
- data/config/locales/pl.yml +8 -30
- data/config/locales/pt-BR.yml +41 -63
- data/config/locales/pt.yml +8 -30
- data/config/locales/ru.yml +18 -43
- data/config/locales/sv.yml +38 -60
- data/config/locales/uk.yml +19 -44
- data/config/routes.rb +3 -0
- data/lib/decidim/admin/engine.rb +8 -0
- data/lib/decidim/admin/form_builder.rb +2 -1
- data/lib/decidim/admin/test/manage_attachment_collections_examples.rb +1 -1
- data/lib/decidim/admin/test/manage_attachments_examples.rb +4 -4
- data/lib/decidim/admin/test/manage_component_permissions_examples.rb +192 -0
- data/lib/decidim/admin/version.rb +1 -1
- metadata +31 -11
data/config/locales/ru.yml
CHANGED
@@ -52,7 +52,6 @@ ru:
|
|
52
52
|
highlighted_content_banner_image: Изображение
|
53
53
|
highlighted_content_banner_short_description: Краткое описание
|
54
54
|
highlighted_content_banner_title: Заголовок
|
55
|
-
homepage_image: Изображение главной страницы
|
56
55
|
instagram_handler: Обработчик Instagram
|
57
56
|
logo: Логотип
|
58
57
|
name: Имя
|
@@ -66,7 +65,6 @@ ru:
|
|
66
65
|
show_statistics: Показывать статистику
|
67
66
|
tos_version: Версия условий участия
|
68
67
|
twitter_handler: Обработчик Twitter
|
69
|
-
welcome_text: Текст приветствия
|
70
68
|
youtube_handler: Обработчик YouTube
|
71
69
|
scope:
|
72
70
|
code: Код
|
@@ -93,34 +91,6 @@ ru:
|
|
93
91
|
must_be_ssl: URI перенаправления должен быть SSL URI
|
94
92
|
activerecord:
|
95
93
|
attributes:
|
96
|
-
decidim/participatory_process:
|
97
|
-
banner_image: Изображение баннера
|
98
|
-
description: Описание
|
99
|
-
developer_group: Рабочая группа по продвижению
|
100
|
-
domain: Домен
|
101
|
-
end_date: Дата окончания
|
102
|
-
hashtag: Хэштег
|
103
|
-
hero_image: Изображение главной страницы
|
104
|
-
local_area: Местный участок
|
105
|
-
meta_scope: Метаданные охвата
|
106
|
-
participatory_scope: Охват соучастия
|
107
|
-
participatory_structure: Структура соучастия
|
108
|
-
promoted: Рекламируется
|
109
|
-
scope: Охват
|
110
|
-
short_description: Краткое описание
|
111
|
-
slug: Сокращенный веб-адрес
|
112
|
-
start_date: Дата начала
|
113
|
-
subtitle: Подзаголовок
|
114
|
-
target: Цель
|
115
|
-
title: Название
|
116
|
-
decidim/participatory_process_group:
|
117
|
-
description: Описание
|
118
|
-
hero_image: Изображение главной страницы
|
119
|
-
name: Имя
|
120
|
-
participatory_processes: Движения соучастия
|
121
|
-
decidim/participatory_process_step:
|
122
|
-
end_date: Дата окончания
|
123
|
-
start_date: Дата начала
|
124
94
|
decidim/static_page:
|
125
95
|
content: Содержание
|
126
96
|
slug: Сокращенный веб-адрес
|
@@ -218,23 +188,23 @@ ru:
|
|
218
188
|
search_prompt: Введите не менее трех символов для поиска
|
219
189
|
categories:
|
220
190
|
create:
|
221
|
-
error: При попытке создать
|
222
|
-
success:
|
191
|
+
error: При попытке создать эту категорию произошла ошибка.
|
192
|
+
success: Категория успешно создана.
|
223
193
|
destroy:
|
224
|
-
error: Не удалось удалить
|
225
|
-
success:
|
194
|
+
error: Не удалось удалить эту категорию. Сначала удалите все подкатегории, затем убедитесь, что ничто не относится к этой категории, и повторите попытку.
|
195
|
+
success: Категория успешно удалена.
|
226
196
|
edit:
|
227
|
-
title: Редактировать
|
197
|
+
title: Редактировать категорию
|
228
198
|
update: Обновить
|
229
199
|
index:
|
230
|
-
categories_title:
|
231
|
-
category_used:
|
200
|
+
categories_title: Категории
|
201
|
+
category_used: Эту категорию нельзя удалить, поскольку она используется.
|
232
202
|
new:
|
233
|
-
create: Создать
|
234
|
-
title: Добавить
|
203
|
+
create: Создать категорию
|
204
|
+
title: Добавить категорию
|
235
205
|
update:
|
236
|
-
error: При попытке обновить
|
237
|
-
success:
|
206
|
+
error: При попытке обновить эту категорию произошла ошибка.
|
207
|
+
success: Категория успешно обновлена.
|
238
208
|
component_permissions:
|
239
209
|
edit:
|
240
210
|
everyone: Все
|
@@ -333,6 +303,7 @@ ru:
|
|
333
303
|
areas: Участки
|
334
304
|
configuration: Конфигурация
|
335
305
|
dashboard: Панель управления
|
306
|
+
homepage: Домашняя страница
|
336
307
|
impersonations: Выступления в роли участника
|
337
308
|
newsletters: Рассылки новостей
|
338
309
|
oauth_applications: Приложения OAuth
|
@@ -362,7 +333,7 @@ ru:
|
|
362
333
|
attachment_collection:
|
363
334
|
name: Папка
|
364
335
|
category:
|
365
|
-
name:
|
336
|
+
name: Категория
|
366
337
|
impersonation_log:
|
367
338
|
fields:
|
368
339
|
admin: Администратор
|
@@ -407,7 +378,7 @@ ru:
|
|
407
378
|
roles:
|
408
379
|
admin: Администратор
|
409
380
|
user_manager: Распорядитель участников
|
410
|
-
name:
|
381
|
+
name: участника
|
411
382
|
user_group:
|
412
383
|
fields:
|
413
384
|
actions: Действия
|
@@ -526,6 +497,10 @@ ru:
|
|
526
497
|
homepage_highlighted_content_banner_title: Баннер рекомендуемого содержимого
|
527
498
|
layout_appearance_title: Редактировать внешний вид макета
|
528
499
|
omnipresent_banner_appearance_title: Редактировать вездесущий баннер
|
500
|
+
organization_homepage:
|
501
|
+
edit:
|
502
|
+
active_content_blocks: Блоки действующего содержимого
|
503
|
+
inactive_content_blocks: Блоки недействующего содержимого
|
529
504
|
participatory_space_private_users:
|
530
505
|
create:
|
531
506
|
error: При попытке добавить частного участника в это пространство соучастия произошла ошибка.
|
data/config/locales/sv.yml
CHANGED
@@ -20,43 +20,42 @@ sv:
|
|
20
20
|
category:
|
21
21
|
description: Beskrivning
|
22
22
|
name: Namn
|
23
|
-
parent_id:
|
23
|
+
parent_id: Överordnad
|
24
24
|
component:
|
25
25
|
name: Namn
|
26
|
-
published_at: Publicerad
|
26
|
+
published_at: Publicerad vid
|
27
27
|
weight: Vikt
|
28
28
|
id: ID
|
29
29
|
newsletter:
|
30
30
|
body: Innehåll
|
31
31
|
subject: Ämne
|
32
32
|
oauth_application:
|
33
|
-
name:
|
33
|
+
name: Namn
|
34
34
|
organization_logo: Organisationslogotypen (kvadrat)
|
35
|
-
organization_name:
|
36
|
-
organization_url:
|
37
|
-
redirect_uri:
|
35
|
+
organization_name: Organisationsnamn
|
36
|
+
organization_url: Organisationens hemsida
|
37
|
+
redirect_uri: Omdirigerings-URI
|
38
38
|
organization:
|
39
|
-
cta_button_path:
|
40
|
-
cta_button_text:
|
41
|
-
default_locale:
|
39
|
+
cta_button_path: Knappsökväg till Uppmaning till Handing
|
40
|
+
cta_button_text: Knapptext för Uppmaning till Handling
|
41
|
+
default_locale: Standardspråk
|
42
42
|
description: Beskrivning
|
43
|
-
enable_omnipresent_banner: Visa
|
43
|
+
enable_omnipresent_banner: Visa allestädes närvarande banner
|
44
44
|
facebook_handler: Facebook-hanterare
|
45
45
|
favicon: Ikon
|
46
46
|
github_handler: GitHub-hanterare
|
47
|
-
header_snippets:
|
48
|
-
highlighted_content_banner_action_subtitle: Åtgärdsknapp
|
49
|
-
highlighted_content_banner_action_title:
|
50
|
-
highlighted_content_banner_action_url:
|
51
|
-
highlighted_content_banner_enabled: Visa den markerade
|
47
|
+
header_snippets: Rubriksnuttar
|
48
|
+
highlighted_content_banner_action_subtitle: Undertitel för Åtgärdsknapp
|
49
|
+
highlighted_content_banner_action_title: Titel för Åtgärdsknapp
|
50
|
+
highlighted_content_banner_action_url: URL för åtgärdsknapp
|
51
|
+
highlighted_content_banner_enabled: Visa den markerade innehållsbannern
|
52
52
|
highlighted_content_banner_image: Bild
|
53
53
|
highlighted_content_banner_short_description: Kort beskrivning
|
54
54
|
highlighted_content_banner_title: Titel
|
55
|
-
homepage_image: Hemsida bild
|
56
55
|
instagram_handler: Instagram-hanterare
|
57
56
|
logo: Logo
|
58
57
|
name: Namn
|
59
|
-
official_img_footer: Officiell logo
|
58
|
+
official_img_footer: Officiell logo sidfot
|
60
59
|
official_img_header: Officiell logotyphuvud
|
61
60
|
official_url: Officiell URL
|
62
61
|
omnipresent_banner_short_description: Kort beskrivning
|
@@ -64,15 +63,14 @@ sv:
|
|
64
63
|
omnipresent_banner_url: URL
|
65
64
|
reference_prefix: Referensprefix
|
66
65
|
show_statistics: Visa statistik
|
67
|
-
tos_version:
|
66
|
+
tos_version: Version på användarvillkor
|
68
67
|
twitter_handler: Twitter-hanterare
|
69
|
-
welcome_text: Välkomsttext
|
70
68
|
youtube_handler: YouTube-hanterare
|
71
69
|
scope:
|
72
70
|
code: Kod
|
73
71
|
name: Namn
|
74
72
|
organization: Organisation
|
75
|
-
parent_id:
|
73
|
+
parent_id: Överordnad
|
76
74
|
scope_type: Omfattningstyp
|
77
75
|
scope_type_id: Omfattningstyp
|
78
76
|
scope_type:
|
@@ -93,34 +91,6 @@ sv:
|
|
93
91
|
must_be_ssl: Omdirigerings-URI måste vara en SSL URI
|
94
92
|
activerecord:
|
95
93
|
attributes:
|
96
|
-
decidim/participatory_process:
|
97
|
-
banner_image: Bannerbild
|
98
|
-
description: Beskrivning
|
99
|
-
developer_group: Promotorgrupp
|
100
|
-
domain: Domän
|
101
|
-
end_date: Slutdatum
|
102
|
-
hashtag: Hashtag
|
103
|
-
hero_image: Hembild
|
104
|
-
local_area: Lokalt område
|
105
|
-
meta_scope: Omfattning metadata
|
106
|
-
participatory_scope: Deltagande räckvidd
|
107
|
-
participatory_structure: Deltagande struktur
|
108
|
-
promoted: främjas
|
109
|
-
scope: Omfattning
|
110
|
-
short_description: Kort beskrivning
|
111
|
-
slug: URL slug
|
112
|
-
start_date: Startdatum
|
113
|
-
subtitle: Underrubrik
|
114
|
-
target: Mål
|
115
|
-
title: Titel
|
116
|
-
decidim/participatory_process_group:
|
117
|
-
description: Beskrivning
|
118
|
-
hero_image: Hembild
|
119
|
-
name: Namn
|
120
|
-
participatory_processes: Deltagande processer
|
121
|
-
decidim/participatory_process_step:
|
122
|
-
end_date: Slutdatum
|
123
|
-
start_date: Startdatum
|
124
94
|
decidim/static_page:
|
125
95
|
content: Innehåll
|
126
96
|
slug: URL slug
|
@@ -161,7 +131,7 @@ sv:
|
|
161
131
|
title: Ny typ av område
|
162
132
|
update:
|
163
133
|
error: Det uppstod ett fel vid uppdatering av denna typ av område.
|
164
|
-
success:
|
134
|
+
success: Områdestypen uppdaterades framgångsrikt
|
165
135
|
areas:
|
166
136
|
create:
|
167
137
|
error: Det uppstod ett fel vid skapandet av ett nytt område.
|
@@ -195,13 +165,13 @@ sv:
|
|
195
165
|
title: Ny mapp
|
196
166
|
update:
|
197
167
|
error: Det uppstod ett fel vid uppdateringen av den här mappen.
|
198
|
-
success: Mapp uppdaterad
|
168
|
+
success: Mapp uppdaterad.
|
199
169
|
attachments:
|
200
170
|
create:
|
201
171
|
error: Det uppstod ett fel vid att skapa en ny bilaga.
|
202
|
-
success: Bilagan skapades
|
172
|
+
success: Bilagan skapades.
|
203
173
|
destroy:
|
204
|
-
success: Bilagan förstördes
|
174
|
+
success: Bilagan förstördes.
|
205
175
|
edit:
|
206
176
|
title: Redigera bifogade fil
|
207
177
|
update: Uppdatera
|
@@ -212,14 +182,14 @@ sv:
|
|
212
182
|
title: Ny bifogad fil
|
213
183
|
update:
|
214
184
|
error: Det uppstod ett fel vid uppdateringen av den här bilagan.
|
215
|
-
success: Bilagan uppdaterades
|
185
|
+
success: Bilagan uppdaterades.
|
216
186
|
autocomplete:
|
217
|
-
no_results: Inga resultat
|
187
|
+
no_results: Inga resultat
|
218
188
|
search_prompt: Skriv minst tre tecken att söka
|
219
189
|
categories:
|
220
190
|
create:
|
221
191
|
error: Det uppstod ett fel vid skapandet av den här kategorin.
|
222
|
-
success: Kategori skapad
|
192
|
+
success: Kategori skapad.
|
223
193
|
destroy:
|
224
194
|
error: Det gick inte att ta bort den här kategorin. Ta bort någon underkategori först, se till att ingen annan enhet tillhör denna kategori och försök igen.
|
225
195
|
success: Kategori raderas framgångsrikt.
|
@@ -287,11 +257,11 @@ sv:
|
|
287
257
|
managed: Managed
|
288
258
|
not_managed: Inte hanterad
|
289
259
|
filter_by: Filtrera efter
|
290
|
-
impersonate:
|
260
|
+
impersonate: Uppträd som
|
291
261
|
impersonate_new_managed_user: Impersonera ny hanterad användare
|
292
262
|
managed: Managed
|
293
263
|
name: namn
|
294
|
-
needs_authorization_warning: Du behöver minst en
|
264
|
+
needs_authorization_warning: Du behöver minst en auktorisering aktiverad för den här organisationen.
|
295
265
|
not_managed: Inte hanterad
|
296
266
|
promote: Främja
|
297
267
|
search: Sök
|
@@ -299,8 +269,8 @@ sv:
|
|
299
269
|
view_logs: Visa loggar
|
300
270
|
impersonations:
|
301
271
|
close_session:
|
302
|
-
error: Det har uppstått ett fel
|
303
|
-
success: Den nuvarande ombildningsperioden har avslutats.
|
272
|
+
error: Det har uppstått ett fel vid stängningen av den aktuella uppträdande sessionen.
|
273
|
+
success: Den nuvarande ombildningsperioden har framgångsrikt avslutats.
|
304
274
|
create:
|
305
275
|
error: Det har inträffat ett fel för att ersätta användaren.
|
306
276
|
success: Den hanterade användaren har skapats.
|
@@ -309,7 +279,7 @@ sv:
|
|
309
279
|
name: namn
|
310
280
|
reason: Anledning
|
311
281
|
new:
|
312
|
-
impersonate:
|
282
|
+
impersonate: Uppträd som
|
313
283
|
impersonate_existing_managed_user: Impersonera hanterad användare "%{name}"
|
314
284
|
impersonate_existing_user: Impersonera användaren "%{name}"
|
315
285
|
impersonate_new_managed_user: Impersonera ny hanterad användare
|
@@ -333,6 +303,7 @@ sv:
|
|
333
303
|
areas: Områden
|
334
304
|
configuration: Konfiguration
|
335
305
|
dashboard: Kontrollpanel
|
306
|
+
homepage: Hemsida
|
336
307
|
impersonations: impersonations
|
337
308
|
newsletters: Nyhetsbrev
|
338
309
|
oauth_applications: OAuth applikationer
|
@@ -526,6 +497,13 @@ sv:
|
|
526
497
|
homepage_highlighted_content_banner_title: Högupplysad innehållsbanner
|
527
498
|
layout_appearance_title: Ändra layoututseende
|
528
499
|
omnipresent_banner_appearance_title: Ändra allmänt förekommande banner
|
500
|
+
organization_homepage:
|
501
|
+
edit:
|
502
|
+
active_content_blocks: Aktiva innehållsblock
|
503
|
+
inactive_content_blocks: Inaktiva innehållsblock
|
504
|
+
organization_homepage_content_blocks:
|
505
|
+
edit:
|
506
|
+
update: Uppdatering
|
529
507
|
participatory_space_private_users:
|
530
508
|
create:
|
531
509
|
error: Det gick inte att lägga till en privat användare för detta deltagande utrymme.
|
data/config/locales/uk.yml
CHANGED
@@ -52,7 +52,6 @@ uk:
|
|
52
52
|
highlighted_content_banner_image: Зображення
|
53
53
|
highlighted_content_banner_short_description: Стислий опис
|
54
54
|
highlighted_content_banner_title: Назва
|
55
|
-
homepage_image: Зображення головної сторінки
|
56
55
|
instagram_handler: Адреса Instagram
|
57
56
|
logo: Логотип
|
58
57
|
name: Назва
|
@@ -66,7 +65,6 @@ uk:
|
|
66
65
|
show_statistics: Показувати статистику
|
67
66
|
tos_version: Версія умов участі
|
68
67
|
twitter_handler: Адреса Twitter
|
69
|
-
welcome_text: Текст привітання
|
70
68
|
youtube_handler: Адреса YouTube
|
71
69
|
scope:
|
72
70
|
code: Код
|
@@ -93,34 +91,6 @@ uk:
|
|
93
91
|
must_be_ssl: URI перенаправлення має бути SSL URI
|
94
92
|
activerecord:
|
95
93
|
attributes:
|
96
|
-
decidim/participatory_process:
|
97
|
-
banner_image: Банерне зображення
|
98
|
-
description: Опис
|
99
|
-
developer_group: Робочий гурт з просування
|
100
|
-
domain: Домен
|
101
|
-
end_date: Дата закінчення
|
102
|
-
hashtag: Хештег
|
103
|
-
hero_image: Зображення головної сторінки
|
104
|
-
local_area: Місцева дільниця
|
105
|
-
meta_scope: Метавідомості обсягу
|
106
|
-
participatory_scope: Обсяг співучасті
|
107
|
-
participatory_structure: Структура співучасті
|
108
|
-
promoted: Рекламується
|
109
|
-
scope: Обсяг
|
110
|
-
short_description: Стислий опис
|
111
|
-
slug: Скорочена веб-адреса
|
112
|
-
start_date: Дата початку
|
113
|
-
subtitle: Підзаголовок
|
114
|
-
target: Мета
|
115
|
-
title: Назва
|
116
|
-
decidim/participatory_process_group:
|
117
|
-
description: Опис
|
118
|
-
hero_image: Зображення головної сторінки
|
119
|
-
name: Назва
|
120
|
-
participatory_processes: Рухи співучасті
|
121
|
-
decidim/participatory_process_step:
|
122
|
-
end_date: Дата закінчення
|
123
|
-
start_date: Дата початку
|
124
94
|
decidim/static_page:
|
125
95
|
content: Вміст
|
126
96
|
slug: Скорочена веб-адреса
|
@@ -218,23 +188,23 @@ uk:
|
|
218
188
|
search_prompt: Введіть принаймні три символи для пошуку
|
219
189
|
categories:
|
220
190
|
create:
|
221
|
-
error: При спробі створити
|
222
|
-
success:
|
191
|
+
error: При спробі створити цю категорію сталася помилка.
|
192
|
+
success: Категорію успішно створено.
|
223
193
|
destroy:
|
224
|
-
error: При спробі видалити
|
225
|
-
success:
|
194
|
+
error: При спробі видалити цю категорію сталася помилка. Спочатку видаліть всі підкатегорії, а потім переконайтеся, що ніщо не належить до цієї категорії, і повторіть спробу.
|
195
|
+
success: Категорію успішно видалено.
|
226
196
|
edit:
|
227
|
-
title: Редагувати
|
197
|
+
title: Редагувати категорію
|
228
198
|
update: Оновити
|
229
199
|
index:
|
230
|
-
categories_title:
|
231
|
-
category_used:
|
200
|
+
categories_title: Категорії
|
201
|
+
category_used: Цю категорію не можна видалити, оскільки вона використовується.
|
232
202
|
new:
|
233
|
-
create:
|
234
|
-
title: Додати
|
203
|
+
create: Створити категорію
|
204
|
+
title: Додати категорію
|
235
205
|
update:
|
236
|
-
error: При спробі оновити
|
237
|
-
success:
|
206
|
+
error: При спробі оновити цю категорію сталася помилка.
|
207
|
+
success: Категорію успішно оновлено.
|
238
208
|
component_permissions:
|
239
209
|
edit:
|
240
210
|
everyone: Будь-хто
|
@@ -333,6 +303,7 @@ uk:
|
|
333
303
|
areas: Дільниці
|
334
304
|
configuration: Конфігурація
|
335
305
|
dashboard: Приладна дошка
|
306
|
+
homepage: Домашня сторінка
|
336
307
|
impersonations: Виступи в ролі учасника
|
337
308
|
newsletters: Розсилання новин
|
338
309
|
oauth_applications: Додатки OAuth
|
@@ -360,9 +331,9 @@ uk:
|
|
360
331
|
title: Назва
|
361
332
|
name: Вкладений файл
|
362
333
|
attachment_collection:
|
363
|
-
name:
|
334
|
+
name: теку
|
364
335
|
category:
|
365
|
-
name:
|
336
|
+
name: Категорія
|
366
337
|
impersonation_log:
|
367
338
|
fields:
|
368
339
|
admin: Адміністратор
|
@@ -407,7 +378,7 @@ uk:
|
|
407
378
|
roles:
|
408
379
|
admin: Адміністратор
|
409
380
|
user_manager: Розпорядник учасників
|
410
|
-
name:
|
381
|
+
name: учасника
|
411
382
|
user_group:
|
412
383
|
fields:
|
413
384
|
actions: Дії
|
@@ -526,6 +497,10 @@ uk:
|
|
526
497
|
homepage_highlighted_content_banner_title: Банер висвітленого вмісту
|
527
498
|
layout_appearance_title: Редагувати зовнішній вигляд шаблону
|
528
499
|
omnipresent_banner_appearance_title: Редагувати всюдисущий банер
|
500
|
+
organization_homepage:
|
501
|
+
edit:
|
502
|
+
active_content_blocks: Блоки діючого вмісту
|
503
|
+
inactive_content_blocks: Блоки недіючого вмісту
|
529
504
|
participatory_space_private_users:
|
530
505
|
create:
|
531
506
|
error: При спробі додати приватного учасника до цього простору співучасті сталася помилка.
|
data/config/routes.rb
CHANGED
@@ -4,6 +4,9 @@ Decidim::Admin::Engine.routes.draw do
|
|
4
4
|
constraints(->(request) { Decidim::Admin::OrganizationDashboardConstraint.new(request).matches? }) do
|
5
5
|
resource :organization, only: [:edit, :update], controller: "organization" do
|
6
6
|
resource :appearance, only: [:edit, :update], controller: "organization_appearance"
|
7
|
+
resource :homepage, only: [:edit, :update], controller: "organization_homepage" do
|
8
|
+
resources :content_blocks, only: [:edit, :update], controller: "organization_homepage_content_blocks"
|
9
|
+
end
|
7
10
|
|
8
11
|
member do
|
9
12
|
get :users
|
data/lib/decidim/admin/engine.rb
CHANGED
@@ -14,6 +14,7 @@ require "autoprefixer-rails"
|
|
14
14
|
require "rectify"
|
15
15
|
require "doorkeeper"
|
16
16
|
require "doorkeeper-i18n"
|
17
|
+
require "hashdiff"
|
17
18
|
|
18
19
|
module Decidim
|
19
20
|
module Admin
|
@@ -68,6 +69,8 @@ module Decidim
|
|
68
69
|
%w(
|
69
70
|
decidim/admin/organization
|
70
71
|
decidim/admin/organization_appearance
|
72
|
+
decidim/admin/organization_homepage
|
73
|
+
decidim/admin/organization_homepage_content_blocks
|
71
74
|
decidim/admin/scopes
|
72
75
|
decidim/admin/scope_types
|
73
76
|
decidim/admin/areas decidim/admin/area_types
|
@@ -91,6 +94,11 @@ module Decidim
|
|
91
94
|
if: allowed_to?(:read, :oauth_application)
|
92
95
|
end
|
93
96
|
end
|
97
|
+
|
98
|
+
initializer "decidim_admin.add_cells_view_paths" do
|
99
|
+
Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Admin::Engine.root}/app/cells")
|
100
|
+
Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Admin::Engine.root}/app/views") # for partials
|
101
|
+
end
|
94
102
|
end
|
95
103
|
end
|
96
104
|
end
|
@@ -16,6 +16,7 @@ module Decidim
|
|
16
16
|
# - :label (boolean|string) (optional) You can disable the creation of the input label passing false,
|
17
17
|
# or override the default label passing a string (default: name of the input)
|
18
18
|
# - :name (string) You can provide a custom name for the field to be submitted
|
19
|
+
# - :class (string) You can provide custom class name for the container (ex. autocomplete-field--results-inline)
|
19
20
|
# @param [Hash] prompt_options
|
20
21
|
# Prompt configuration. A hash with options:
|
21
22
|
# - :url (String) The url where the ajax endpoint to fill the select
|
@@ -43,7 +44,7 @@ module Decidim
|
|
43
44
|
|
44
45
|
template = ""
|
45
46
|
template += label(attribute, (options[:label] || label_for(attribute)) + required_for_attribute(attribute)) unless options[:label] == false
|
46
|
-
template += content_tag(:div, nil, data: {
|
47
|
+
template += content_tag(:div, nil, class: options[:class], data: {
|
47
48
|
autocomplete: {
|
48
49
|
name: options[:name] || "#{@object_name}[#{attribute}]",
|
49
50
|
options: [selected].compact,
|
@@ -55,7 +55,7 @@ shared_examples "manage attachment collections examples" do
|
|
55
55
|
|
56
56
|
it "can update an attachment collection" do
|
57
57
|
within "#attachment_collections" do
|
58
|
-
within find("tr", text:
|
58
|
+
within find("tr", text: translated(attachment_collection.name)) do
|
59
59
|
click_link "Edit"
|
60
60
|
end
|
61
61
|
end
|
@@ -95,7 +95,7 @@ shared_examples "manage attachments examples" do
|
|
95
95
|
|
96
96
|
it "can remove an attachment from a collection" do
|
97
97
|
within "#attachments" do
|
98
|
-
within find("tr", text:
|
98
|
+
within find("tr", text: translated(attachment.title)) do
|
99
99
|
expect(page).to have_text(translated(attachment_collection.name, locale: :en))
|
100
100
|
click_link "Edit"
|
101
101
|
end
|
@@ -108,14 +108,14 @@ shared_examples "manage attachments examples" do
|
|
108
108
|
end
|
109
109
|
|
110
110
|
within "#attachments" do
|
111
|
-
within find("tr", text:
|
111
|
+
within find("tr", text: translated(attachment.title)) do
|
112
112
|
expect(page).to have_no_text(translated(attachment_collection.name, locale: :en))
|
113
113
|
end
|
114
114
|
end
|
115
115
|
end
|
116
116
|
|
117
117
|
it "can delete an attachment from a process" do
|
118
|
-
within find("tr", text:
|
118
|
+
within find("tr", text: translated(attachment.title)) do
|
119
119
|
accept_confirm { click_link "Delete" }
|
120
120
|
end
|
121
121
|
|
@@ -126,7 +126,7 @@ shared_examples "manage attachments examples" do
|
|
126
126
|
|
127
127
|
it "can update an attachment" do
|
128
128
|
within "#attachments" do
|
129
|
-
within find("tr", text:
|
129
|
+
within find("tr", text: translated(attachment.title)) do
|
130
130
|
click_link "Edit"
|
131
131
|
end
|
132
132
|
end
|