decidim-admin 0.5.1 → 0.6.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.

Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -7
  3. data/app/assets/javascripts/decidim/admin/application.js.es6 +0 -1
  4. data/app/assets/stylesheets/decidim/admin/extra/_quill.scss +5 -0
  5. data/app/commands/decidim/admin/create_category.rb +4 -4
  6. data/app/commands/decidim/admin/create_feature.rb +7 -7
  7. data/app/commands/decidim/admin/create_managed_user.rb +0 -2
  8. data/app/commands/decidim/admin/update_organization.rb +1 -0
  9. data/app/controllers/decidim/admin/application_controller.rb +0 -2
  10. data/app/controllers/decidim/admin/categories_controller.rb +10 -10
  11. data/app/controllers/decidim/admin/exports_controller.rb +1 -2
  12. data/app/controllers/decidim/admin/feature_permissions_controller.rb +2 -3
  13. data/app/controllers/decidim/admin/features/base_controller.rb +9 -3
  14. data/app/controllers/decidim/admin/features_controller.rb +5 -7
  15. data/app/controllers/decidim/admin/moderations_controller.rb +5 -7
  16. data/app/controllers/decidim/admin/scopes_controller.rb +12 -10
  17. data/app/controllers/decidim/admin/users_controller.rb +1 -3
  18. data/app/forms/decidim/admin/category_form.rb +2 -2
  19. data/app/forms/decidim/admin/feature_form.rb +1 -18
  20. data/app/forms/decidim/admin/organization_form.rb +1 -0
  21. data/app/helpers/decidim/admin/exports_helper.rb +10 -0
  22. data/app/models/decidim/admin/abilities/admin_ability.rb +0 -3
  23. data/app/models/decidim/admin/abilities/participatory_process_admin_ability.rb +3 -3
  24. data/app/views/decidim/admin/attachments/edit.html.erb +1 -1
  25. data/app/views/decidim/admin/attachments/new.html.erb +1 -1
  26. data/app/views/decidim/admin/categories/edit.html.erb +2 -2
  27. data/app/views/decidim/admin/categories/index.html.erb +11 -11
  28. data/app/views/decidim/admin/categories/new.html.erb +3 -3
  29. data/app/views/decidim/admin/categories/show.html.erb +2 -2
  30. data/app/views/decidim/admin/exports/_dropdown.html.erb +1 -1
  31. data/app/views/decidim/admin/features/_form.html.erb +15 -15
  32. data/app/views/decidim/admin/features/edit.html.erb +1 -1
  33. data/app/views/decidim/admin/features/new.html.erb +1 -1
  34. data/app/views/decidim/admin/moderations/index.html.erb +2 -2
  35. data/app/views/decidim/admin/organization/_form.html.erb +5 -0
  36. data/app/views/decidim/admin/users/index.html.erb +1 -1
  37. data/config/locales/ca.yml +8 -195
  38. data/config/locales/en.yml +6 -197
  39. data/config/locales/es.yml +11 -198
  40. data/config/locales/eu.yml +95 -208
  41. data/config/locales/fi.yml +168 -123
  42. data/config/locales/fr.yml +114 -191
  43. data/config/locales/it.yml +150 -168
  44. data/config/locales/nl.yml +443 -0
  45. data/config/locales/pl.yml +444 -0
  46. data/config/locales/uk.yml +451 -0
  47. data/config/routes.rb +2 -46
  48. data/lib/decidim/admin/engine.rb +0 -14
  49. data/lib/decidim/admin/test/commands/create_category_examples.rb +62 -0
  50. data/lib/decidim/admin/test/commands/destroy_category_examples.rb +46 -0
  51. data/lib/decidim/admin/test/commands/update_category_examples.rb +65 -0
  52. data/lib/decidim/admin/test/forms/category_form_examples.rb +90 -0
  53. data/lib/decidim/admin/test/manage_attachments_examples.rb +2 -2
  54. data/lib/decidim/admin/test/manage_feature_permissions_examples.rb +41 -0
  55. metadata +27 -64
  56. data/app/assets/javascripts/decidim/admin/participatory_processes.js.es6 +0 -12
  57. data/app/commands/decidim/admin/activate_participatory_process_step.rb +0 -44
  58. data/app/commands/decidim/admin/copy_participatory_process.rb +0 -113
  59. data/app/commands/decidim/admin/create_participatory_process.rb +0 -78
  60. data/app/commands/decidim/admin/create_participatory_process_admin.rb +0 -93
  61. data/app/commands/decidim/admin/create_participatory_process_group.rb +0 -55
  62. data/app/commands/decidim/admin/create_participatory_process_step.rb +0 -47
  63. data/app/commands/decidim/admin/deactivate_participatory_process_step.rb +0 -36
  64. data/app/commands/decidim/admin/destroy_participatory_process_step.rb +0 -44
  65. data/app/commands/decidim/admin/publish_participatory_process.rb +0 -32
  66. data/app/commands/decidim/admin/reorder_participatory_process_steps.rb +0 -52
  67. data/app/commands/decidim/admin/unpublish_participatory_process.rb +0 -32
  68. data/app/commands/decidim/admin/update_participatory_process.rb +0 -74
  69. data/app/commands/decidim/admin/update_participatory_process_admin.rb +0 -41
  70. data/app/commands/decidim/admin/update_participatory_process_group.rb +0 -58
  71. data/app/commands/decidim/admin/update_participatory_process_step.rb +0 -49
  72. data/app/controllers/decidim/admin/concerns/participatory_process_admin.rb +0 -20
  73. data/app/controllers/decidim/admin/participatory_process_attachments_controller.rb +0 -25
  74. data/app/controllers/decidim/admin/participatory_process_copies_controller.rb +0 -33
  75. data/app/controllers/decidim/admin/participatory_process_groups_controller.rb +0 -86
  76. data/app/controllers/decidim/admin/participatory_process_publications_controller.rb +0 -43
  77. data/app/controllers/decidim/admin/participatory_process_step_activations_controller.rb +0 -37
  78. data/app/controllers/decidim/admin/participatory_process_step_ordering_controller.rb +0 -27
  79. data/app/controllers/decidim/admin/participatory_process_steps_controller.rb +0 -89
  80. data/app/controllers/decidim/admin/participatory_process_user_roles_controller.rb +0 -97
  81. data/app/controllers/decidim/admin/participatory_processes_controller.rb +0 -96
  82. data/app/forms/decidim/admin/participatory_process_copy_form.rb +0 -33
  83. data/app/forms/decidim/admin/participatory_process_form.rb +0 -69
  84. data/app/forms/decidim/admin/participatory_process_group_form.rb +0 -24
  85. data/app/forms/decidim/admin/participatory_process_step_form.rb +0 -35
  86. data/app/forms/decidim/admin/participatory_process_user_role_form.rb +0 -29
  87. data/app/helpers/decidim/admin/process_groups_for_select_helper.rb +0 -21
  88. data/app/helpers/decidim/admin/processes_for_select_helper.rb +0 -23
  89. data/app/queries/decidim/admin/process_admins.rb +0 -44
  90. data/app/views/decidim/admin/participatory_process_copies/_form.html.erb +0 -38
  91. data/app/views/decidim/admin/participatory_process_copies/new.html.erb +0 -7
  92. data/app/views/decidim/admin/participatory_process_groups/_form.html.erb +0 -17
  93. data/app/views/decidim/admin/participatory_process_groups/edit.html.erb +0 -19
  94. data/app/views/decidim/admin/participatory_process_groups/index.html.erb +0 -44
  95. data/app/views/decidim/admin/participatory_process_groups/new.html.erb +0 -13
  96. data/app/views/decidim/admin/participatory_process_groups/show.html.erb +0 -23
  97. data/app/views/decidim/admin/participatory_process_steps/_form.html.erb +0 -25
  98. data/app/views/decidim/admin/participatory_process_steps/edit.html.erb +0 -8
  99. data/app/views/decidim/admin/participatory_process_steps/index.html.erb +0 -63
  100. data/app/views/decidim/admin/participatory_process_steps/new.html.erb +0 -7
  101. data/app/views/decidim/admin/participatory_process_steps/show.html.erb +0 -18
  102. data/app/views/decidim/admin/participatory_process_user_roles/_form.html.erb +0 -22
  103. data/app/views/decidim/admin/participatory_process_user_roles/edit.html.erb +0 -7
  104. data/app/views/decidim/admin/participatory_process_user_roles/index.html.erb +0 -65
  105. data/app/views/decidim/admin/participatory_process_user_roles/new.html.erb +0 -7
  106. data/app/views/decidim/admin/participatory_processes/_form.html.erb +0 -101
  107. data/app/views/decidim/admin/participatory_processes/edit.html.erb +0 -19
  108. data/app/views/decidim/admin/participatory_processes/index.html.erb +0 -66
  109. data/app/views/decidim/admin/participatory_processes/new.html.erb +0 -11
  110. data/app/views/layouts/decidim/admin/participatory_process.html.erb +0 -64
  111. data/app/views/layouts/decidim/admin/participatory_process_groups.html.erb +0 -14
  112. data/app/views/layouts/decidim/admin/participatory_processes.html.erb +0 -14
  113. data/config/i18n-tasks.yml +0 -132
