decidim-admin 0.0.3 → 0.0.5
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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/decidim/admin/sort_steps.js.es6 +3 -3
- data/app/assets/stylesheets/decidim/admin/_email_preview.scss +5 -0
- data/app/assets/stylesheets/decidim/admin/application.scss +1 -0
- data/app/commands/decidim/admin/create_newsletter.rb +30 -0
- data/app/commands/decidim/admin/create_participatory_process_admin.rb +3 -0
- data/app/commands/decidim/admin/deliver_newsletter.rb +29 -0
- data/app/commands/decidim/admin/destroy_participatory_process_step.rb +9 -0
- data/app/commands/decidim/admin/update_feature_permissions.rb +46 -0
- data/app/commands/decidim/admin/update_newsletter.rb +33 -0
- data/app/commands/decidim/admin/update_organization.rb +17 -2
- data/app/commands/decidim/admin/update_participatory_process.rb +4 -2
- data/app/constraints/decidim/admin/organization_dashboard_constraint.rb +1 -1
- data/app/controllers/decidim/admin/application_controller.rb +3 -0
- data/app/controllers/decidim/admin/feature_permissions_controller.rb +59 -0
- data/app/controllers/decidim/admin/features_controller.rb +20 -0
- data/app/controllers/decidim/admin/newsletters_controller.rb +115 -0
- data/app/controllers/decidim/admin/participatory_processes_controller.rb +4 -4
- data/app/controllers/decidim/admin/users_controller.rb +3 -1
- data/app/forms/decidim/admin/newsletter_form.rb +15 -0
- data/app/forms/decidim/admin/organization_form.rb +10 -0
- data/app/forms/decidim/admin/participatory_process_form.rb +8 -5
- data/app/forms/decidim/admin/permission_form.rb +31 -0
- data/app/forms/decidim/admin/permissions_form.rb +16 -0
- data/app/helpers/decidim/admin/application_helper.rb +1 -0
- data/app/jobs/decidim/admin/newsletter_delivery_job.rb +18 -0
- data/app/jobs/decidim/admin/newsletter_job.rb +32 -0
- data/app/models/decidim/admin/abilities/admin_user.rb +4 -0
- data/app/models/decidim/admin/abilities/base.rb +4 -0
- data/app/models/decidim/admin/abilities/collaborator_user.rb +19 -0
- data/app/models/decidim/admin/abilities/participatory_process_admin.rb +1 -1
- data/app/models/decidim/admin/participatory_process_user_role.rb +1 -1
- data/app/queries/decidim/admin/manageable_participatory_processes_for_user.rb +1 -1
- data/app/views/decidim/admin/attachments/edit.html.erb +1 -1
- data/app/views/decidim/admin/attachments/new.html.erb +1 -1
- data/app/views/decidim/admin/categories/edit.html.erb +1 -1
- data/app/views/decidim/admin/categories/new.html.erb +1 -1
- data/app/views/decidim/admin/dashboard/show.html.erb +1 -1
- data/app/views/decidim/admin/feature_permissions/edit.html.erb +27 -0
- data/app/views/decidim/admin/features/_feature.html.erb +10 -0
- data/app/views/decidim/admin/features/edit.html.erb +1 -1
- data/app/views/decidim/admin/features/new.html.erb +1 -1
- data/app/views/decidim/admin/newsletters/_form.html.erb +5 -0
- data/app/views/decidim/admin/newsletters/edit.html.erb +11 -0
- data/app/views/decidim/admin/newsletters/index.html.erb +47 -0
- data/app/views/decidim/admin/newsletters/new.html.erb +11 -0
- data/app/views/decidim/admin/newsletters/show.html.erb +14 -0
- data/app/views/decidim/admin/organization/_form.html.erb +34 -0
- data/app/views/decidim/admin/organization/edit.html.erb +2 -2
- data/app/views/decidim/admin/participatory_process_steps/_form.html.erb +1 -1
- data/app/views/decidim/admin/participatory_process_steps/edit.html.erb +1 -1
- data/app/views/decidim/admin/participatory_process_steps/new.html.erb +1 -1
- data/app/views/decidim/admin/participatory_process_user_roles/index.html.erb +1 -1
- data/app/views/decidim/admin/participatory_processes/_form.html.erb +18 -5
- data/app/views/decidim/admin/participatory_processes/edit.html.erb +1 -1
- data/app/views/decidim/admin/participatory_processes/index.html.erb +1 -1
- data/app/views/decidim/admin/participatory_processes/new.html.erb +2 -2
- data/app/views/decidim/admin/participatory_processes/show.html.erb +5 -2
- data/app/views/decidim/admin/scopes/edit.html.erb +2 -2
- data/app/views/decidim/admin/scopes/index.html.erb +1 -1
- data/app/views/decidim/admin/scopes/new.html.erb +2 -2
- data/app/views/decidim/admin/static_pages/_form.html.erb +1 -1
- data/app/views/decidim/admin/static_pages/edit.html.erb +2 -2
- data/app/views/decidim/admin/static_pages/index.html.erb +1 -1
- data/app/views/decidim/admin/static_pages/new.html.erb +2 -2
- data/app/views/decidim/admin/static_pages/show.html.erb +1 -1
- data/app/views/decidim/admin/user_groups/index.html.erb +1 -1
- data/app/views/decidim/admin/users/index.html.erb +1 -1
- data/app/views/decidim/admin/users/new.html.erb +2 -2
- data/app/views/layouts/decidim/admin/_sidebar.html.erb +1 -0
- data/app/views/layouts/decidim/admin/participatory_process.html.erb +1 -1
- data/config/i18n-tasks.yml +4 -3
- data/config/locales/ca.yml +60 -1
- data/config/locales/en.yml +59 -0
- data/config/locales/es.yml +59 -0
- data/config/locales/eu.yml +5 -0
- data/config/routes.rb +15 -1
- data/db/seeds.rb +3 -1
- data/lib/decidim/admin/engine.rb +1 -0
- data/lib/decidim/admin/features/base_controller.rb +5 -1
- metadata +26 -20
data/config/locales/en.yml
CHANGED
|
@@ -13,6 +13,9 @@ en:
|
|
|
13
13
|
feature:
|
|
14
14
|
name: Name
|
|
15
15
|
weight: Weight
|
|
16
|
+
newsletter:
|
|
17
|
+
body: Body
|
|
18
|
+
subject: Subject
|
|
16
19
|
organization:
|
|
17
20
|
default_locale: Default locale
|
|
18
21
|
description: Description
|
|
@@ -25,9 +28,13 @@ en:
|
|
|
25
28
|
participatory_process:
|
|
26
29
|
banner_image: Banner image
|
|
27
30
|
description: Description
|
|
31
|
+
developer_group: Developer group
|
|
32
|
+
domain: Domain
|
|
33
|
+
end_date: End date
|
|
28
34
|
hashtag: Hashtag
|
|
29
35
|
hero_image: Home image
|
|
30
36
|
promoted: Promoted
|
|
37
|
+
scope: Scope
|
|
31
38
|
short_description: Short description
|
|
32
39
|
slug: URL slug
|
|
33
40
|
subtitle: Subtitle
|
|
@@ -48,6 +55,9 @@ en:
|
|
|
48
55
|
organization: Organization
|
|
49
56
|
slug: URL slug
|
|
50
57
|
title: Title
|
|
58
|
+
errors:
|
|
59
|
+
messages:
|
|
60
|
+
invalid_json: Invalid JSON
|
|
51
61
|
activerecord:
|
|
52
62
|
attributes:
|
|
53
63
|
decidim/participatory_process:
|
|
@@ -63,6 +73,7 @@ en:
|
|
|
63
73
|
edit: Edit
|
|
64
74
|
manage: Manage
|
|
65
75
|
new: New %{name}
|
|
76
|
+
permissions: Permissions
|
|
66
77
|
preview: Preview
|
|
67
78
|
publish: Publish
|
|
68
79
|
resend_invitation: Resend invitation
|
|
@@ -115,6 +126,13 @@ en:
|
|
|
115
126
|
participatory_process_user_roles:
|
|
116
127
|
index:
|
|
117
128
|
process_admins_title: Participatory process admins
|
|
129
|
+
feature_permissions:
|
|
130
|
+
edit:
|
|
131
|
+
everyone: Everyone
|
|
132
|
+
submit: Save permissions
|
|
133
|
+
title: Edit permissions
|
|
134
|
+
update:
|
|
135
|
+
success: Permissions updated successfully.
|
|
118
136
|
features:
|
|
119
137
|
create:
|
|
120
138
|
error: There was an error creating this feature.
|
|
@@ -137,12 +155,17 @@ en:
|
|
|
137
155
|
new:
|
|
138
156
|
add: Add feature
|
|
139
157
|
title: 'Add feature: %{name}'
|
|
158
|
+
publish:
|
|
159
|
+
success: The feature has been successfully published.
|
|
140
160
|
title: Features
|
|
161
|
+
unpublish:
|
|
162
|
+
success: The feature has been successfully unpublished.
|
|
141
163
|
update:
|
|
142
164
|
error: There has been an error updating this feature.
|
|
143
165
|
success: The feature was updated successfully.
|
|
144
166
|
menu:
|
|
145
167
|
dashboard: Dashboard
|
|
168
|
+
newsletters: Newsletters
|
|
146
169
|
participatory_processes: Participatory processes
|
|
147
170
|
participatory_processes_submenu:
|
|
148
171
|
attachments: Attachments
|
|
@@ -167,6 +190,13 @@ en:
|
|
|
167
190
|
fields:
|
|
168
191
|
name: Name
|
|
169
192
|
name: Category
|
|
193
|
+
newsletter:
|
|
194
|
+
fields:
|
|
195
|
+
created_at: Created at
|
|
196
|
+
progress: Progress
|
|
197
|
+
sent_at: Sent at
|
|
198
|
+
subject: Subject
|
|
199
|
+
name: Newsletter
|
|
170
200
|
participatory_process:
|
|
171
201
|
fields:
|
|
172
202
|
created_at: Created at
|
|
@@ -210,6 +240,35 @@ en:
|
|
|
210
240
|
name: Name
|
|
211
241
|
phone: Phone
|
|
212
242
|
users_count: Users count
|
|
243
|
+
newsletters:
|
|
244
|
+
create:
|
|
245
|
+
error: There's been an error creating this newsletter.
|
|
246
|
+
success: Newsletter created successfully. Please, review it before sending.
|
|
247
|
+
deliver:
|
|
248
|
+
error: There's been an error delivering this newsletter.
|
|
249
|
+
success: Newsletter delivered successfully.
|
|
250
|
+
destroy:
|
|
251
|
+
error_already_sent: 'Can''t destroy newsletter: It has already been sent.'
|
|
252
|
+
success: Newsletter destroyed successfully.
|
|
253
|
+
edit:
|
|
254
|
+
save_and_preview: Save and preview
|
|
255
|
+
title: Edit newsletter
|
|
256
|
+
form:
|
|
257
|
+
interpolations_hint: 'Hint: You can use "%{name}" anywhere in the body or subject and it will be replaced by the recipient''s name.'
|
|
258
|
+
index:
|
|
259
|
+
confirm_delete: Are you sure you want to delete this newsletter?
|
|
260
|
+
title: Newsletters
|
|
261
|
+
new:
|
|
262
|
+
save: Save
|
|
263
|
+
title: New newsletter
|
|
264
|
+
show:
|
|
265
|
+
confirm_deliver: Are you sure you want to deliver this newsletter? This action cannot be undone.
|
|
266
|
+
deliver: Deliver newsletter
|
|
267
|
+
preview: Preview
|
|
268
|
+
subject: Subject
|
|
269
|
+
update:
|
|
270
|
+
error: There's been an error updating this newsletter.
|
|
271
|
+
success: Newsletter updated successfully. Please review it before sending.
|
|
213
272
|
organization:
|
|
214
273
|
edit:
|
|
215
274
|
title: Edit organization
|
data/config/locales/es.yml
CHANGED
|
@@ -12,6 +12,9 @@ es:
|
|
|
12
12
|
feature:
|
|
13
13
|
name: Nombre
|
|
14
14
|
weight: Peso
|
|
15
|
+
newsletter:
|
|
16
|
+
body: Cuerpo
|
|
17
|
+
subject: Asunto
|
|
15
18
|
organization:
|
|
16
19
|
default_locale: Configuración regional predeterminada
|
|
17
20
|
description: Descripción
|
|
@@ -24,9 +27,13 @@ es:
|
|
|
24
27
|
participatory_process:
|
|
25
28
|
banner_image: Imagen de bandera
|
|
26
29
|
description: Descripción
|
|
30
|
+
developer_group: Grupo promotor
|
|
31
|
+
domain: Dominio
|
|
32
|
+
end_date: Fecha de finalización
|
|
27
33
|
hashtag: Hashtag
|
|
28
34
|
hero_image: Imagen de portada
|
|
29
35
|
promoted: Destacado
|
|
36
|
+
scope: Ámbito
|
|
30
37
|
short_description: Breve descripción
|
|
31
38
|
slug: Texto corto de URL
|
|
32
39
|
subtitle: Subtítulo
|
|
@@ -47,6 +54,9 @@ es:
|
|
|
47
54
|
organization: Organización
|
|
48
55
|
slug: Texto corto de URL
|
|
49
56
|
title: Título
|
|
57
|
+
errors:
|
|
58
|
+
messages:
|
|
59
|
+
invalid_json: JSON no válido
|
|
50
60
|
activerecord:
|
|
51
61
|
attributes:
|
|
52
62
|
decidim/participatory_process:
|
|
@@ -62,6 +72,7 @@ es:
|
|
|
62
72
|
edit: Editar
|
|
63
73
|
manage: Gestionar
|
|
64
74
|
new: Nuevo %{name}
|
|
75
|
+
permissions: Permisos
|
|
65
76
|
preview: Previsualizar
|
|
66
77
|
publish: Publicar
|
|
67
78
|
resend_invitation: Reenviar invitación
|
|
@@ -114,6 +125,13 @@ es:
|
|
|
114
125
|
participatory_process_user_roles:
|
|
115
126
|
index:
|
|
116
127
|
process_admins_title: Administradores del proceso participativo
|
|
128
|
+
feature_permissions:
|
|
129
|
+
edit:
|
|
130
|
+
everyone: Todo el mundo
|
|
131
|
+
submit: Guardar permisos
|
|
132
|
+
title: Editar permisos
|
|
133
|
+
update:
|
|
134
|
+
success: Permisos actualizados correctamente.
|
|
117
135
|
features:
|
|
118
136
|
create:
|
|
119
137
|
error: Se ha producido un error al añadir esta funcionalidad.
|
|
@@ -136,12 +154,17 @@ es:
|
|
|
136
154
|
new:
|
|
137
155
|
add: Añadir funcionalidad
|
|
138
156
|
title: 'Añadir funcionalidad: %{name}'
|
|
157
|
+
publish:
|
|
158
|
+
success: La funcionalidad se ha publicado correctamente.
|
|
139
159
|
title: Funcionalidades
|
|
160
|
+
unpublish:
|
|
161
|
+
success: La funcionalidad se ha despublicado correctamente.
|
|
140
162
|
update:
|
|
141
163
|
error: Se ha producido un error al actualizar esta funcionalidad.
|
|
142
164
|
success: La funcionalidad se ha actualizado correctamente.
|
|
143
165
|
menu:
|
|
144
166
|
dashboard: Panel de control
|
|
167
|
+
newsletters: Boletines
|
|
145
168
|
participatory_processes: Procesos participativos
|
|
146
169
|
participatory_processes_submenu:
|
|
147
170
|
attachments: Archivos adjuntos
|
|
@@ -166,6 +189,13 @@ es:
|
|
|
166
189
|
fields:
|
|
167
190
|
name: Nombre
|
|
168
191
|
name: Categoría
|
|
192
|
+
newsletter:
|
|
193
|
+
fields:
|
|
194
|
+
created_at: Fecha de creación
|
|
195
|
+
progress: Progreso
|
|
196
|
+
sent_at: Enviado el
|
|
197
|
+
subject: Asunto
|
|
198
|
+
name: Boletín
|
|
169
199
|
participatory_process:
|
|
170
200
|
fields:
|
|
171
201
|
created_at: Fecha de creación
|
|
@@ -209,6 +239,35 @@ es:
|
|
|
209
239
|
name: Nombre
|
|
210
240
|
phone: Teléfono
|
|
211
241
|
users_count: Número de usuarios
|
|
242
|
+
newsletters:
|
|
243
|
+
create:
|
|
244
|
+
error: Se ha producido un error al crear este boletín.
|
|
245
|
+
success: Boletín creado con éxito. Por favor, revíselo antes de enviarlo.
|
|
246
|
+
deliver:
|
|
247
|
+
error: Ha habido un error de entrega de este boletín.
|
|
248
|
+
success: Boletín enviado con éxito.
|
|
249
|
+
destroy:
|
|
250
|
+
error_already_sent: 'No se puede destruir el boletín de noticias: Ya se ha enviado.'
|
|
251
|
+
success: Boletín destruido con éxito.
|
|
252
|
+
edit:
|
|
253
|
+
save_and_preview: Guardar y vista previa
|
|
254
|
+
title: Editar boletín
|
|
255
|
+
form:
|
|
256
|
+
interpolations_hint: 'Sugerencia: Puede utilizar "%{name}" en cualquier parte del cuerpo o asunto y será reemplazado por el nombre del destinatario.'
|
|
257
|
+
index:
|
|
258
|
+
confirm_delete: '¿Estás seguro de que quieres eliminar este boletín?'
|
|
259
|
+
title: Boletines
|
|
260
|
+
new:
|
|
261
|
+
save: Guardar
|
|
262
|
+
title: Nuevo boletín
|
|
263
|
+
show:
|
|
264
|
+
confirm_deliver: '¿Estás seguro de que quieres enviar este boletín? Esta acción no se puede deshacer.'
|
|
265
|
+
deliver: Enviar boletín
|
|
266
|
+
preview: Previsualizar
|
|
267
|
+
subject: Asunto
|
|
268
|
+
update:
|
|
269
|
+
error: Se ha producido un error al actualizar este boletín.
|
|
270
|
+
success: Boletín actualizado correctamente. Por favor revísalo antes de enviarlo.
|
|
212
271
|
organization:
|
|
213
272
|
edit:
|
|
214
273
|
title: Editar organización
|
data/config/routes.rb
CHANGED
|
@@ -15,7 +15,14 @@ Decidim::Admin::Engine.routes.draw do
|
|
|
15
15
|
end
|
|
16
16
|
resources :user_roles, controller: "participatory_process_user_roles", only: [:destroy, :create, :index]
|
|
17
17
|
resources :attachments, controller: "participatory_process_attachments"
|
|
18
|
-
|
|
18
|
+
|
|
19
|
+
resources :features do
|
|
20
|
+
resource :permissions, controller: "feature_permissions"
|
|
21
|
+
member do
|
|
22
|
+
put :publish
|
|
23
|
+
put :unpublish
|
|
24
|
+
end
|
|
25
|
+
end
|
|
19
26
|
end
|
|
20
27
|
|
|
21
28
|
scope "/participatory_processes/:participatory_process_id/features/:feature_id/manage" do
|
|
@@ -38,6 +45,13 @@ Decidim::Admin::Engine.routes.draw do
|
|
|
38
45
|
end
|
|
39
46
|
end
|
|
40
47
|
|
|
48
|
+
resources :newsletters do
|
|
49
|
+
member do
|
|
50
|
+
get :preview
|
|
51
|
+
post :deliver
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
41
55
|
resources :user_groups, only: [:index] do
|
|
42
56
|
member do
|
|
43
57
|
put :verify
|
data/db/seeds.rb
CHANGED
|
@@ -10,7 +10,9 @@ if !Rails.env.production? || ENV["SEED"]
|
|
|
10
10
|
confirmed_at: Time.current,
|
|
11
11
|
locale: I18n.default_locale,
|
|
12
12
|
organization: staging_organization,
|
|
13
|
-
tos_agreement: true
|
|
13
|
+
tos_agreement: true,
|
|
14
|
+
comments_notifications: true,
|
|
15
|
+
replies_notifications: true
|
|
14
16
|
)
|
|
15
17
|
|
|
16
18
|
Decidim::Admin::ParticipatoryProcessUserRole.create!(
|
data/lib/decidim/admin/engine.rb
CHANGED
|
@@ -33,6 +33,7 @@ module Decidim
|
|
|
33
33
|
Decidim.configure do |config|
|
|
34
34
|
config.abilities += ["Decidim::Admin::Abilities::AdminUser"]
|
|
35
35
|
config.abilities += ["Decidim::Admin::Abilities::ParticipatoryProcessAdmin"]
|
|
36
|
+
config.abilities += ["Decidim::Admin::Abilities::CollaboratorUser"]
|
|
36
37
|
end
|
|
37
38
|
end
|
|
38
39
|
end
|
|
@@ -16,10 +16,14 @@ module Decidim
|
|
|
16
16
|
|
|
17
17
|
delegate :active_step, to: :current_participatory_process, prefix: false
|
|
18
18
|
|
|
19
|
-
before_action do
|
|
19
|
+
before_action except: [:index, :show] do
|
|
20
20
|
authorize! :manage, current_feature
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
+
before_action on: [:index, :show] do
|
|
24
|
+
authorize! :read, current_feature
|
|
25
|
+
end
|
|
26
|
+
|
|
23
27
|
def current_feature
|
|
24
28
|
request.env["decidim.current_feature"]
|
|
25
29
|
end
|
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.0.
|
|
4
|
+
version: 0.0.5
|
|
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-02-
|
|
13
|
+
date: 2017-02-17 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.0.
|
|
21
|
+
version: 0.0.5
|
|
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.0.
|
|
28
|
+
version: 0.0.5
|
|
29
29
|
- !ruby/object:Gem::Dependency
|
|
30
30
|
name: rails
|
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -172,34 +172,20 @@ dependencies:
|
|
|
172
172
|
- - "~>"
|
|
173
173
|
- !ruby/object:Gem::Version
|
|
174
174
|
version: 1.0.0.rc
|
|
175
|
-
- !ruby/object:Gem::Dependency
|
|
176
|
-
name: cancancan
|
|
177
|
-
requirement: !ruby/object:Gem::Requirement
|
|
178
|
-
requirements:
|
|
179
|
-
- - "~>"
|
|
180
|
-
- !ruby/object:Gem::Version
|
|
181
|
-
version: 1.15.0
|
|
182
|
-
type: :runtime
|
|
183
|
-
prerelease: false
|
|
184
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
185
|
-
requirements:
|
|
186
|
-
- - "~>"
|
|
187
|
-
- !ruby/object:Gem::Version
|
|
188
|
-
version: 1.15.0
|
|
189
175
|
- !ruby/object:Gem::Dependency
|
|
190
176
|
name: decidim-dev
|
|
191
177
|
requirement: !ruby/object:Gem::Requirement
|
|
192
178
|
requirements:
|
|
193
179
|
- - '='
|
|
194
180
|
- !ruby/object:Gem::Version
|
|
195
|
-
version: 0.0.
|
|
181
|
+
version: 0.0.5
|
|
196
182
|
type: :development
|
|
197
183
|
prerelease: false
|
|
198
184
|
version_requirements: !ruby/object:Gem::Requirement
|
|
199
185
|
requirements:
|
|
200
186
|
- - '='
|
|
201
187
|
- !ruby/object:Gem::Version
|
|
202
|
-
version: 0.0.
|
|
188
|
+
version: 0.0.5
|
|
203
189
|
description: Organization administration to manage a single organization.
|
|
204
190
|
email:
|
|
205
191
|
- josepjaume@gmail.com
|
|
@@ -216,6 +202,7 @@ files:
|
|
|
216
202
|
- app/assets/javascripts/decidim/admin/sort_steps.js.es6
|
|
217
203
|
- app/assets/javascripts/decidim/admin/tab_focus.js.es6
|
|
218
204
|
- app/assets/stylesheets/decidim/admin/_actions.scss
|
|
205
|
+
- app/assets/stylesheets/decidim/admin/_email_preview.scss
|
|
219
206
|
- app/assets/stylesheets/decidim/admin/_forms.scss
|
|
220
207
|
- app/assets/stylesheets/decidim/admin/_foundation_and_overrides.scss
|
|
221
208
|
- app/assets/stylesheets/decidim/admin/_icons.scss
|
|
@@ -229,12 +216,14 @@ files:
|
|
|
229
216
|
- app/commands/decidim/admin/create_attachment.rb
|
|
230
217
|
- app/commands/decidim/admin/create_category.rb
|
|
231
218
|
- app/commands/decidim/admin/create_feature.rb
|
|
219
|
+
- app/commands/decidim/admin/create_newsletter.rb
|
|
232
220
|
- app/commands/decidim/admin/create_participatory_process.rb
|
|
233
221
|
- app/commands/decidim/admin/create_participatory_process_admin.rb
|
|
234
222
|
- app/commands/decidim/admin/create_participatory_process_step.rb
|
|
235
223
|
- app/commands/decidim/admin/create_scope.rb
|
|
236
224
|
- app/commands/decidim/admin/create_static_page.rb
|
|
237
225
|
- app/commands/decidim/admin/deactivate_participatory_process_step.rb
|
|
226
|
+
- app/commands/decidim/admin/deliver_newsletter.rb
|
|
238
227
|
- app/commands/decidim/admin/destroy_category.rb
|
|
239
228
|
- app/commands/decidim/admin/destroy_feature.rb
|
|
240
229
|
- app/commands/decidim/admin/destroy_participatory_process_step.rb
|
|
@@ -244,6 +233,8 @@ files:
|
|
|
244
233
|
- app/commands/decidim/admin/update_attachment.rb
|
|
245
234
|
- app/commands/decidim/admin/update_category.rb
|
|
246
235
|
- app/commands/decidim/admin/update_feature.rb
|
|
236
|
+
- app/commands/decidim/admin/update_feature_permissions.rb
|
|
237
|
+
- app/commands/decidim/admin/update_newsletter.rb
|
|
247
238
|
- app/commands/decidim/admin/update_organization.rb
|
|
248
239
|
- app/commands/decidim/admin/update_participatory_process.rb
|
|
249
240
|
- app/commands/decidim/admin/update_participatory_process_step.rb
|
|
@@ -255,7 +246,9 @@ files:
|
|
|
255
246
|
- app/controllers/decidim/admin/concerns/has_attachments.rb
|
|
256
247
|
- app/controllers/decidim/admin/concerns/participatory_process_admin.rb
|
|
257
248
|
- app/controllers/decidim/admin/dashboard_controller.rb
|
|
249
|
+
- app/controllers/decidim/admin/feature_permissions_controller.rb
|
|
258
250
|
- app/controllers/decidim/admin/features_controller.rb
|
|
251
|
+
- app/controllers/decidim/admin/newsletters_controller.rb
|
|
259
252
|
- app/controllers/decidim/admin/organization_controller.rb
|
|
260
253
|
- app/controllers/decidim/admin/participatory_process_attachments_controller.rb
|
|
261
254
|
- app/controllers/decidim/admin/participatory_process_publications_controller.rb
|
|
@@ -271,19 +264,25 @@ files:
|
|
|
271
264
|
- app/forms/decidim/admin/attachment_form.rb
|
|
272
265
|
- app/forms/decidim/admin/category_form.rb
|
|
273
266
|
- app/forms/decidim/admin/feature_form.rb
|
|
267
|
+
- app/forms/decidim/admin/newsletter_form.rb
|
|
274
268
|
- app/forms/decidim/admin/organization_form.rb
|
|
275
269
|
- app/forms/decidim/admin/participatory_process_form.rb
|
|
276
270
|
- app/forms/decidim/admin/participatory_process_step_form.rb
|
|
277
271
|
- app/forms/decidim/admin/participatory_process_user_role_form.rb
|
|
272
|
+
- app/forms/decidim/admin/permission_form.rb
|
|
273
|
+
- app/forms/decidim/admin/permissions_form.rb
|
|
278
274
|
- app/forms/decidim/admin/scope_form.rb
|
|
279
275
|
- app/forms/decidim/admin/static_page_form.rb
|
|
280
276
|
- app/helpers/decidim/admin/application_helper.rb
|
|
281
277
|
- app/helpers/decidim/admin/attributes_display_helper.rb
|
|
282
278
|
- app/helpers/decidim/admin/feature_settings_helper.rb
|
|
283
279
|
- app/jobs/decidim/admin/application_job.rb
|
|
280
|
+
- app/jobs/decidim/admin/newsletter_delivery_job.rb
|
|
281
|
+
- app/jobs/decidim/admin/newsletter_job.rb
|
|
284
282
|
- app/mailers/decidim/admin/application_mailer.rb
|
|
285
283
|
- app/models/decidim/admin/abilities/admin_user.rb
|
|
286
284
|
- app/models/decidim/admin/abilities/base.rb
|
|
285
|
+
- app/models/decidim/admin/abilities/collaborator_user.rb
|
|
287
286
|
- app/models/decidim/admin/abilities/participatory_process_admin.rb
|
|
288
287
|
- app/models/decidim/admin/application_record.rb
|
|
289
288
|
- app/models/decidim/admin/participatory_process_user_role.rb
|
|
@@ -302,12 +301,18 @@ files:
|
|
|
302
301
|
- app/views/decidim/admin/dashboard/show.html.erb
|
|
303
302
|
- app/views/decidim/admin/devise/mailers/password_change.html.erb
|
|
304
303
|
- app/views/decidim/admin/devise/mailers/reset_password_instructions.html.erb
|
|
304
|
+
- app/views/decidim/admin/feature_permissions/edit.html.erb
|
|
305
305
|
- app/views/decidim/admin/features/_feature.html.erb
|
|
306
306
|
- app/views/decidim/admin/features/_form.html.erb
|
|
307
307
|
- app/views/decidim/admin/features/_settings_fields.html.erb
|
|
308
308
|
- app/views/decidim/admin/features/edit.html.erb
|
|
309
309
|
- app/views/decidim/admin/features/index.html.erb
|
|
310
310
|
- app/views/decidim/admin/features/new.html.erb
|
|
311
|
+
- app/views/decidim/admin/newsletters/_form.html.erb
|
|
312
|
+
- app/views/decidim/admin/newsletters/edit.html.erb
|
|
313
|
+
- app/views/decidim/admin/newsletters/index.html.erb
|
|
314
|
+
- app/views/decidim/admin/newsletters/new.html.erb
|
|
315
|
+
- app/views/decidim/admin/newsletters/show.html.erb
|
|
311
316
|
- app/views/decidim/admin/organization/_form.html.erb
|
|
312
317
|
- app/views/decidim/admin/organization/edit.html.erb
|
|
313
318
|
- app/views/decidim/admin/participatory_process_steps/_form.html.erb
|
|
@@ -345,6 +350,7 @@ files:
|
|
|
345
350
|
- config/locales/ca.yml
|
|
346
351
|
- config/locales/en.yml
|
|
347
352
|
- config/locales/es.yml
|
|
353
|
+
- config/locales/eu.yml
|
|
348
354
|
- config/routes.rb
|
|
349
355
|
- db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
|
|
350
356
|
- db/migrate/20170128112958_change_user_groups_verified_to_timestamp.rb
|