decidim-admin 0.4.4 → 0.5.0
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/application.js.es6 +3 -0
- data/app/assets/javascripts/decidim/admin/participatory_processes.js.es6 +12 -0
- data/app/assets/javascripts/decidim/admin/scopes.js.es6 +20 -0
- data/app/assets/javascripts/decidim/admin/select2.js.es6 +8 -0
- data/app/assets/stylesheets/decidim/admin/_decidim.scss +2 -0
- data/app/assets/stylesheets/decidim/admin/extra/_categories.scss +1 -1
- data/app/assets/stylesheets/decidim/admin/extra/_login.scss +1 -1
- data/app/assets/stylesheets/decidim/admin/extra/_sort.scss +1 -1
- data/app/assets/stylesheets/decidim/admin/modules/_buttons.scss +3 -0
- data/app/assets/stylesheets/decidim/admin/modules/_callouts.scss +0 -1
- data/app/assets/stylesheets/decidim/admin/modules/_cards.scss +47 -0
- data/app/assets/stylesheets/decidim/admin/modules/_secondary-nav.scss +2 -2
- data/app/assets/stylesheets/decidim/admin/modules/_typography.scss +1 -1
- data/app/assets/stylesheets/decidim/admin/plugins/_select2.scss +27 -0
- data/app/assets/stylesheets/decidim/admin/utils/_toggle-expand.scss +1 -1
- data/app/commands/decidim/admin/close_session_managed_user.rb +44 -0
- data/app/commands/decidim/admin/create_feature.rb +2 -1
- data/app/commands/decidim/admin/create_managed_user.rb +61 -0
- data/app/commands/decidim/admin/create_scope.rb +7 -2
- data/app/commands/decidim/admin/create_scope_type.rb +40 -0
- data/app/commands/decidim/admin/impersonate_managed_user.rb +61 -0
- data/app/commands/decidim/admin/promote_managed_user.rb +56 -0
- data/app/commands/decidim/admin/update_participatory_process.rb +3 -1
- data/app/commands/decidim/admin/update_scope.rb +4 -1
- data/app/commands/decidim/admin/update_scope_type.rb +45 -0
- data/app/controllers/decidim/admin/application_controller.rb +2 -1
- data/app/controllers/decidim/admin/categories_controller.rb +3 -3
- data/app/controllers/decidim/admin/exports_controller.rb +1 -1
- data/app/controllers/decidim/admin/managed_users/impersonations_controller.rb +78 -0
- data/app/controllers/decidim/admin/managed_users/promotions_controller.rb +43 -0
- data/app/controllers/decidim/admin/managed_users_controller.rb +69 -0
- data/app/controllers/decidim/admin/moderations_controller.rb +4 -4
- data/app/controllers/decidim/admin/newsletters_controller.rb +1 -1
- data/app/controllers/decidim/admin/participatory_processes_controller.rb +0 -5
- data/app/controllers/decidim/admin/scope_types_controller.rb +79 -0
- data/app/controllers/decidim/admin/scopes_controller.rb +22 -7
- data/app/controllers/decidim/admin/user_groups_controller.rb +1 -1
- data/app/controllers/decidim/admin/users_controller.rb +1 -2
- data/app/forms/decidim/admin/impersonate_managed_user_form.rb +20 -0
- data/app/forms/decidim/admin/managed_user_form.rb +35 -0
- data/app/forms/decidim/admin/managed_user_promotion_form.rb +13 -0
- data/app/forms/decidim/admin/participatory_process_form.rb +2 -0
- data/app/forms/decidim/admin/scope_form.rb +17 -6
- data/app/forms/decidim/admin/scope_type_form.rb +21 -0
- data/app/helpers/decidim/admin/scopes_helper.rb +46 -0
- data/app/helpers/decidim/admin/settings_helper.rb +12 -1
- data/app/jobs/decidim/admin/expire_impersonation_job.rb +16 -0
- data/app/models/decidim/admin/abilities/admin_ability.rb +17 -0
- data/app/models/decidim/admin/abilities/user_manager_ability.rb +30 -0
- data/app/views/decidim/admin/categories/_form.html.erb +1 -1
- data/app/views/decidim/admin/categories/edit.html.erb +1 -1
- data/app/views/decidim/admin/categories/index.html.erb +7 -7
- data/app/views/decidim/admin/categories/new.html.erb +1 -1
- data/app/views/decidim/admin/features/_form.html.erb +6 -3
- data/app/views/decidim/admin/features/_settings_fields.html.erb +2 -1
- data/app/views/decidim/admin/managed_users/_form.html.erb +12 -0
- data/app/views/decidim/admin/managed_users/impersonations/_form.html.erb +10 -0
- data/app/views/decidim/admin/managed_users/impersonations/index.html.erb +34 -0
- data/app/views/decidim/admin/managed_users/impersonations/new.html.erb +15 -0
- data/app/views/decidim/admin/managed_users/index.html.erb +44 -0
- data/app/views/decidim/admin/managed_users/new.html.erb +47 -0
- data/app/views/decidim/admin/managed_users/promotions/_form.html.erb +3 -0
- data/app/views/decidim/admin/managed_users/promotions/new.html.erb +21 -0
- data/app/views/decidim/admin/moderations/index.html.erb +4 -4
- data/app/views/decidim/admin/participatory_process_copies/_form.html.erb +1 -1
- data/app/views/decidim/admin/participatory_process_user_roles/edit.html.erb +1 -1
- data/app/views/decidim/admin/participatory_processes/_form.html.erb +13 -8
- data/app/views/decidim/admin/participatory_processes/index.html.erb +1 -1
- data/app/views/decidim/admin/scope_types/_form.html.erb +7 -0
- data/app/views/decidim/admin/scope_types/edit.html.erb +13 -0
- data/app/views/decidim/admin/scope_types/index.html.erb +40 -0
- data/app/views/decidim/admin/scope_types/new.html.erb +13 -0
- data/app/views/decidim/admin/scopes/_form.html.erb +12 -2
- data/app/views/decidim/admin/scopes/index.html.erb +19 -7
- data/app/views/decidim/admin/scopes/new.html.erb +1 -1
- data/app/views/decidim/admin/users/_form.html.erb +4 -0
- data/app/views/decidim/admin/users/index.html.erb +2 -0
- data/app/views/layouts/decidim/admin/newsletters.erb +1 -1
- data/app/views/layouts/decidim/admin/pages.html.erb +1 -1
- data/app/views/layouts/decidim/admin/participatory_process.html.erb +4 -4
- data/app/views/layouts/decidim/admin/participatory_process_groups.html.erb +1 -1
- data/app/views/layouts/decidim/admin/settings.html.erb +4 -1
- data/app/views/layouts/decidim/admin/users.html.erb +8 -3
- data/config/i18n-tasks.yml +2 -1
- data/config/locales/ca.yml +80 -3
- data/config/locales/en.yml +82 -2
- data/config/locales/es.yml +80 -3
- data/config/locales/eu.yml +44 -7
- data/config/locales/fi.yml +0 -7
- data/config/locales/fr.yml +21 -6
- data/config/locales/it.yml +0 -10
- data/config/locales/nl.yml +1 -1
- data/config/locales/pl.yml +7 -0
- data/config/routes.rb +24 -11
- data/lib/decidim/admin/engine.rb +6 -3
- data/lib/decidim/admin/test/manage_attachments_examples.rb +77 -79
- metadata +56 -9
- data/app/views/decidim/admin/participatory_processes/show.html.erb +0 -54
data/config/locales/it.yml
CHANGED
|
@@ -111,8 +111,6 @@ it:
|
|
|
111
111
|
edit:
|
|
112
112
|
title: Modifica allegato
|
|
113
113
|
update: Aggiorna
|
|
114
|
-
index:
|
|
115
|
-
attachments_title: Allegati
|
|
116
114
|
new:
|
|
117
115
|
create: Crea allegato
|
|
118
116
|
title: Nuovo allegato
|
|
@@ -129,8 +127,6 @@ it:
|
|
|
129
127
|
edit:
|
|
130
128
|
title: Modifica categoria
|
|
131
129
|
update: Aggiorna
|
|
132
|
-
index:
|
|
133
|
-
categories_title: Categorie
|
|
134
130
|
new:
|
|
135
131
|
create: Crea nuova categoria
|
|
136
132
|
title: Nuova categoria
|
|
@@ -239,7 +235,6 @@ it:
|
|
|
239
235
|
collaborator: Collaboratore
|
|
240
236
|
scope:
|
|
241
237
|
fields:
|
|
242
|
-
created_at: Creato il
|
|
243
238
|
name: Nome
|
|
244
239
|
static_page:
|
|
245
240
|
fields:
|
|
@@ -302,7 +297,6 @@ it:
|
|
|
302
297
|
new:
|
|
303
298
|
copy: Copia
|
|
304
299
|
select: Scegli quale quale dato vuoi duplicare
|
|
305
|
-
title: Duplicazione di un processo partecipativo.
|
|
306
300
|
participatory_process_groups:
|
|
307
301
|
edit:
|
|
308
302
|
title: Aggiorna un gruppo di processi
|
|
@@ -337,8 +331,6 @@ it:
|
|
|
337
331
|
edit:
|
|
338
332
|
title: Modifica una fase del processo partecipativo.
|
|
339
333
|
update: Aggiorna
|
|
340
|
-
index:
|
|
341
|
-
steps_title: Fasi
|
|
342
334
|
new:
|
|
343
335
|
create: Crea
|
|
344
336
|
title: Nuova fase del processo partecipativo.
|
|
@@ -356,8 +348,6 @@ it:
|
|
|
356
348
|
edit:
|
|
357
349
|
title: Aggiornamento utente di un processo partecipativo.
|
|
358
350
|
update: Aggiorna
|
|
359
|
-
index:
|
|
360
|
-
process_admins_title: Utenti del processo partecipativo.
|
|
361
351
|
new:
|
|
362
352
|
create: Crea
|
|
363
353
|
title: Nuovo utente per un processo partecipativo.
|
data/config/locales/nl.yml
CHANGED
data/config/routes.rb
CHANGED
|
@@ -4,12 +4,10 @@ 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"
|
|
6
6
|
resources :participatory_process_groups
|
|
7
|
-
resources :participatory_processes do
|
|
7
|
+
resources :participatory_processes, except: :show do
|
|
8
8
|
resource :publish, controller: "participatory_process_publications", only: [:create, :destroy]
|
|
9
9
|
resources :copies, controller: "participatory_process_copies", only: [:new, :create]
|
|
10
10
|
|
|
11
|
-
resources :categories
|
|
12
|
-
|
|
13
11
|
resources :steps, controller: "participatory_process_steps" do
|
|
14
12
|
resource :activate, controller: "participatory_process_step_activations", only: [:create, :destroy]
|
|
15
13
|
collection do
|
|
@@ -22,16 +20,11 @@ Decidim::Admin::Engine.routes.draw do
|
|
|
22
20
|
end
|
|
23
21
|
end
|
|
24
22
|
resources :attachments, controller: "participatory_process_attachments"
|
|
25
|
-
|
|
26
|
-
resources :moderations do
|
|
27
|
-
member do
|
|
28
|
-
put :unreport
|
|
29
|
-
put :hide
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
23
|
end
|
|
33
24
|
|
|
34
25
|
scope "/participatory_processes/:participatory_process_id" do
|
|
26
|
+
resources :categories
|
|
27
|
+
|
|
35
28
|
resources :features do
|
|
36
29
|
resource :permissions, controller: "feature_permissions"
|
|
37
30
|
member do
|
|
@@ -40,6 +33,13 @@ Decidim::Admin::Engine.routes.draw do
|
|
|
40
33
|
end
|
|
41
34
|
resources :exports, only: :create
|
|
42
35
|
end
|
|
36
|
+
|
|
37
|
+
resources :moderations do
|
|
38
|
+
member do
|
|
39
|
+
put :unreport
|
|
40
|
+
put :hide
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
scope "/participatory_processes/:participatory_process_id/features/:feature_id/manage" do
|
|
@@ -53,13 +53,26 @@ Decidim::Admin::Engine.routes.draw do
|
|
|
53
53
|
end
|
|
54
54
|
|
|
55
55
|
resources :static_pages
|
|
56
|
-
resources :
|
|
56
|
+
resources :scope_types, except: [:show]
|
|
57
|
+
resources :scopes, except: [:show] do
|
|
58
|
+
resources :scopes, except: [:show]
|
|
59
|
+
end
|
|
60
|
+
|
|
57
61
|
resources :users, except: [:edit, :update], controller: "users" do
|
|
58
62
|
member do
|
|
59
63
|
post :resend_invitation, to: "users#resend_invitation"
|
|
60
64
|
end
|
|
61
65
|
end
|
|
62
66
|
|
|
67
|
+
resources :managed_users, controller: "managed_users", except: [:edit, :update] do
|
|
68
|
+
resources :promotions, controller: "managed_users/promotions", only: [:new, :create]
|
|
69
|
+
resources :impersonations, controller: "managed_users/impersonations", only: [:index, :new, :create] do
|
|
70
|
+
collection do
|
|
71
|
+
post :close_session
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
63
76
|
resources :newsletters do
|
|
64
77
|
member do
|
|
65
78
|
get :preview
|
data/lib/decidim/admin/engine.rb
CHANGED
|
@@ -12,6 +12,7 @@ require "foundation-rails"
|
|
|
12
12
|
require "foundation_rails_helper"
|
|
13
13
|
require "autoprefixer-rails"
|
|
14
14
|
require "rectify"
|
|
15
|
+
require "select2-rails"
|
|
15
16
|
|
|
16
17
|
module Decidim
|
|
17
18
|
module Admin
|
|
@@ -33,6 +34,7 @@ module Decidim
|
|
|
33
34
|
Decidim.configure do |config|
|
|
34
35
|
config.admin_abilities += [
|
|
35
36
|
"Decidim::Admin::Abilities::AdminAbility",
|
|
37
|
+
"Decidim::Admin::Abilities::UserManagerAbility",
|
|
36
38
|
"Decidim::Admin::Abilities::ParticipatoryProcessAdminAbility",
|
|
37
39
|
"Decidim::Admin::Abilities::ParticipatoryProcessCollaboratorAbility",
|
|
38
40
|
"Decidim::Admin::Abilities::ParticipatoryProcessModeratorAbility"
|
|
@@ -52,7 +54,8 @@ module Decidim
|
|
|
52
54
|
decidim_admin.participatory_processes_path,
|
|
53
55
|
icon_name: "target",
|
|
54
56
|
position: 2,
|
|
55
|
-
active: :inclusive
|
|
57
|
+
active: :inclusive,
|
|
58
|
+
if: can?(:manage, Decidim::ParticipatoryProcess)
|
|
56
59
|
|
|
57
60
|
menu.item I18n.t("menu.participatory_process_groups", scope: "decidim.admin"),
|
|
58
61
|
decidim_admin.participatory_process_groups_path,
|
|
@@ -69,11 +72,11 @@ module Decidim
|
|
|
69
72
|
if: can?(:read, Decidim::StaticPage)
|
|
70
73
|
|
|
71
74
|
menu.item I18n.t("menu.users", scope: "decidim.admin"),
|
|
72
|
-
decidim_admin.users_path,
|
|
75
|
+
can?(:read, :admin_users) ? decidim_admin.users_path : decidim_admin.managed_users_path,
|
|
73
76
|
icon_name: "person",
|
|
74
77
|
position: 5,
|
|
75
78
|
active: [%w(decidim/admin/user_groups decidim/admin/users), []],
|
|
76
|
-
if: can?(:read, :admin_users)
|
|
79
|
+
if: can?(:read, :admin_users) || can?(:read, :managed_users)
|
|
77
80
|
|
|
78
81
|
menu.item I18n.t("menu.newsletters", scope: "decidim.admin"),
|
|
79
82
|
decidim_admin.newsletters_path,
|
|
@@ -1,103 +1,101 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
1
|
# frozen_string_literal: true
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
create(:attachment, attached_to: attached_to)
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
before do
|
|
11
|
-
visit current_path
|
|
12
|
-
end
|
|
3
|
+
shared_examples "manage attachments examples" do
|
|
4
|
+
context "processing attachments", processing_uploads_for: Decidim::AttachmentUploader do
|
|
5
|
+
let!(:attachment) { create(:attachment, attached_to: attached_to) }
|
|
13
6
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
expect(page).to have_content(translated(attachment.title, locale: :en))
|
|
17
|
-
expect(page).to have_content(attachment.file_type)
|
|
7
|
+
before do
|
|
8
|
+
visit current_path
|
|
18
9
|
end
|
|
19
|
-
end
|
|
20
10
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
11
|
+
it "lists all the attachments for the process" do
|
|
12
|
+
within "#attachments table" do
|
|
13
|
+
expect(page).to have_content(translated(attachment.title, locale: :en))
|
|
14
|
+
expect(page).to have_content(attachment.file_type)
|
|
15
|
+
end
|
|
24
16
|
end
|
|
25
17
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
it "can add attachments to a process" do
|
|
32
|
-
find(".card-title a.new").click
|
|
33
|
-
|
|
34
|
-
within ".new_participatory_process_attachment" do
|
|
35
|
-
fill_in_i18n(
|
|
36
|
-
:attachment_title,
|
|
37
|
-
"#attachment-title-tabs",
|
|
38
|
-
en: "Very Important Document",
|
|
39
|
-
es: "Documento Muy Importante",
|
|
40
|
-
ca: "Document Molt Important"
|
|
41
|
-
)
|
|
42
|
-
|
|
43
|
-
fill_in_i18n(
|
|
44
|
-
:attachment_description,
|
|
45
|
-
"#attachment-description-tabs",
|
|
46
|
-
en: "This document contains important information",
|
|
47
|
-
es: "Este documento contiene información importante",
|
|
48
|
-
ca: "Aquest document conté informació important"
|
|
49
|
-
)
|
|
50
|
-
|
|
51
|
-
attach_file :attachment_file, Decidim::Dev.asset("Exampledocument.pdf")
|
|
52
|
-
find("*[type=submit]").click
|
|
53
|
-
end
|
|
18
|
+
it "can view an attachment details" do
|
|
19
|
+
within "#attachments table" do
|
|
20
|
+
click_link translated(attachment.title, locale: :en)
|
|
21
|
+
end
|
|
54
22
|
|
|
55
|
-
|
|
56
|
-
expect(page).to
|
|
23
|
+
expect(page).to have_selector("input#attachment_title_en[value='#{translated(attachment.title, locale: :en)}']")
|
|
24
|
+
expect(page).to have_selector("input#attachment_description_en[value='#{translated(attachment.description, locale: :en)}']")
|
|
25
|
+
expect(page).to have_css("img[src~='#{attachment.url}']")
|
|
57
26
|
end
|
|
58
27
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
28
|
+
it "can add attachments to a process" do
|
|
29
|
+
find(".card-title a.new").click
|
|
30
|
+
|
|
31
|
+
within ".new_participatory_process_attachment" do
|
|
32
|
+
fill_in_i18n(
|
|
33
|
+
:attachment_title,
|
|
34
|
+
"#attachment-title-tabs",
|
|
35
|
+
en: "Very Important Document",
|
|
36
|
+
es: "Documento Muy Importante",
|
|
37
|
+
ca: "Document Molt Important"
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
fill_in_i18n(
|
|
41
|
+
:attachment_description,
|
|
42
|
+
"#attachment-description-tabs",
|
|
43
|
+
en: "This document contains important information",
|
|
44
|
+
es: "Este documento contiene información importante",
|
|
45
|
+
ca: "Aquest document conté informació important"
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
attach_file :attachment_file, Decidim::Dev.asset("Exampledocument.pdf")
|
|
49
|
+
find("*[type=submit]").click
|
|
50
|
+
end
|
|
63
51
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
end
|
|
52
|
+
within ".callout-wrapper" do
|
|
53
|
+
expect(page).to have_content("successfully")
|
|
54
|
+
end
|
|
68
55
|
|
|
69
|
-
|
|
70
|
-
|
|
56
|
+
within "#attachments table" do
|
|
57
|
+
expect(page).to have_link("Very Important Document")
|
|
58
|
+
end
|
|
71
59
|
end
|
|
72
60
|
|
|
73
|
-
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
it "can update an attachment" do
|
|
77
|
-
within "#attachments" do
|
|
61
|
+
it "can delete an attachment from a process" do
|
|
78
62
|
within find("tr", text: stripped(translated(attachment.title))) do
|
|
79
|
-
page.find("a.action-icon--
|
|
63
|
+
page.find("a.action-icon--remove").click
|
|
80
64
|
end
|
|
81
|
-
end
|
|
82
65
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
"#attachment-title-tabs",
|
|
87
|
-
en: "This is a nice photo",
|
|
88
|
-
es: "Una foto muy guay",
|
|
89
|
-
ca: "Aquesta foto és ben xula"
|
|
90
|
-
)
|
|
66
|
+
within ".callout-wrapper" do
|
|
67
|
+
expect(page).to have_content("successfully")
|
|
68
|
+
end
|
|
91
69
|
|
|
92
|
-
|
|
70
|
+
expect(page).to have_no_content(translated(attachment.title, locale: :en))
|
|
93
71
|
end
|
|
94
72
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
73
|
+
it "can update an attachment" do
|
|
74
|
+
within "#attachments" do
|
|
75
|
+
within find("tr", text: stripped(translated(attachment.title))) do
|
|
76
|
+
page.find("a.action-icon--edit").click
|
|
77
|
+
end
|
|
78
|
+
end
|
|
98
79
|
|
|
99
|
-
|
|
100
|
-
|
|
80
|
+
within ".edit_participatory_process_attachment" do
|
|
81
|
+
fill_in_i18n(
|
|
82
|
+
:attachment_title,
|
|
83
|
+
"#attachment-title-tabs",
|
|
84
|
+
en: "This is a nice photo",
|
|
85
|
+
es: "Una foto muy guay",
|
|
86
|
+
ca: "Aquesta foto és ben xula"
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
find("*[type=submit]").click
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
within ".callout-wrapper" do
|
|
93
|
+
expect(page).to have_content("successfully")
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
within "#attachments table" do
|
|
97
|
+
expect(page).to have_link("This is a nice photo")
|
|
98
|
+
end
|
|
101
99
|
end
|
|
102
100
|
end
|
|
103
101
|
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.
|
|
4
|
+
version: 0.5.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-08-
|
|
13
|
+
date: 2017-08-17 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: decidim-core
|
|
@@ -18,28 +18,28 @@ dependencies:
|
|
|
18
18
|
requirements:
|
|
19
19
|
- - '='
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 0.
|
|
21
|
+
version: 0.5.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.5.0
|
|
29
29
|
- !ruby/object:Gem::Dependency
|
|
30
30
|
name: rails
|
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
|
32
32
|
requirements:
|
|
33
33
|
- - "~>"
|
|
34
34
|
- !ruby/object:Gem::Version
|
|
35
|
-
version: 5.1.
|
|
35
|
+
version: 5.1.3
|
|
36
36
|
type: :runtime
|
|
37
37
|
prerelease: false
|
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
|
39
39
|
requirements:
|
|
40
40
|
- - "~>"
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version: 5.1.
|
|
42
|
+
version: 5.1.3
|
|
43
43
|
- !ruby/object:Gem::Dependency
|
|
44
44
|
name: devise
|
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -152,20 +152,34 @@ dependencies:
|
|
|
152
152
|
- - "~>"
|
|
153
153
|
- !ruby/object:Gem::Version
|
|
154
154
|
version: 1.0.0
|
|
155
|
+
- !ruby/object:Gem::Dependency
|
|
156
|
+
name: select2-rails
|
|
157
|
+
requirement: !ruby/object:Gem::Requirement
|
|
158
|
+
requirements:
|
|
159
|
+
- - "~>"
|
|
160
|
+
- !ruby/object:Gem::Version
|
|
161
|
+
version: 4.0.3
|
|
162
|
+
type: :runtime
|
|
163
|
+
prerelease: false
|
|
164
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
165
|
+
requirements:
|
|
166
|
+
- - "~>"
|
|
167
|
+
- !ruby/object:Gem::Version
|
|
168
|
+
version: 4.0.3
|
|
155
169
|
- !ruby/object:Gem::Dependency
|
|
156
170
|
name: decidim-dev
|
|
157
171
|
requirement: !ruby/object:Gem::Requirement
|
|
158
172
|
requirements:
|
|
159
173
|
- - '='
|
|
160
174
|
- !ruby/object:Gem::Version
|
|
161
|
-
version: 0.
|
|
175
|
+
version: 0.5.0
|
|
162
176
|
type: :development
|
|
163
177
|
prerelease: false
|
|
164
178
|
version_requirements: !ruby/object:Gem::Requirement
|
|
165
179
|
requirements:
|
|
166
180
|
- - '='
|
|
167
181
|
- !ruby/object:Gem::Version
|
|
168
|
-
version: 0.
|
|
182
|
+
version: 0.5.0
|
|
169
183
|
description: Organization administration to manage a single organization.
|
|
170
184
|
email:
|
|
171
185
|
- josepjaume@gmail.com
|
|
@@ -179,6 +193,9 @@ files:
|
|
|
179
193
|
- Rakefile
|
|
180
194
|
- app/assets/config/decidim_admin_manifest.js
|
|
181
195
|
- app/assets/javascripts/decidim/admin/application.js.es6
|
|
196
|
+
- app/assets/javascripts/decidim/admin/participatory_processes.js.es6
|
|
197
|
+
- app/assets/javascripts/decidim/admin/scopes.js.es6
|
|
198
|
+
- app/assets/javascripts/decidim/admin/select2.js.es6
|
|
182
199
|
- app/assets/javascripts/decidim/admin/sort_list.component.js.es6
|
|
183
200
|
- app/assets/javascripts/decidim/admin/tab_focus.js.es6
|
|
184
201
|
- app/assets/javascripts/decidim/admin/toggle_nav.js.es6
|
|
@@ -215,6 +232,7 @@ files:
|
|
|
215
232
|
- app/assets/stylesheets/decidim/admin/modules/_typography.scss
|
|
216
233
|
- app/assets/stylesheets/decidim/admin/modules/_user-login.scss
|
|
217
234
|
- app/assets/stylesheets/decidim/admin/plugins/_foundation-datepicker.scss
|
|
235
|
+
- app/assets/stylesheets/decidim/admin/plugins/_select2.scss
|
|
218
236
|
- app/assets/stylesheets/decidim/admin/utils/_fontface.scss
|
|
219
237
|
- app/assets/stylesheets/decidim/admin/utils/_helpers.scss
|
|
220
238
|
- app/assets/stylesheets/decidim/admin/utils/_keyframes.scss
|
|
@@ -245,16 +263,19 @@ files:
|
|
|
245
263
|
- app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_strip-unit.scss
|
|
246
264
|
- app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_unitless-rad.scss
|
|
247
265
|
- app/commands/decidim/admin/activate_participatory_process_step.rb
|
|
266
|
+
- app/commands/decidim/admin/close_session_managed_user.rb
|
|
248
267
|
- app/commands/decidim/admin/copy_participatory_process.rb
|
|
249
268
|
- app/commands/decidim/admin/create_attachment.rb
|
|
250
269
|
- app/commands/decidim/admin/create_category.rb
|
|
251
270
|
- app/commands/decidim/admin/create_feature.rb
|
|
271
|
+
- app/commands/decidim/admin/create_managed_user.rb
|
|
252
272
|
- app/commands/decidim/admin/create_newsletter.rb
|
|
253
273
|
- app/commands/decidim/admin/create_participatory_process.rb
|
|
254
274
|
- app/commands/decidim/admin/create_participatory_process_admin.rb
|
|
255
275
|
- app/commands/decidim/admin/create_participatory_process_group.rb
|
|
256
276
|
- app/commands/decidim/admin/create_participatory_process_step.rb
|
|
257
277
|
- app/commands/decidim/admin/create_scope.rb
|
|
278
|
+
- app/commands/decidim/admin/create_scope_type.rb
|
|
258
279
|
- app/commands/decidim/admin/create_static_page.rb
|
|
259
280
|
- app/commands/decidim/admin/deactivate_participatory_process_step.rb
|
|
260
281
|
- app/commands/decidim/admin/deliver_newsletter.rb
|
|
@@ -262,6 +283,8 @@ files:
|
|
|
262
283
|
- app/commands/decidim/admin/destroy_feature.rb
|
|
263
284
|
- app/commands/decidim/admin/destroy_participatory_process_step.rb
|
|
264
285
|
- app/commands/decidim/admin/hide_resource.rb
|
|
286
|
+
- app/commands/decidim/admin/impersonate_managed_user.rb
|
|
287
|
+
- app/commands/decidim/admin/promote_managed_user.rb
|
|
265
288
|
- app/commands/decidim/admin/publish_participatory_process.rb
|
|
266
289
|
- app/commands/decidim/admin/reject_user_group.rb
|
|
267
290
|
- app/commands/decidim/admin/reorder_participatory_process_steps.rb
|
|
@@ -278,6 +301,7 @@ files:
|
|
|
278
301
|
- app/commands/decidim/admin/update_participatory_process_group.rb
|
|
279
302
|
- app/commands/decidim/admin/update_participatory_process_step.rb
|
|
280
303
|
- app/commands/decidim/admin/update_scope.rb
|
|
304
|
+
- app/commands/decidim/admin/update_scope_type.rb
|
|
281
305
|
- app/commands/decidim/admin/update_static_page.rb
|
|
282
306
|
- app/commands/decidim/admin/update_user_groups.rb
|
|
283
307
|
- app/commands/decidim/admin/verify_user_group.rb
|
|
@@ -291,6 +315,9 @@ files:
|
|
|
291
315
|
- app/controllers/decidim/admin/feature_permissions_controller.rb
|
|
292
316
|
- app/controllers/decidim/admin/features/base_controller.rb
|
|
293
317
|
- app/controllers/decidim/admin/features_controller.rb
|
|
318
|
+
- app/controllers/decidim/admin/managed_users/impersonations_controller.rb
|
|
319
|
+
- app/controllers/decidim/admin/managed_users/promotions_controller.rb
|
|
320
|
+
- app/controllers/decidim/admin/managed_users_controller.rb
|
|
294
321
|
- app/controllers/decidim/admin/moderations_controller.rb
|
|
295
322
|
- app/controllers/decidim/admin/newsletters_controller.rb
|
|
296
323
|
- app/controllers/decidim/admin/organization_controller.rb
|
|
@@ -303,6 +330,7 @@ files:
|
|
|
303
330
|
- app/controllers/decidim/admin/participatory_process_steps_controller.rb
|
|
304
331
|
- app/controllers/decidim/admin/participatory_process_user_roles_controller.rb
|
|
305
332
|
- app/controllers/decidim/admin/participatory_processes_controller.rb
|
|
333
|
+
- app/controllers/decidim/admin/scope_types_controller.rb
|
|
306
334
|
- app/controllers/decidim/admin/scopes_controller.rb
|
|
307
335
|
- app/controllers/decidim/admin/static_pages_controller.rb
|
|
308
336
|
- app/controllers/decidim/admin/user_groups_controller.rb
|
|
@@ -310,6 +338,9 @@ files:
|
|
|
310
338
|
- app/forms/decidim/admin/attachment_form.rb
|
|
311
339
|
- app/forms/decidim/admin/category_form.rb
|
|
312
340
|
- app/forms/decidim/admin/feature_form.rb
|
|
341
|
+
- app/forms/decidim/admin/impersonate_managed_user_form.rb
|
|
342
|
+
- app/forms/decidim/admin/managed_user_form.rb
|
|
343
|
+
- app/forms/decidim/admin/managed_user_promotion_form.rb
|
|
313
344
|
- app/forms/decidim/admin/newsletter_form.rb
|
|
314
345
|
- app/forms/decidim/admin/organization_form.rb
|
|
315
346
|
- app/forms/decidim/admin/participatory_process_copy_form.rb
|
|
@@ -320,6 +351,7 @@ files:
|
|
|
320
351
|
- app/forms/decidim/admin/permission_form.rb
|
|
321
352
|
- app/forms/decidim/admin/permissions_form.rb
|
|
322
353
|
- app/forms/decidim/admin/scope_form.rb
|
|
354
|
+
- app/forms/decidim/admin/scope_type_form.rb
|
|
323
355
|
- app/forms/decidim/admin/static_page_form.rb
|
|
324
356
|
- app/helpers/decidim/admin/application_helper.rb
|
|
325
357
|
- app/helpers/decidim/admin/attributes_display_helper.rb
|
|
@@ -328,8 +360,10 @@ files:
|
|
|
328
360
|
- app/helpers/decidim/admin/menu_helper.rb
|
|
329
361
|
- app/helpers/decidim/admin/process_groups_for_select_helper.rb
|
|
330
362
|
- app/helpers/decidim/admin/processes_for_select_helper.rb
|
|
363
|
+
- app/helpers/decidim/admin/scopes_helper.rb
|
|
331
364
|
- app/helpers/decidim/admin/settings_helper.rb
|
|
332
365
|
- app/jobs/decidim/admin/application_job.rb
|
|
366
|
+
- app/jobs/decidim/admin/expire_impersonation_job.rb
|
|
333
367
|
- app/jobs/decidim/admin/newsletter_delivery_job.rb
|
|
334
368
|
- app/jobs/decidim/admin/newsletter_job.rb
|
|
335
369
|
- app/mailers/decidim/admin/application_mailer.rb
|
|
@@ -338,6 +372,7 @@ files:
|
|
|
338
372
|
- app/models/decidim/admin/abilities/participatory_process_admin_ability.rb
|
|
339
373
|
- app/models/decidim/admin/abilities/participatory_process_collaborator_ability.rb
|
|
340
374
|
- app/models/decidim/admin/abilities/participatory_process_moderator_ability.rb
|
|
375
|
+
- app/models/decidim/admin/abilities/user_manager_ability.rb
|
|
341
376
|
- app/models/decidim/admin/application_record.rb
|
|
342
377
|
- app/queries/decidim/admin/process_admins.rb
|
|
343
378
|
- app/queries/decidim/admin/user_groups_evaluation.rb
|
|
@@ -362,6 +397,14 @@ files:
|
|
|
362
397
|
- app/views/decidim/admin/features/edit.html.erb
|
|
363
398
|
- app/views/decidim/admin/features/index.html.erb
|
|
364
399
|
- app/views/decidim/admin/features/new.html.erb
|
|
400
|
+
- app/views/decidim/admin/managed_users/_form.html.erb
|
|
401
|
+
- app/views/decidim/admin/managed_users/impersonations/_form.html.erb
|
|
402
|
+
- app/views/decidim/admin/managed_users/impersonations/index.html.erb
|
|
403
|
+
- app/views/decidim/admin/managed_users/impersonations/new.html.erb
|
|
404
|
+
- app/views/decidim/admin/managed_users/index.html.erb
|
|
405
|
+
- app/views/decidim/admin/managed_users/new.html.erb
|
|
406
|
+
- app/views/decidim/admin/managed_users/promotions/_form.html.erb
|
|
407
|
+
- app/views/decidim/admin/managed_users/promotions/new.html.erb
|
|
365
408
|
- app/views/decidim/admin/moderations/_report.html.erb
|
|
366
409
|
- app/views/decidim/admin/moderations/index.html.erb
|
|
367
410
|
- app/views/decidim/admin/newsletters/_form.html.erb
|
|
@@ -391,7 +434,10 @@ files:
|
|
|
391
434
|
- app/views/decidim/admin/participatory_processes/edit.html.erb
|
|
392
435
|
- app/views/decidim/admin/participatory_processes/index.html.erb
|
|
393
436
|
- app/views/decidim/admin/participatory_processes/new.html.erb
|
|
394
|
-
- app/views/decidim/admin/
|
|
437
|
+
- app/views/decidim/admin/scope_types/_form.html.erb
|
|
438
|
+
- app/views/decidim/admin/scope_types/edit.html.erb
|
|
439
|
+
- app/views/decidim/admin/scope_types/index.html.erb
|
|
440
|
+
- app/views/decidim/admin/scope_types/new.html.erb
|
|
395
441
|
- app/views/decidim/admin/scopes/_form.html.erb
|
|
396
442
|
- app/views/decidim/admin/scopes/edit.html.erb
|
|
397
443
|
- app/views/decidim/admin/scopes/index.html.erb
|
|
@@ -429,6 +475,7 @@ files:
|
|
|
429
475
|
- config/locales/fr.yml
|
|
430
476
|
- config/locales/it.yml
|
|
431
477
|
- config/locales/nl.yml
|
|
478
|
+
- config/locales/pl.yml
|
|
432
479
|
- config/routes.rb
|
|
433
480
|
- db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
|
|
434
481
|
- db/migrate/20170128112958_change_user_groups_verified_to_timestamp.rb
|