@@ -50,20 +50,6 @@ module Decidim
50
50
  position: 1,
51
51
  active: ["decidim/admin/dashboard" => :show]
52
52
 
53
- menu.item I18n.t("menu.participatory_processes", scope: "decidim.admin"),
54
- decidim_admin.participatory_processes_path,
55
- icon_name: "target",
56
- position: 2,
57
- active: :inclusive,
58
- if: can?(:manage, Decidim::ParticipatoryProcess)
59
-
60
- menu.item I18n.t("menu.participatory_process_groups", scope: "decidim.admin"),
61
- decidim_admin.participatory_process_groups_path,
62
- icon_name: "layers",
63
- position: 3,
64
- active: :inclusive,
65
- if: can?(:read, Decidim::ParticipatoryProcessGroup)
66
-
67
53
  menu.item I18n.t("menu.static_pages", scope: "decidim.admin"),
68
54
  decidim_admin.static_pages_path,
69
55
  icon_name: "book",
@@ -0,0 +1,62 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "spec_helper"
4
+
5
+ module Decidim
6
+ module Admin
7
+ shared_examples_for "CreateCategory command" do
8
+ describe "call" do
9
+ let(:organization) { create(:organization) }
10
+ let(:form_params) do
11
+ {
12
+ "category" => {
13
+ "name_en" => Decidim::Faker::Localized.paragraph(3),
14
+ "name_es" => Decidim::Faker::Localized.paragraph(3),
15
+ "name_ca" => Decidim::Faker::Localized.paragraph(3),
16
+ "description_en" => Decidim::Faker::Localized.paragraph(3),
17
+ "description_es" => Decidim::Faker::Localized.paragraph(3),
18
+ "description_ca" => Decidim::Faker::Localized.paragraph(3)
19
+ }
20
+ }
21
+ end
22
+ let(:form) do
23
+ CategoryForm.from_params(
24
+ form_params,
25
+ current_participatory_space: participatory_space
26
+ ).with_context(
27
+ current_organization: organization
28
+ )
29
+ end
30
+ let(:command) { described_class.new(form, participatory_space) }
31
+
32
+ describe "when the form is not valid" do
33
+ before do
34
+ expect(form).to receive(:invalid?).and_return(true)
35
+ end
36
+
37
+ it "broadcasts invalid" do
38
+ expect { command.call }.to broadcast(:invalid)
39
+ end
40
+
41
+ it "doesn't create a category" do
42
+ expect do
43
+ command.call
44
+ end.not_to change { Category.count }
45
+ end
46
+ end
47
+
48
+ describe "when the form is valid" do
49
+ it "broadcasts ok" do
50
+ expect { command.call }.to broadcast(:ok)
51
+ end
52
+
53
+ it "creates a new category" do
54
+ expect do
55
+ command.call
56
+ end.to change { participatory_space.categories.count }.by(1)
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "spec_helper"
4
+
5
+ module Decidim
6
+ module Admin
7
+ shared_examples_for "DestroyCategory command" do
8
+ describe "call" do
9
+ let(:organization) { create(:organization) }
10
+ let(:category) { create(:category, participatory_space: participatory_space) }
11
+ let(:command) { described_class.new(category) }
12
+
13
+ describe "when the category is not present" do
14
+ let(:category) { nil }
15
+
16
+ it "broadcasts invalid" do
17
+ expect { command.call }.to broadcast(:invalid)
18
+ end
19
+ end
20
+
21
+ context "when the category is not empty" do
22
+ let!(:subcategory) { create :subcategory, parent: category }
23
+
24
+ it "doesn't destroy the category" do
25
+ expect do
26
+ command.call
27
+ end.not_to change { Category.count }
28
+ end
29
+ end
30
+
31
+ describe "when the data is valid" do
32
+ it "broadcasts ok" do
33
+ expect { command.call }.to broadcast(:ok)
34
+ end
35
+
36
+ it "destroys the category in the process" do
37
+ category
38
+ expect do
39
+ command.call
40
+ end.to change { Category.count }.by(-1)
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,65 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "spec_helper"
4
+
5
+ module Decidim
6
+ module Admin
7
+ shared_examples_for "UpdateCategory command" do
8
+ describe "call" do
9
+ let(:organization) { create(:organization) }
10
+ let(:category) { create(:category, participatory_space: participatory_space) }
11
+ let(:form_params) do
12
+ {
13
+ "category" => {
14
+ "name_en" => "New title",
15
+ "name_es" => "Title",
16
+ "name_ca" => "Title",
17
+ "description_en" => "Description",
18
+ "description_es" => "Description",
19
+ "description_ca" => "Description"
20
+ }
21
+ }
22
+ end
23
+ let(:form) do
24
+ CategoryForm.from_params(
25
+ form_params,
26
+ current_participatory_space: participatory_space
27
+ ).with_context(
28
+ current_organization: organization
29
+ )
30
+ end
31
+ let(:command) { described_class.new(category, form) }
32
+
33
+ describe "when the form is not valid" do
34
+ before do
35
+ expect(form).to receive(:invalid?).and_return(true)
36
+ end
37
+
38
+ it "broadcasts invalid" do
39
+ expect { command.call }.to broadcast(:invalid)
40
+ end
41
+
42
+ it "doesn't update the category" do
43
+ command.call
44
+ category.reload
45
+
46
+ expect(translated(category.name)).not_to eq("New title")
47
+ end
48
+ end
49
+
50
+ describe "when the form is valid" do
51
+ it "broadcasts ok" do
52
+ expect { command.call }.to broadcast(:ok)
53
+ end
54
+
55
+ it "updates the category in the process" do
56
+ command.call
57
+ category.reload
58
+
59
+ expect(translated(category.name)).to eq("New title")
60
+ end
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,90 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "spec_helper"
4
+
5
+ module Decidim
6
+ module Admin
7
+ shared_examples_for "category form" do
8
+ let(:name) do
9
+ {
10
+ en: "Name",
11
+ es: "Nombre",
12
+ ca: "Nom"
13
+ }
14
+ end
15
+ let(:description) do
16
+ {
17
+ en: "Description",
18
+ es: "Descripción",
19
+ ca: "Descripció"
20
+ }
21
+ end
22
+ let(:parent_id) { nil }
23
+ let(:attributes) do
24
+ {
25
+ "category" => {
26
+ "name_en" => name[:en],
27
+ "name_es" => name[:es],
28
+ "name_ca" => name[:ca],
29
+ "parent_id" => parent_id,
30
+ "description_en" => description[:en],
31
+ "description_es" => description[:es],
32
+ "description_ca" => description[:ca]
33
+ }
34
+ }
35
+ end
36
+ let(:organization) { create :organization }
37
+
38
+ subject do
39
+ described_class.from_params(
40
+ attributes
41
+ ).with_context(
42
+ current_participatory_space: participatory_space,
43
+ current_organization: organization
44
+ )
45
+ end
46
+
47
+ context "when everything is OK" do
48
+ it { is_expected.to be_valid }
49
+ end
50
+
51
+ context "when some language in name is missing" do
52
+ let(:name) do
53
+ {
54
+ en: "Name",
55
+ ca: "Nombre"
56
+ }
57
+ end
58
+
59
+ it { is_expected.to be_invalid }
60
+ end
61
+
62
+ context "when some language in description is missing" do
63
+ let(:description) do
64
+ {
65
+ ca: "Descripció"
66
+ }
67
+ end
68
+
69
+ it { is_expected.to be_invalid }
70
+ end
71
+
72
+ context "when the parent_id is set" do
73
+ let!(:category) { create :category, participatory_space: participatory_space }
74
+
75
+ context "to the ID of a first-class category" do
76
+ let(:parent_id) { category.id }
77
+
78
+ it { is_expected.to be_valid }
79
+ end
80
+
81
+ context "to the ID of a subcategory" do
82
+ let!(:subcategory) { create :subcategory, parent: category }
83
+ let(:parent_id) { subcategory.id }
84
+
85
+ it { is_expected.not_to be_valid }
86
+ end
87
+ end
88
+ end
89
+ end
90
+ end
@@ -28,7 +28,7 @@ shared_examples "manage attachments examples" do
28
28
  it "can add attachments to a process" do
