decidim-admin 0.3.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim-admin might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/decidim/admin/extra/_label-required.scss +3 -0
- data/app/assets/stylesheets/decidim/admin/extra/_title_bar.scss +57 -1
- data/app/commands/decidim/admin/create_participatory_process_admin.rb +28 -7
- data/app/commands/decidim/admin/create_participatory_process_step.rb +2 -1
- data/app/commands/decidim/admin/destroy_participatory_process_step.rb +5 -2
- data/app/commands/decidim/admin/update_feature.rb +1 -0
- data/app/commands/decidim/admin/update_organization.rb +10 -5
- data/app/commands/decidim/admin/update_participatory_process.rb +4 -2
- data/app/controllers/decidim/admin/application_controller.rb +2 -0
- data/app/controllers/decidim/admin/concerns/has_attachments.rb +10 -1
- data/app/controllers/decidim/admin/concerns/participatory_process_admin.rb +0 -5
- data/app/controllers/decidim/admin/features/base_controller.rb +0 -1
- data/app/controllers/decidim/admin/moderations_controller.rb +7 -4
- data/app/controllers/decidim/admin/organization_controller.rb +9 -3
- data/app/controllers/decidim/admin/participatory_process_user_roles_controller.rb +17 -0
- data/app/controllers/decidim/admin/participatory_processes_controller.rb +11 -3
- data/app/forms/decidim/admin/feature_form.rb +6 -0
- data/app/forms/decidim/admin/organization_form.rb +5 -0
- data/app/forms/decidim/admin/participatory_process_copy_form.rb +2 -3
- data/app/forms/decidim/admin/participatory_process_form.rb +2 -0
- data/app/forms/decidim/admin/static_page_form.rb +6 -0
- data/app/helpers/decidim/admin/menu_helper.rb +1 -1
- data/app/jobs/decidim/admin/newsletter_job.rb +9 -5
- data/app/views/decidim/admin/attachments/_form.html.erb +1 -12
- data/app/views/decidim/admin/features/_feature.html.erb +2 -2
- data/app/views/decidim/admin/features/_form.html.erb +18 -0
- data/app/views/decidim/admin/moderations/_report.html.erb +2 -2
- data/app/views/decidim/admin/organization/_form.html.erb +5 -35
- data/app/views/decidim/admin/participatory_process_groups/_form.html.erb +1 -1
- data/app/views/decidim/admin/participatory_process_user_roles/index.html.erb +16 -0
- data/app/views/decidim/admin/participatory_processes/_form.html.erb +2 -14
- data/app/views/layouts/decidim/admin/_title_bar.html.erb +26 -19
- data/app/views/layouts/decidim/admin/participatory_process.html.erb +2 -2
- data/config/i18n-tasks.yml +2 -0
- data/config/locales/ca.yml +9 -5
- data/config/locales/en.yml +9 -5
- data/config/locales/es.yml +11 -5
- data/config/locales/eu.yml +0 -5
- data/config/locales/fr.yml +18 -23
- data/config/locales/it.yml +0 -5
- data/config/routes.rb +5 -3
- data/lib/decidim/admin/test/manage_attachments_examples.rb +1 -2
- metadata +7 -7
- data/app/assets/stylesheets/decidim/admin/extra/_language-chooser.scss +0 -4
data/config/locales/es.yml
CHANGED
@@ -32,6 +32,9 @@ es:
|
|
32
32
|
welcome_text: Texto de bienvenida
|
33
33
|
participatory_process:
|
34
34
|
banner_image: Imagen de bandera
|
35
|
+
copy_categories: Copiar categorías
|
36
|
+
copy_features: Copiar funcionalidades
|
37
|
+
copy_steps: Copiar las fases
|
35
38
|
description: Descripción
|
36
39
|
developer_group: Grupo promotor
|
37
40
|
domain: Dominio
|
@@ -136,9 +139,6 @@ es:
|
|
136
139
|
edit:
|
137
140
|
title: Editar archivo adjunto
|
138
141
|
update: Actualizar
|
139
|
-
form:
|
140
|
-
current_file: Archivo actual
|
141
|
-
url: URL
|
142
142
|
new:
|
143
143
|
create: Crear archivo adjunto
|
144
144
|
title: Nuevo archivo adjunto
|
@@ -201,6 +201,7 @@ es:
|
|
201
201
|
title: Editar funcionalidad
|
202
202
|
update: Actualizar
|
203
203
|
form:
|
204
|
+
default_step_settings: Configuración por defecto
|
204
205
|
global_settings: Ajustes globales
|
205
206
|
step_settings: Configuración de fase
|
206
207
|
index:
|
@@ -309,6 +310,11 @@ es:
|
|
309
310
|
moderations:
|
310
311
|
index:
|
311
312
|
title: Moderaciones
|
313
|
+
report:
|
314
|
+
reasons:
|
315
|
+
does_not_belong: No pertenece
|
316
|
+
offensive: Ofensiva
|
317
|
+
spam: Contenido no deseado
|
312
318
|
newsletters:
|
313
319
|
create:
|
314
320
|
error: Se ha producido un error al crear este boletín.
|
@@ -427,9 +433,7 @@ es:
|
|
427
433
|
edit:
|
428
434
|
update: Actualizar
|
429
435
|
form:
|
430
|
-
current_image: Imagen actual
|
431
436
|
title: Información general
|
432
|
-
url: URL
|
433
437
|
index:
|
434
438
|
not_published: No publicado
|
435
439
|
published: Publicado
|
@@ -549,6 +553,8 @@ es:
|
|
549
553
|
participatory_processes:
|
550
554
|
participatory_process_groups:
|
551
555
|
none: Ninguno
|
556
|
+
forms:
|
557
|
+
required: Obligatorio
|
552
558
|
layouts:
|
553
559
|
decidim:
|
554
560
|
admin:
|
data/config/locales/eu.yml
CHANGED
@@ -135,9 +135,6 @@ eu:
|
|
135
135
|
edit:
|
136
136
|
title: Editatu fitxategi erantsia
|
137
137
|
update: Eguneratu
|
138
|
-
form:
|
139
|
-
current_file: Oraingo fitxategia
|
140
|
-
url: url
|
141
138
|
new:
|
142
139
|
create: Sortu fitxategi erantsia
|
143
140
|
title: Fitxategi erantsi berria
|
@@ -422,9 +419,7 @@ eu:
|
|
422
419
|
edit:
|
423
420
|
update: Eguneratu
|
424
421
|
form:
|
425
|
-
current_image: Oraingo irudia
|
426
422
|
title: Informazio orokorra
|
427
|
-
url: Url
|
428
423
|
index:
|
429
424
|
not_published: Argitaratu gabe
|
430
425
|
published: Argitaratua
|
data/config/locales/fr.yml
CHANGED
@@ -44,11 +44,11 @@ fr:
|
|
44
44
|
participatory_scope: Objectif du processus participatif
|
45
45
|
participatory_structure: Organisations concernées
|
46
46
|
promoted: Mis en avant
|
47
|
-
scope_id:
|
47
|
+
scope_id: Zone d’application
|
48
48
|
short_description: Résumé
|
49
49
|
slug: Identifiant
|
50
50
|
subtitle: Sous-titre
|
51
|
-
target:
|
51
|
+
target: Public visé
|
52
52
|
title: Titre
|
53
53
|
participatory_process_group:
|
54
54
|
description: Description
|
@@ -87,15 +87,15 @@ fr:
|
|
87
87
|
hashtag: Hashtag
|
88
88
|
hero_image: Image de la page d'accueil
|
89
89
|
local_area: Quartier
|
90
|
-
meta_scope: Metadonnée
|
90
|
+
meta_scope: Metadonnée de la zone d’application
|
91
91
|
participatory_scope: Objectif du processus participatif
|
92
92
|
participatory_structure: Organisations concernées
|
93
93
|
promoted: Mis en avant
|
94
|
-
scope:
|
94
|
+
scope: Zone d’application
|
95
95
|
short_description: Résumé
|
96
96
|
slug: Identifiant
|
97
97
|
subtitle: Sous-titre
|
98
|
-
target:
|
98
|
+
target: Public visé
|
99
99
|
title: Titre
|
100
100
|
decidim/participatory_process_step:
|
101
101
|
end_date: Date de fin
|
@@ -133,9 +133,6 @@ fr:
|
|
133
133
|
edit:
|
134
134
|
title: Modifier le document lié
|
135
135
|
update: Mettre à jour
|
136
|
-
form:
|
137
|
-
current_file: Fichier actuel
|
138
|
-
url: Url
|
139
136
|
new:
|
140
137
|
create: Lier un document
|
141
138
|
title: Nouveau document lié
|
@@ -191,7 +188,7 @@ fr:
|
|
191
188
|
success: Fonctionnalité supprimée avec succès.
|
192
189
|
edit:
|
193
190
|
title: Editer la fonctionnalité
|
194
|
-
update:
|
191
|
+
update: Mettre à jour
|
195
192
|
form:
|
196
193
|
global_settings: Paramètres généraux
|
197
194
|
step_settings: Définition des étapes
|
@@ -226,7 +223,7 @@ fr:
|
|
226
223
|
moderations: Modérations
|
227
224
|
process_admins: Administrateurs du processus participatifs
|
228
225
|
steps: Etapes
|
229
|
-
scopes:
|
226
|
+
scopes: Zones d’application
|
230
227
|
settings: Paramètres
|
231
228
|
static_pages: Pages
|
232
229
|
user_groups: Groupes d'utilisateurs
|
@@ -412,9 +409,7 @@ fr:
|
|
412
409
|
edit:
|
413
410
|
update: Mettre à jour
|
414
411
|
form:
|
415
|
-
current_image: Image actuelle
|
416
412
|
title: Informations générales
|
417
|
-
url: Url
|
418
413
|
index:
|
419
414
|
not_published: Non publié
|
420
415
|
published: Publié
|
@@ -430,19 +425,19 @@ fr:
|
|
430
425
|
success: Groupe de processus participatif créé avec succès.
|
431
426
|
scopes:
|
432
427
|
create:
|
433
|
-
error: Une erreur s'est produite lors de la création d'une
|
434
|
-
success:
|
428
|
+
error: Une erreur s'est produite lors de la création d'une nouvelle zone d’application.
|
429
|
+
success: Zone d'application créée avec succès.
|
435
430
|
destroy:
|
436
|
-
success:
|
431
|
+
success: Zone d'application supprimée avec succès
|
437
432
|
edit:
|
438
|
-
title: Editer
|
433
|
+
title: Editer la zone d'application
|
439
434
|
update: Mettre à jour
|
440
435
|
new:
|
441
|
-
create: Créer
|
442
|
-
title:
|
436
|
+
create: Créer une zone d'application
|
437
|
+
title: Nouvelle zone d'application
|
443
438
|
update:
|
444
|
-
error: Une erreur s'est produite lors de la mise à jour de
|
445
|
-
success:
|
439
|
+
error: Une erreur s'est produite lors de la mise à jour de cette zone d'application.
|
440
|
+
success: Zone d'applicaiton mise à jour avec succès
|
446
441
|
static_pages:
|
447
442
|
actions:
|
448
443
|
view: Voir la page publique
|
@@ -464,7 +459,7 @@ fr:
|
|
464
459
|
dashboard: Tableau de bord
|
465
460
|
participatory_process_groups: Groupes de processus participatifs
|
466
461
|
participatory_processes: Processus participatifs
|
467
|
-
scopes:
|
462
|
+
scopes: Zones d'application
|
468
463
|
static_pages: Pages
|
469
464
|
user_groups: Groupes d'utilisateurs
|
470
465
|
users: Utilisateurs
|
@@ -486,9 +481,9 @@ fr:
|
|
486
481
|
success: Email d'invitation envoyé avec succès.
|
487
482
|
moderations:
|
488
483
|
actions:
|
489
|
-
hidden:
|
484
|
+
hidden: Masqués
|
490
485
|
hide: Masquer
|
491
|
-
not_hidden: Non
|
486
|
+
not_hidden: Non masqués
|
492
487
|
title: Actions
|
493
488
|
unreport: Annuler le signalement
|
494
489
|
admin:
|
data/config/locales/it.yml
CHANGED
@@ -111,9 +111,6 @@ it:
|
|
111
111
|
edit:
|
112
112
|
title: Modifica allegato
|
113
113
|
update: Aggiorna
|
114
|
-
form:
|
115
|
-
current_file: File corrente
|
116
|
-
url: URL
|
117
114
|
new:
|
118
115
|
create: Crea allegato
|
119
116
|
title: Nuovo allegato
|
@@ -381,9 +378,7 @@ it:
|
|
381
378
|
edit:
|
382
379
|
update: Aggiorna
|
383
380
|
form:
|
384
|
-
current_image: Immagine corrente
|
385
381
|
title: Informazioni generali
|
386
|
-
url: URL
|
387
382
|
index:
|
388
383
|
not_published: Non pubblicato
|
389
384
|
published: Pubblicato
|
data/config/routes.rb
CHANGED
@@ -16,7 +16,11 @@ Decidim::Admin::Engine.routes.draw do
|
|
16
16
|
post :ordering, to: "participatory_process_step_ordering#create"
|
17
17
|
end
|
18
18
|
end
|
19
|
-
resources :user_roles, controller: "participatory_process_user_roles"
|
19
|
+
resources :user_roles, controller: "participatory_process_user_roles" do
|
20
|
+
member do
|
21
|
+
post :resend_invitation, to: "participatory_process_user_roles#resend_invitation"
|
22
|
+
end
|
23
|
+
end
|
20
24
|
resources :attachments, controller: "participatory_process_attachments"
|
21
25
|
|
22
26
|
resources :features do
|
@@ -44,8 +48,6 @@ Decidim::Admin::Engine.routes.draw do
|
|
44
48
|
mount manifest.admin_engine, at: "/", as: "decidim_admin_#{manifest.name}"
|
45
49
|
end
|
46
50
|
end
|
47
|
-
|
48
|
-
get "/", to: redirect("/404"), as: :manage_feature
|
49
51
|
end
|
50
52
|
|
51
53
|
resources :static_pages
|
@@ -25,8 +25,7 @@ RSpec.shared_examples "manage attachments examples" do
|
|
25
25
|
|
26
26
|
expect(page).to have_selector("input#attachment_title_en[value='#{translated(attachment.title, locale: :en)}']")
|
27
27
|
expect(page).to have_selector("input#attachment_description_en[value='#{translated(attachment.description, locale: :en)}']")
|
28
|
-
expect(page).to
|
29
|
-
expect(page).to have_css("img[src~='#{attachment.thumbnail_url}']")
|
28
|
+
expect(page).to have_css("img[src~='#{attachment.url}']")
|
30
29
|
end
|
31
30
|
|
32
31
|
it "can add attachments to a process" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-07-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.4.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.
|
28
|
+
version: 0.4.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: rails
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -158,14 +158,14 @@ dependencies:
|
|
158
158
|
requirements:
|
159
159
|
- - '='
|
160
160
|
- !ruby/object:Gem::Version
|
161
|
-
version: 0.
|
161
|
+
version: 0.4.0
|
162
162
|
type: :development
|
163
163
|
prerelease: false
|
164
164
|
version_requirements: !ruby/object:Gem::Requirement
|
165
165
|
requirements:
|
166
166
|
- - '='
|
167
167
|
- !ruby/object:Gem::Version
|
168
|
-
version: 0.
|
168
|
+
version: 0.4.0
|
169
169
|
description: Organization administration to manage a single organization.
|
170
170
|
email:
|
171
171
|
- josepjaume@gmail.com
|
@@ -191,7 +191,7 @@ files:
|
|
191
191
|
- app/assets/stylesheets/decidim/admin/extra/_dropdown_inverted.scss
|
192
192
|
- app/assets/stylesheets/decidim/admin/extra/_editor.scss
|
193
193
|
- app/assets/stylesheets/decidim/admin/extra/_email_preview.scss
|
194
|
-
- app/assets/stylesheets/decidim/admin/extra/
|
194
|
+
- app/assets/stylesheets/decidim/admin/extra/_label-required.scss
|
195
195
|
- app/assets/stylesheets/decidim/admin/extra/_login.scss
|
196
196
|
- app/assets/stylesheets/decidim/admin/extra/_select_multiple.scss
|
197
197
|
- app/assets/stylesheets/decidim/admin/extra/_sort.scss
|