29
29
  find(".card-title a.new").click
30
30
 
31
- within ".new_participatory_process_attachment" do
31
+ within ".new_attachment" do
32
32
  fill_in_i18n(
33
33
  :attachment_title,
34
34
  "#attachment-title-tabs",
@@ -77,7 +77,7 @@ shared_examples "manage attachments examples" do
77
77
  end
78
78
  end
79
79
 
80
- within ".edit_participatory_process_attachment" do
80
+ within ".edit_attachment" do
81
81
  fill_in_i18n(
82
82
  :attachment_title,
83
83
  "#attachment-title-tabs",
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "spec_helper"
4
+
5
+ shared_examples "Managing feature permissions" do
6
+ let(:organization) { create(:organization, available_authorizations: ["Decidim::DummyAuthorizationHandler"]) }
7
+ let(:user) { create(:user, :admin, :confirmed, organization: organization) }
8
+
9
+ let!(:feature) do
10
+ create(:feature, participatory_space: participatory_space)
11
+ end
12
+
13
+ before do
14
+ switch_to_host(organization.host)
15
+ login_as user, scope: :user
16
+ visit participatory_space_engine.features_path(participatory_space)
17
+
18
+ within ".feature-#{feature.id}" do
19
+ page.find(".action-icon--permissions").click
20
+ end
21
+ end
22
+
23
+ it "allows setting permissions with json options" do
24
+ within "form.new_feature_permissions" do
25
+ within ".foo-permission" do
26
+ select "Example authorization", from: "feature_permissions_permissions_foo_authorization_handler_name"
27
+ fill_in "feature_permissions_permissions_foo_options", with: '{ "foo": 123 }'
28
+ end
29
+ find("*[type=submit]").click
30
+ end
31
+
32
+ expect(page).to have_content("successfully")
33
+
34
+ expect(feature.reload.permissions["foo"]).to(
35
+ include(
36
+ "authorization_handler_name" => "decidim/dummy_authorization_handler",
37
+ "options" => { "foo" => 123 }
38
+ )
39
+ )
40
+ end
41
+ 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.5.1
4
+ version: 0.6.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-21 00:00:00.000000000 Z
13
+ date: 2017-09-15 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.5.1
21
+ version: 0.6.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.5.1
28
+ version: 0.6.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rails
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -172,14 +172,28 @@ dependencies:
172
172
  requirements:
173
173
  - - '='
174
174
  - !ruby/object:Gem::Version
175
- version: 0.5.1
175
+ version: 0.6.0
176
176
  type: :development
177
177
  prerelease: false
178
178
  version_requirements: !ruby/object:Gem::Requirement
179
179
  requirements:
180
180
  - - '='
181
181
  - !ruby/object:Gem::Version
182
- version: 0.5.1
182
+ version: 0.6.0
183
+ - !ruby/object:Gem::Dependency
184
+ name: decidim-participatory_processes
185
+ requirement: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - '='
188
+ - !ruby/object:Gem::Version
189
+ version: 0.6.0
190
+ type: :development
191
+ prerelease: false
192
+ version_requirements: !ruby/object:Gem::Requirement
193
+ requirements:
194
+ - - '='
195
+ - !ruby/object:Gem::Version
196
+ version: 0.6.0
183
197
  description: Organization administration to manage a single organization.
184
198
  email:
185
199
  - josepjaume@gmail.com
@@ -193,7 +207,6 @@ files:
193
207
  - Rakefile
194
208
  - app/assets/config/decidim_admin_manifest.js
195
209
  - app/assets/javascripts/decidim/admin/application.js.es6
196
- - app/assets/javascripts/decidim/admin/participatory_processes.js.es6
197
210
  - app/assets/javascripts/decidim/admin/scopes.js.es6
198
211
  - app/assets/javascripts/decidim/admin/select2.js.es6
199
212
  - app/assets/javascripts/decidim/admin/sort_list.component.js.es6
@@ -210,6 +223,7 @@ files:
210
223
  - app/assets/stylesheets/decidim/admin/extra/_email_preview.scss
211
224
  - app/assets/stylesheets/decidim/admin/extra/_label-required.scss
212
225
  - app/assets/stylesheets/decidim/admin/extra/_login.scss
226
+ - app/assets/stylesheets/decidim/admin/extra/_quill.scss
213
227
  - app/assets/stylesheets/decidim/admin/extra/_select_multiple.scss
214
228
  - app/assets/stylesheets/decidim/admin/extra/_sort.scss
215
229
  - app/assets/stylesheets/decidim/admin/extra/_title_bar.scss
@@ -262,33 +276,22 @@ files:
262
276
  - app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_rad-to-deg.scss
263
277
  - app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_strip-unit.scss
264
278
  - app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_unitless-rad.scss
265
- - app/commands/decidim/admin/activate_participatory_process_step.rb
266
279
  - app/commands/decidim/admin/close_session_managed_user.rb
267
- - app/commands/decidim/admin/copy_participatory_process.rb
268
280
  - app/commands/decidim/admin/create_attachment.rb
269
281
  - app/commands/decidim/admin/create_category.rb
270
282
  - app/commands/decidim/admin/create_feature.rb
271
283
  - app/commands/decidim/admin/create_managed_user.rb
272
284
  - app/commands/decidim/admin/create_newsletter.rb
273
- - app/commands/decidim/admin/create_participatory_process.rb
274
- - app/commands/decidim/admin/create_participatory_process_admin.rb
275
- - app/commands/decidim/admin/create_participatory_process_group.rb
276
- - app/commands/decidim/admin/create_participatory_process_step.rb
277
285
  - app/commands/decidim/admin/create_scope.rb
278
286
  - app/commands/decidim/admin/create_scope_type.rb
279
287
  - app/commands/decidim/admin/create_static_page.rb
280
- - app/commands/decidim/admin/deactivate_participatory_process_step.rb
281
288
  - app/commands/decidim/admin/deliver_newsletter.rb
282
289
  - app/commands/decidim/admin/destroy_category.rb
283
290
  - app/commands/decidim/admin/destroy_feature.rb
284
- - app/commands/decidim/admin/destroy_participatory_process_step.rb
285
291
  - app/commands/decidim/admin/hide_resource.rb
286
292
  - app/commands/decidim/admin/impersonate_managed_user.rb
287
293
  - app/commands/decidim/admin/promote_managed_user.rb
288
- - app/commands/decidim/admin/publish_participatory_process.rb
289
294
  - app/commands/decidim/admin/reject_user_group.rb
290
- - app/commands/decidim/admin/reorder_participatory_process_steps.rb
291
- - app/commands/decidim/admin/unpublish_participatory_process.rb
292
295
  - app/commands/decidim/admin/unreport_resource.rb
293
296
  - app/commands/decidim/admin/update_attachment.rb
294
297
  - app/commands/decidim/admin/update_category.rb
@@ -296,10 +299,6 @@ files:
296
299
  - app/commands/decidim/admin/update_feature_permissions.rb
297
300
  - app/commands/decidim/admin/update_newsletter.rb
298
301
  - app/commands/decidim/admin/update_organization.rb
299
- - app/commands/decidim/admin/update_participatory_process.rb
300
- - app/commands/decidim/admin/update_participatory_process_admin.rb
301
- - app/commands/decidim/admin/update_participatory_process_group.rb
302
- - app/commands/decidim/admin/update_participatory_process_step.rb
303
302
  - app/commands/decidim/admin/update_scope.rb
304
303
  - app/commands/decidim/admin/update_scope_type.rb
305
304
  - app/commands/decidim/admin/update_static_page.rb
@@ -309,7 +308,6 @@ files:
309
308
  - app/controllers/decidim/admin/application_controller.rb
310
309
  - app/controllers/decidim/admin/categories_controller.rb
311
310
  - app/controllers/decidim/admin/concerns/has_attachments.rb
312
- - app/controllers/decidim/admin/concerns/participatory_process_admin.rb
313
311
  - app/controllers/decidim/admin/dashboard_controller.rb
314
312
  - app/controllers/decidim/admin/exports_controller.rb
315
313
  - app/controllers/decidim/admin/feature_permissions_controller.rb
@@ -321,15 +319,6 @@ files:
321
319
  - app/controllers/decidim/admin/moderations_controller.rb
322
320
  - app/controllers/decidim/admin/newsletters_controller.rb
323
321
  - app/controllers/decidim/admin/organization_controller.rb
324
- - app/controllers/decidim/admin/participatory_process_attachments_controller.rb
325
- - app/controllers/decidim/admin/participatory_process_copies_controller.rb
326
- - app/controllers/decidim/admin/participatory_process_groups_controller.rb
327
- - app/controllers/decidim/admin/participatory_process_publications_controller.rb
328
- - app/controllers/decidim/admin/participatory_process_step_activations_controller.rb
329
- - app/controllers/decidim/admin/participatory_process_step_ordering_controller.rb
330
- - app/controllers/decidim/admin/participatory_process_steps_controller.rb
331
- - app/controllers/decidim/admin/participatory_process_user_roles_controller.rb
332
- - app/controllers/decidim/admin/participatory_processes_controller.rb
333
322
  - app/controllers/decidim/admin/scope_types_controller.rb
334
323
  - app/controllers/decidim/admin/scopes_controller.rb
335
324
  - app/controllers/decidim/admin/static_pages_controller.rb
@@ -343,11 +332,6 @@ files:
343
332
  - app/forms/decidim/admin/managed_user_promotion_form.rb
344
333
  - app/forms/decidim/admin/newsletter_form.rb
345
334
  - app/forms/decidim/admin/organization_form.rb
346
- - app/forms/decidim/admin/participatory_process_copy_form.rb
347
- - app/forms/decidim/admin/participatory_process_form.rb
348
- - app/forms/decidim/admin/participatory_process_group_form.rb
349
- - app/forms/decidim/admin/participatory_process_step_form.rb
350
- - app/forms/decidim/admin/participatory_process_user_role_form.rb
351
335
  - app/forms/decidim/admin/permission_form.rb
352
336
  - app/forms/decidim/admin/permissions_form.rb
353
337
  - app/forms/decidim/admin/scope_form.rb
@@ -358,8 +342,6 @@ files:
358
342
  - app/helpers/decidim/admin/exports_helper.rb
359
343
  - app/helpers/decidim/admin/icon_link_helper.rb
360
344
  - app/helpers/decidim/admin/menu_helper.rb
361
- - app/helpers/decidim/admin/process_groups_for_select_helper.rb
362
- - app/helpers/decidim/admin/processes_for_select_helper.rb
363
345
  - app/helpers/decidim/admin/scopes_helper.rb
364
346
  - app/helpers/decidim/admin/settings_helper.rb
365
347
  - app/jobs/decidim/admin/application_job.rb
@@ -374,7 +356,6 @@ files:
374
356
  - app/models/decidim/admin/abilities/participatory_process_moderator_ability.rb
375
357
  - app/models/decidim/admin/abilities/user_manager_ability.rb
376
358
  - app/models/decidim/admin/application_record.rb
377
- - app/queries/decidim/admin/process_admins.rb
378
359
  - app/queries/decidim/admin/user_groups_evaluation.rb
379
360
  - app/views/decidim/admin/attachments/_form.html.erb
380
361
  - app/views/decidim/admin/attachments/edit.html.erb
@@ -414,26 +395,6 @@ files:
414
395
  - app/views/decidim/admin/newsletters/show.html.erb
415
396
  - app/views/decidim/admin/organization/_form.html.erb
416
397
  - app/views/decidim/admin/organization/edit.html.erb
417
- - app/views/decidim/admin/participatory_process_copies/_form.html.erb
418
- - app/views/decidim/admin/participatory_process_copies/new.html.erb
419
- - app/views/decidim/admin/participatory_process_groups/_form.html.erb
420
- - app/views/decidim/admin/participatory_process_groups/edit.html.erb
421
- - app/views/decidim/admin/participatory_process_groups/index.html.erb
422
- - app/views/decidim/admin/participatory_process_groups/new.html.erb
423
- - app/views/decidim/admin/participatory_process_groups/show.html.erb
424
- - app/views/decidim/admin/participatory_process_steps/_form.html.erb
425
- - app/views/decidim/admin/participatory_process_steps/edit.html.erb
426
- - app/views/decidim/admin/participatory_process_steps/index.html.erb
427
- - app/views/decidim/admin/participatory_process_steps/new.html.erb
428
- - app/views/decidim/admin/participatory_process_steps/show.html.erb
429
- - app/views/decidim/admin/participatory_process_user_roles/_form.html.erb
430
- - app/views/decidim/admin/participatory_process_user_roles/edit.html.erb
431
- - app/views/decidim/admin/participatory_process_user_roles/index.html.erb
432
- - app/views/decidim/admin/participatory_process_user_roles/new.html.erb
433
- - app/views/decidim/admin/participatory_processes/_form.html.erb
434
- - app/views/decidim/admin/participatory_processes/edit.html.erb
435
- - app/views/decidim/admin/participatory_processes/index.html.erb
436
- - app/views/decidim/admin/participatory_processes/new.html.erb
437
398
  - app/views/decidim/admin/scope_types/_form.html.erb
438
399
  - app/views/decidim/admin/scope_types/edit.html.erb
439
400
  - app/views/decidim/admin/scope_types/index.html.erb
@@ -461,12 +422,8 @@ files:
461
422
  - app/views/layouts/decidim/admin/login.html.erb
462
423
  - app/views/layouts/decidim/admin/newsletters.erb
463
424
  - app/views/layouts/decidim/admin/pages.html.erb
464
- - app/views/layouts/decidim/admin/participatory_process.html.erb
465
- - app/views/layouts/decidim/admin/participatory_process_groups.html.erb
466
- - app/views/layouts/decidim/admin/participatory_processes.html.erb
467
425
  - app/views/layouts/decidim/admin/settings.html.erb
468
426
  - app/views/layouts/decidim/admin/users.html.erb
469
- - config/i18n-tasks.yml
470
427
  - config/locales/ca.yml
471
428
  - config/locales/en.yml
472
429
  - config/locales/es.yml
@@ -476,6 +433,7 @@ files:
476
433
  - config/locales/it.yml
477
434
  - config/locales/nl.yml
478
435
  - config/locales/pl.yml
436
+ - config/locales/uk.yml
479
437
  - config/routes.rb
480
438
  - db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
481
439
  - db/migrate/20170128112958_change_user_groups_verified_to_timestamp.rb
@@ -483,7 +441,12 @@ files:
483
441
  - lib/decidim/admin.rb
484
442
  - lib/decidim/admin/engine.rb
485
443
  - lib/decidim/admin/features.rb
444
+ - lib/decidim/admin/test/commands/create_category_examples.rb
445
+ - lib/decidim/admin/test/commands/destroy_category_examples.rb
446
+ - lib/decidim/admin/test/commands/update_category_examples.rb
447
+ - lib/decidim/admin/test/forms/category_form_examples.rb
486
448
  - lib/decidim/admin/test/manage_attachments_examples.rb
449
+ - lib/decidim/admin/test/manage_feature_permissions_examples.rb
487
450
  - vendor/assets/javascripts/html.sortable.js
488
451
  - vendor/assets/javascripts/moment.min.js
489
452
  homepage: https://github.com/decidim/decidim