decidim-admin 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of decidim-admin might be problematic. Click here for more details.

Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/app/commands/decidim/admin/publish_participatory_process.rb +1 -5
  3. data/app/commands/decidim/admin/unpublish_participatory_process.rb +1 -5
  4. data/app/controllers/decidim/admin/application_controller.rb +1 -1
  5. data/app/controllers/decidim/admin/exports_controller.rb +2 -9
  6. data/app/controllers/decidim/admin/feature_permissions_controller.rb +1 -1
  7. data/app/controllers/decidim/admin/features/base_controller.rb +3 -2
  8. data/app/controllers/decidim/admin/features_controller.rb +2 -2
  9. data/app/controllers/decidim/admin/participatory_process_groups_controller.rb +2 -1
  10. data/app/controllers/decidim/admin/participatory_processes_controller.rb +6 -2
  11. data/app/forms/decidim/admin/participatory_process_copy_form.rb +1 -1
  12. data/app/forms/decidim/admin/participatory_process_form.rb +1 -1
  13. data/app/helpers/decidim/admin/process_groups_for_select_helper.rb +1 -1
  14. data/app/helpers/decidim/admin/processes_for_select_helper.rb +1 -1
  15. data/app/helpers/decidim/admin/{feature_settings_helper.rb → settings_helper.rb} +2 -2
  16. data/app/models/decidim/admin/abilities/participatory_process_admin_ability.rb +2 -2
  17. data/app/views/decidim/admin/attachments/index.html.erb +1 -1
  18. data/app/views/decidim/admin/categories/index.html.erb +1 -1
  19. data/app/views/decidim/admin/exports/_dropdown.html.erb +1 -1
  20. data/app/views/decidim/admin/features/_feature.html.erb +2 -2
  21. data/app/views/decidim/admin/features/edit.html.erb +1 -1
  22. data/app/views/decidim/admin/features/index.html.erb +1 -1
  23. data/app/views/decidim/admin/features/new.html.erb +1 -1
  24. data/app/views/decidim/admin/participatory_process_groups/show.html.erb +1 -1
  25. data/app/views/decidim/admin/participatory_process_steps/index.html.erb +2 -2
  26. data/app/views/decidim/admin/participatory_process_steps/new.html.erb +0 -1
  27. data/app/views/decidim/admin/participatory_process_user_roles/index.html.erb +1 -1
  28. data/app/views/decidim/admin/participatory_process_user_roles/new.html.erb +6 -6
  29. data/app/views/decidim/admin/participatory_processes/new.html.erb +0 -1
  30. data/app/views/layouts/decidim/admin/participatory_process.html.erb +2 -2
  31. data/config/locales/ca.yml +7 -14
  32. data/config/locales/en.yml +7 -14
  33. data/config/locales/es.yml +7 -14
  34. data/config/locales/eu.yml +9 -15
  35. data/config/locales/fi.yml +7 -12
  36. data/config/locales/fr.yml +9 -15
  37. data/config/locales/it.yml +9 -15
  38. data/config/routes.rb +9 -7
  39. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d2545910a88cea0b28b704cb1477f237be726d98
4
- data.tar.gz: a2028b69735ac289d74a1ad19d4ff048138b4965
3
+ metadata.gz: 9c0d4b42e8b84fba4a3a14ccad8d9c70eed4f10d
4
+ data.tar.gz: af8756ad81565a4344864c15991586ec9dfcaf07
5
5
  SHA512:
6
- metadata.gz: 352c16ff07566b2d5fb01852db9e0dbfa326b755e3c46f32eaecae965ec6e11a8b97326b1ae3a31139e6ab049cb150750768c728c27a8732bb42c11c5c5a2a3c
7
- data.tar.gz: 19e573d508116d36c0bd164490b1170029920c5cfb52006e6d4002140a07a28e264ae463d0e04e383a29e0890c841b27379909d376672c7ee2f09155d0ac046c
6
+ metadata.gz: b8fa320e0f63c0fcbf30e1f93e6f10955e53aa38c33f18f37b9acbee05f67e583ee91f9d9b2542d90f59178175e5f7eb80930c2c26c7e763091f9fdc9162cbe1
7
+ data.tar.gz: b76ae9721bf791470141d73c29c720c37791843156c8d9bc26cf536d5c48486e3be3208b3a64e8a956780b7f2e3c4d7cd9898e079dd9c1397dd86908b6e976da
@@ -20,17 +20,13 @@ module Decidim
20
20
  def call
21
21
  return broadcast(:invalid) if process.nil? || process.published?
22
22
 
23
- publish_process
23
+ process.publish!
24
24
  broadcast(:ok)
25
25
  end
26
26
 
27
27
  private
28
28
 
29
29
  attr_reader :process
30
-
31
- def publish_process
32
- process.update_attribute(:published_at, Time.current)
33
- end
34
30
  end
35
31
  end
36
32
  end
@@ -20,17 +20,13 @@ module Decidim
20
20
  def call
21
21
  return broadcast(:invalid) if process.nil? || !process.published?
22
22
 
23
- unpublish_process
23
+ process.unpublish!
24
24
  broadcast(:ok)
25
25
  end
26
26
 
27
27
  private
28
28
 
29
29
  attr_reader :process
30
-
31
- def unpublish_process
32
- process.update_attribute(:published_at, nil)
33
- end
34
30
  end
35
31
  end
36
32
  end
@@ -12,7 +12,7 @@ module Decidim
12
12
 
13
13
  helper Decidim::Admin::ApplicationHelper
14
14
  helper Decidim::Admin::AttributesDisplayHelper
15
- helper Decidim::Admin::FeatureSettingsHelper
15
+ helper Decidim::Admin::SettingsHelper
16
16
  helper Decidim::Admin::ProcessGroupsForSelectHelper
17
17
  helper Decidim::Admin::ProcessesForSelectHelper
18
18
  helper Decidim::Admin::IconLinkHelper
@@ -5,6 +5,7 @@ module Decidim
5
5
  # This controller allows admins to manage proposals in a participatory process.
6
6
  class ExportsController < ApplicationController
7
7
  include Concerns::ParticipatoryProcessAdmin
8
+ include Decidim::FeaturePathHelper
8
9
 
9
10
  def create
10
11
  authorize! :manage, feature
@@ -14,19 +15,11 @@ module Decidim
14
15
 
15
16
  flash[:notice] = t("decidim.admin.exports.notice")
16
17
 
17
- redirect_back(fallback_location: fallback_location)
18
+ redirect_back(fallback_location: manage_feature_path(feature))
18
19
  end
19
20
 
20
21
  private
21
22
 
22
- def fallback_location
23
- send(
24
- "decidim_admin_#{feature.manifest.name}_path",
25
- feature_id: feature.id,
26
- participatory_process_id: current_participatory_process.id
27
- )
28
- end
29
-
30
23
  def default_format
31
24
  "json"
32
25
  end
@@ -22,7 +22,7 @@ module Decidim
22
22
  UpdateFeaturePermissions.call(@permissions_form, feature) do
23
23
  on(:ok) do
24
24
  flash[:notice] = t("feature_permissions.update.success", scope: "decidim.admin")
25
- redirect_to participatory_process_features_path(current_participatory_process)
25
+ redirect_to features_path(current_participatory_process)
26
26
  end
27
27
 
28
28
  on(:invalid) do
@@ -8,8 +8,9 @@ module Decidim
8
8
  class BaseController < Admin::ApplicationController
9
9
  skip_authorize_resource
10
10
  include Concerns::ParticipatoryProcessAdmin
11
- include FeatureSettings
11
+ include Settings
12
12
 
13
+ helper Decidim::ResourceHelper
13
14
  helper Decidim::Admin::ExportsHelper
14
15
 
15
16
  helper_method :current_feature,
@@ -30,7 +31,7 @@ module Decidim
30
31
  end
31
32
 
32
33
  def parent_path
33
- decidim_admin.participatory_process_features_path(current_participatory_process)
34
+ decidim_admin.features_path(current_participatory_process)
34
35
  end
35
36
  end
36
37
  end
@@ -91,7 +91,7 @@ module Decidim
91
91
  @feature = query_scope.find(params[:id])
92
92
  authorize! :update, @feature
93
93
 
94
- @feature.update_attribute(:published_at, Time.current)
94
+ @feature.publish!
95
95
 
96
96
  flash[:notice] = I18n.t("features.publish.success", scope: "decidim.admin")
97
97
  redirect_to action: :index
@@ -101,7 +101,7 @@ module Decidim
101
101
  @feature = query_scope.find(params[:id])
102
102
  authorize! :update, @feature
103
103
 
104
- @feature.update_attribute(:published_at, nil)
104
+ @feature.unpublish!
105
105
 
106
106
  flash[:notice] = I18n.t("features.unpublish.success", scope: "decidim.admin")
107
107
  redirect_to action: :index
@@ -78,7 +78,8 @@ module Decidim
78
78
  end
79
79
 
80
80
  def collection
81
- @collection ||= current_user.organization.participatory_process_groups
81
+ @collection ||=
82
+ Decidim::OrganizationParticipatoryProcessGroups.new(current_user.organization).query
82
83
  end
83
84
  end
84
85
  end
@@ -75,16 +75,20 @@ module Decidim
75
75
  authorize! :create, Decidim::ParticipatoryProcess
76
76
  end
77
77
 
78
+ private
79
+
78
80
  def current_participatory_process
79
81
  @current_participatory_process ||= collection.find(params[:id]) if params[:id]
80
82
  end
81
83
 
82
- private
83
-
84
84
  def collection
85
85
  @collection ||= Decidim::ParticipatoryProcessesWithUserRole.for(current_user)
86
86
  end
87
87
 
88
+ def ability_context
89
+ super.merge(current_participatory_process: current_participatory_process)
90
+ end
91
+
88
92
  def participatory_process_params
89
93
  {
90
94
  id: params[:id],
@@ -24,7 +24,7 @@ module Decidim
24
24
  private
25
25
 
26
26
  def slug_uniqueness
27
- return unless current_organization.participatory_processes.where(slug: slug).where.not(id: id).any?
27
+ return unless OrganizationParticipatoryProcesses.new(current_organization).query.where(slug: slug).where.not(id: id).any?
28
28
 
29
29
  errors.add(:slug, :taken)
30
30
  end
@@ -58,7 +58,7 @@ module Decidim
58
58
  private
59
59
 
60
60
  def slug_uniqueness
61
- return unless current_organization.participatory_processes.where(slug: slug).where.not(id: id).any?
61
+ return unless OrganizationParticipatoryProcesses.new(current_organization).query.where(slug: slug).where.not(id: id).any?
62
62
 
63
63
  errors.add(:slug, :taken)
64
64
  end
@@ -12,7 +12,7 @@ module Decidim
12
12
  # Returns an Array.
13
13
  def process_groups_for_select
14
14
  @process_groups_for_select ||=
15
- current_organization.participatory_process_groups.map do |group|
15
+ OrganizationParticipatoryProcessGroups.new(current_organization).map do |group|
16
16
  [translated_attribute(group.name), group.id]
17
17
  end
18
18
  end
@@ -11,7 +11,7 @@ module Decidim
11
11
  #
12
12
  # Returns an Array.
13
13
  def processes_for_select
14
- @processes_for_select ||= current_organization.participatory_processes.map do |process|
14
+ @processes_for_select ||= OrganizationParticipatoryProcesses.new(current_organization).map do |process|
15
15
  [
16
16
  translated_attribute(process.title),
17
17
  process.id
@@ -4,7 +4,7 @@ module Decidim
4
4
  module Admin
5
5
  # This class contains helpers needed in order for feature settings to
6
6
  # properly render.
7
- module FeatureSettingsHelper
7
+ module SettingsHelper
8
8
  TYPES = {
9
9
  boolean: :check_box,
10
10
  integer: :number_field,
@@ -16,7 +16,7 @@ module Decidim
16
16
  # type.
17
17
  #
18
18
  # form - The form in which to render the field.
19
- # attribute - The FeatureSettings::Attribute instance with the
19
+ # attribute - The Settings::Attribute instance with the
20
20
  # description of the attribute.
21
21
  # name - The name of the field.
22
22
  # options - Extra options to be passed to the field helper.
@@ -5,8 +5,8 @@ module Decidim
5
5
  module Abilities
6
6
  # Defines the abilities for a participatory process admin in the admin
7
7
  # section. Intended to be used with `cancancan`. This is not intended to
8
- # extend the base `Decidim::Ability` class, it should only be used in the
9
- # Admin engine.
8
+ # extend the base `Decidim::Abilities::BaseAbility` class, it should only
9
+ # be used in the Admin engine.
10
10
  #
11
11
  # This ability will not apply to organization admins.
12
12
  class ParticipatoryProcessAdminAbility < Decidim::Abilities::ParticipatoryProcessAdminAbility
@@ -1,7 +1,7 @@
1
1
  <div class='card' id="attachments">
2
2
  <div class="card-divider">
3
3
  <h2 class="card-title">
4
- <%= t(".attachments_title", scope: "decidim.admin") %>
4
+ <%= t(".attachments_title") %>
5
5
  <% if can? :create, authorization_object %>
6
6
  <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.attachment.name", scope: "decidim.admin")), url_for(action: :new), class: 'button tiny button--title new' %>
7
7
  <% end %>
@@ -1,7 +1,7 @@
1
1
  <div class="card" id="categories">
2
2
  <div class="card-divider">
3
3
  <h2 class='card-title'>
4
- <%= t(".categories_title", scope: "decidim.admin") %>
4
+ <%= t(".categories_title") %>
5
5
  <% if can? :create, Decidim::Category %>
6
6
  <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.category.name", scope: "decidim.admin")), new_participatory_process_category_path(current_participatory_process), class: 'button tiny button--title new' %>
7
7
  <% end %>
@@ -3,7 +3,7 @@
3
3
  <ul class="vertical menu add-features">
4
4
  <% feature.manifest.export_manifests.each do |manifest| %>
5
5
  <% %w{csv json}.each do |format| %>
6
- <li class="exports--format--<%= format %> exports--<%= manifest.name %>"><%= link_to t("decidim.admin.exports.export_as", name: t("decidim.#{feature.manifest.name}.admin.exports.#{manifest.name}"), export_format: format.upcase), decidim_admin.participatory_process_feature_exports_path(feature_id: feature, participatory_process_id: feature.participatory_process, format: format, id: manifest.name), method: :post %></li>
6
+ <li class="exports--format--<%= format %> exports--<%= manifest.name %>"><%= link_to t("decidim.admin.exports.export_as", name: t("decidim.#{feature.manifest.name}.admin.exports.#{manifest.name}"), export_format: format.upcase), decidim_admin.feature_exports_path(feature_id: feature, participatory_process_id: feature.participatory_process, format: format, id: manifest.name), method: :post %></li>
7
7
  <% end %>
8
8
  <% end %>
9
9
  </ul>
@@ -1,6 +1,6 @@
1
1
  <tr class="feature-<%= feature.id %>">
2
2
  <td>
3
- <%= link_to feature_path(feature), target: "_blank" do %>
3
+ <%= link_to main_feature_path(feature), target: "_blank" do %>
4
4
  <%= translated_attribute feature.name %>
5
5
  <% end %>
6
6
  </td>
@@ -28,7 +28,7 @@
28
28
  <% if feature.manifest.actions.empty? %>
29
29
  <%= icon "key", class: "action-icon action-icon--disabled" %>
30
30
  <% else %>
31
- <%= icon_link_to "key", edit_participatory_process_feature_permissions_path(feature_id: feature), t("actions.permissions", scope: "decidim.admin"), class: "action-icon--permissions" %>
31
+ <%= icon_link_to "key", url_for(action: :edit, feature_id: feature, controller: "feature_permissions"), t("actions.permissions", scope: "decidim.admin"), class: "action-icon--permissions" %>
32
32
  <% end %>
33
33
  <% end %>
34
34
 
@@ -1,4 +1,4 @@
1
- <%= decidim_form_for([current_participatory_process, @form], url: participatory_process_feature_path(current_participatory_process, @feature), method: "put", html: { class: "form edit_feature" }) do |form| %>
1
+ <%= decidim_form_for([current_participatory_process, @form], url: feature_path(current_participatory_process, @feature), method: "put", html: { class: "form edit_feature" }) do |form| %>
2
2
  <%= render partial: 'form', object: form, locals: { feature: @feature, title: t(".title", name: t("#{@feature.manifest.name}.name", scope: "decidim.features"))} %>
3
3
 
4
4
  <div class="button--double form-general-submit">
@@ -6,7 +6,7 @@
6
6
  <div class="dropdown-pane" id="add-feature-dropdown" data-dropdown data-auto-focus="true" data-close-on-click="true">
7
7
  <ul class="vertical menu add-features">
8
8
  <% @manifests.each do |manifest| %>
9
- <li><%= link_to t("#{manifest.name}.name", scope: "decidim.features"), new_participatory_process_feature_path(type: manifest.name), class: manifest.name %></li>
9
+ <li><%= link_to t("#{manifest.name}.name", scope: "decidim.features"), new_feature_path(type: manifest.name), class: manifest.name %></li>
10
10
  <% end %>
11
11
  </ul>
12
12
  </div>
@@ -1,5 +1,5 @@
1
1
 
2
- <%= decidim_form_for([current_participatory_process, @form], url: participatory_process_features_path(type: params[:type]), method: "post", html: { class: "form new_feature" }) do |form| %>
2
+ <%= decidim_form_for([current_participatory_process, @form], url: features_path(type: params[:type]), method: "post", html: { class: "form new_feature" }) do |form| %>
3
3
  <%= render partial: 'form', object: form, locals: { feature: @feature, title: t(".title", name: t("#{manifest.name}.name", scope: "decidim.features"))} %>
4
4
 
5
5
  <div class="button--double form-general-submit">
@@ -3,7 +3,7 @@
3
3
  :name,
4
4
  :description
5
5
  %>
6
-
6
+
7
7
  <dt><%= display_label(participatory_process_group, :participatory_processes) %></dt>
8
8
  <% if participatory_process_group.participatory_processes.any? %>
9
9
  <dd>
@@ -1,7 +1,7 @@
1
1
  <div class="card" id="steps">
2
2
  <div class="card-divider">
3
3
  <h2 class="card-title">
4
- <%= t(".steps_title", scope: "decidim.admin") %>
4
+ <%= t(".steps_title") %>
5
5
  <% if can? :create, Decidim::ParticipatoryProcessStep %>
6
6
  <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.participatory_process_step.name", scope: "decidim.admin")), new_participatory_process_step_path(current_participatory_process), class: 'button tiny button--title' %>
7
7
  <% end %>
@@ -60,4 +60,4 @@
60
60
  <% end %>
61
61
  </div>
62
62
  </div>
63
- </div>
63
+ </div>
@@ -5,4 +5,3 @@
5
5
  <%= f.submit t(".create") %>
6
6
  </div>
7
7
  <% end %>
8
-
@@ -1,7 +1,7 @@
1
1
  <div class='card' id="process_admins">
2
2
  <div class="card-divider">
3
3
  <h2 class="card-title">
4
- <%= t(".process_admins_title", scope: "decidim.admin") %>
4
+ <%= t(".process_admins_title") %>
5
5
  <% if can? :create, Decidim::ParticipatoryProcessUserRole %>
6
6
  <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.participatory_process_user_role.name", scope: "decidim.admin")), new_participatory_process_user_role_path(current_participatory_process), class: 'button tiny button--title new' %>
7
7
  <% end %>
@@ -1,7 +1,7 @@
1
- <%= decidim_form_for(@form, html: { class: "form new_participatory_process_user_role" }) do |f| %>
2
- <%= render partial: 'form', object: f, locals: { title: t('.title') } %>
1
+ <%= decidim_form_for(@form, html: { class: "form new_participatory_process_user_role" }) do |f| %>
2
+ <%= render partial: 'form', object: f, locals: { title: t('.title') } %>
3
3
 
4
- <div class="button--double form-general-submit">
5
- <%= f.submit t(".create") %>
6
- </div>
7
- <% end %>
4
+ <div class="button--double form-general-submit">
5
+ <%= f.submit t(".create") %>
6
+ </div>
7
+ <% end %>
@@ -9,4 +9,3 @@
9
9
  <%= f.submit t(".create") %>
10
10
  </div>
11
11
  <% end %>
12
-
@@ -12,8 +12,8 @@
12
12
  </li>
13
13
  <% end %>
14
14
  <% if can? :read, Decidim::Feature %>
15
- <li <% if is_active_link?(decidim_admin.participatory_process_features_path(current_participatory_process)) %> class="is-active" <% end %>>
16
- <%= aria_selected_link_to t("features", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin.participatory_process_features_path(current_participatory_process) %>
15
+ <li <% if is_active_link?(decidim_admin.features_path(current_participatory_process)) %> class="is-active" <% end %>>
16
+ <%= aria_selected_link_to t("features", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin.features_path(current_participatory_process) %>
17
17
  <ul>
18
18
  <% current_participatory_process.features.each do |feature| %>
19
19
  <% if feature.manifest.admin_engine %>
@@ -139,6 +139,8 @@ ca:
139
139
  edit:
140
140
  title: Edita arxiu adjunt
141
141
  update: Actualitzar
142
+ index:
143
+ attachments_title: Adjunts
142
144
  new:
143
145
  create: Crea arxiu adjunt
144
146
  title: Nou arxiu adjunt
@@ -156,6 +158,7 @@ ca:
156
158
  title: Edita categoria
157
159
  update: Actualitzar
158
160
  index:
161
+ categories_title: Categories
159
162
  category_used: Aquesta categoria no es pot suprimir perquè és en ús.
160
163
  new:
161
164
  create: Crea una categoria
@@ -166,20 +169,6 @@ ca:
166
169
  dashboard:
167
170
  show:
168
171
  welcome: Benvingut al nou panell d'administració de Decidim.
169
- decidim:
170
- admin:
171
- attachments:
172
- index:
173
- attachments_title: Adjunts
174
- categories:
175
- index:
176
- categories_title: Categories
177
- participatory_process_steps:
178
- index:
179
- steps_title: Fases
180
- participatory_process_user_roles:
181
- index:
182
- process_admins_title: Usuaris del procés participatiu
183
172
  exports:
184
173
  export_as: "%{name} com a %{export_format}"
185
174
  notice: La teva exportació està actualment en curs. Rebràs un correu electrònic quan hagi finalitzat.
@@ -402,6 +391,8 @@ ca:
402
391
  edit:
403
392
  title: Editar fase de procés participatiu
404
393
  update: Actualitzar
394
+ index:
395
+ steps_title: Fases del procés
405
396
  new:
406
397
  create: Crear
407
398
  title: Nova fase de procés participatiu
@@ -419,6 +410,8 @@ ca:
419
410
  edit:
420
411
  title: Editar usuari de procés participatiu.
421
412
  update: Actualitzar
413
+ index:
414
+ process_admins_title: Usuaris del procés participatiu
422
415
  new:
423
416
  create: Crear
424
417
  title: Nou usuari de procés participatiu.
@@ -140,6 +140,8 @@ en:
140
140
  edit:
141
141
  title: Edit attachment
142
142
  update: Update
143
+ index:
144
+ attachments_title: Attachments
143
145
  new:
144
146
  create: Create attachment
145
147
  title: New attachment
@@ -157,6 +159,7 @@ en:
157
159
  title: Edit category
158
160
  update: Update
159
161
  index:
162
+ categories_title: Categories
160
163
  category_used: This category cannot be removed because it is in use.
161
164
  new:
162
165
  create: Create category
@@ -167,20 +170,6 @@ en:
167
170
  dashboard:
168
171
  show:
169
172
  welcome: Welcome to the new Decidim Panel Admin.
170
- decidim:
171
- admin:
172
- attachments:
173
- index:
174
- attachments_title: Attachments
175
- categories:
176
- index:
177
- categories_title: Categories
178
- participatory_process_steps:
179
- index:
180
- steps_title: Steps
181
- participatory_process_user_roles:
182
- index:
183
- process_admins_title: Participatory process users
184
173
  exports:
185
174
  export_as: "%{name} as %{export_format}"
186
175
  notice: Your export is currently in progress. You'll receive an email when it's complete.
@@ -403,6 +392,8 @@ en:
403
392
  edit:
404
393
  title: Edit participatory process step
405
394
  update: Update
395
+ index:
396
+ steps_title: Steps
406
397
  new:
407
398
  create: Create
408
399
  title: New participatory process step
@@ -420,6 +411,8 @@ en:
420
411
  edit:
421
412
  title: Update participatory process user.
422
413
  update: Update
414
+ index:
415
+ process_admins_title: Participatory process users
423
416
  new:
424
417
  create: Create
425
418
  title: New participatory process user.
@@ -139,6 +139,8 @@ es:
139
139
  edit:
140
140
  title: Editar archivo adjunto
141
141
  update: Actualizar
142
+ index:
143
+ attachments_title: Archivos adjuntos
142
144
  new:
143
145
  create: Crear archivo adjunto
144
146
  title: Nuevo archivo adjunto
@@ -156,6 +158,7 @@ es:
156
158
  title: Editar categoría
157
159
  update: Actualizar
158
160
  index:
161
+ categories_title: Categorías
159
162
  category_used: Esta categoría no se puede eliminar porque está en uso.
160
163
  new:
161
164
  create: Crear categoría
@@ -166,20 +169,6 @@ es:
166
169
  dashboard:
167
170
  show:
168
171
  welcome: Bienvenido al nuevo panel de administración de Decidim.
169
- decidim:
170
- admin:
171
- attachments:
172
- index:
173
- attachments_title: Archivos adjuntos
174
- categories:
175
- index:
176
- categories_title: Categorías
177
- participatory_process_steps:
178
- index:
179
- steps_title: Fases
180
- participatory_process_user_roles:
181
- index:
182
- process_admins_title: Usuarios del proceso
183
172
  exports:
184
173
  export_as: "%{name} como %{export_format}"
185
174
  notice: Su exportación está actualmente en curso. Recibirá un correo electrónico cuando esté completo.
@@ -402,6 +391,8 @@ es:
402
391
  edit:
403
392
  title: Editar fase de proceso participativo
404
393
  update: Actualizar
394
+ index:
395
+ steps_title: Fases del proceso
405
396
  new:
406
397
  create: Crear
407
398
  title: Nuevo fase de proceso participativo
@@ -419,6 +410,8 @@ es:
419
410
  edit:
420
411
  title: Editar usuario del proceso
421
412
  update: Actualizar
413
+ index:
414
+ process_admins_title: Usuarios del proceso
422
415
  new:
423
416
  create: Crear
424
417
  title: Nuevo usuario del proceso
@@ -135,6 +135,8 @@ eu:
135
135
  edit:
136
136
  title: Editatu fitxategi erantsia
137
137
  update: Eguneratu
138
+ index:
139
+ attachments_title: Fitxategi erantsiak
138
140
  new:
139
141
  create: Sortu fitxategi erantsia
140
142
  title: Fitxategi erantsi berria
@@ -151,6 +153,8 @@ eu:
151
153
  edit:
152
154
  title: Editatu kategoria
153
155
  update: Eguneratu
156
+ index:
157
+ categories_title: Kategoriak
154
158
  new:
155
159
  create: Sortu kategoria
156
160
  title: Kategoria berria
@@ -160,20 +164,6 @@ eu:
160
164
  dashboard:
161
165
  show:
162
166
  welcome: Ongi etorri Decidim administrazio-panel berrira.
163
- decidim:
164
- admin:
165
- attachments:
166
- index:
167
- attachments_title: Fitxategi erantsiak
168
- categories:
169
- index:
170
- categories_title: Kategoriak
171
- participatory_process_steps:
172
- index:
173
- steps_title: Faseak
174
- participatory_process_user_roles:
175
- index:
176
- process_admins_title: Prozesu partizipatiboko erabiltzaileak
177
167
  exports:
178
168
  export_as: "%{name} honako hau gisa: %{export_format}"
179
169
  notice: Zure esportazioa bidean da. Mezu elektroniko bat jasoko duzu bukatutakoan.
@@ -387,6 +377,8 @@ eu:
387
377
  edit:
388
378
  title: Editatu prozesu partizipatiboaren fasea
389
379
  update: Eguneratu
380
+ index:
381
+ steps_title: Faseak
390
382
  new:
391
383
  create: Sortu
392
384
  title: Prozesu partizipatiboaren fase berria
@@ -404,6 +396,8 @@ eu:
404
396
  edit:
405
397
  title: Prozesu partizipatiboko erabiltzailea eguneratzea.
406
398
  update: Eguneratu
399
+ index:
400
+ process_admins_title: Prozesu partizipatiboko erabiltzaileak
407
401
  new:
408
402
  create: Sortu
409
403
  title: Partaidetza-prozesu berriko erabiltzailea.
@@ -530,4 +524,4 @@ eu:
530
524
  time:
531
525
  formats:
532
526
  datepicker: "%Y / %m / %d"
533
- timepicker: "%d/%m/%Y %H:%M"
527
+ timepicker: "%d/%m/%Y %H:%M"
@@ -111,6 +111,8 @@ fi:
111
111
  success: Liite tuhottu onnistuneesti.
112
112
  edit:
113
113
  title: Muokkaa liitettä
114
+ index:
115
+ attachments_title: Liitteet
114
116
  new:
115
117
  create: Luo liite
116
118
  title: Uusi liite
@@ -126,23 +128,14 @@ fi:
126
128
  success: Kategoria poistettu onnistuneesti.
127
129
  edit:
128
130
  title: Muokkaa kategoriaa
131
+ index:
132
+ categories_title: Kategoriat
129
133
  new:
130
134
  create: Luo kategoria
131
135
  title: Uusi kategoria
132
136
  update:
133
137
  error: Tämän kategorian luonnissa tapahtui virhe.
134
138
  success: Kategoria päivitetty onnistuneesti.
135
- decidim:
136
- admin:
137
- attachments:
138
- index:
139
- attachments_title: Liitteet
140
- categories:
141
- index:
142
- categories_title: Kategoriat
143
- participatory_process_steps:
144
- index:
145
- steps_title: Vaihe
146
139
  feature_permissions:
147
140
  edit:
148
141
  everyone: Kaikki
@@ -320,6 +313,8 @@ fi:
320
313
  success: Osallistumisprosessin vaihe tuhottu onnistuneesti.
321
314
  edit:
322
315
  title: Muokkaa osallistumisprosessin vaihetta
316
+ index:
317
+ steps_title: Vaihe
323
318
  new:
324
319
  title: Uusi osallistumisprosessin vaihe
325
320
  ordering:
@@ -415,4 +410,4 @@ fi:
415
410
  none: Ei ryhmää
416
411
  time:
417
412
  formats:
418
- timepicker: "%d/%m/%Y %H:%M"
413
+ timepicker: "%d/%m/%Y %H:%M"
@@ -133,6 +133,8 @@ fr:
133
133
  edit:
134
134
  title: Modifier le document lié
135
135
  update: Mettre à jour
136
+ index:
137
+ attachments_title: Pièces jointes
136
138
  new:
137
139
  create: Lier un document
138
140
  title: Nouveau document lié
@@ -149,6 +151,8 @@ fr:
149
151
  edit:
150
152
  title: Modifier la catégorie
151
153
  update: Mettre à jour
154
+ index:
155
+ categories_title: Catégories
152
156
  new:
153
157
  create: Créer une catégorie
154
158
  title: Nouvelle catégorie
@@ -158,20 +162,6 @@ fr:
158
162
  dashboard:
159
163
  show:
160
164
  welcome: Bienvenue dans le nouveau panneau d’administration Decidim.
161
- decidim:
162
- admin:
163
- attachments:
164
- index:
165
- attachments_title: Pièces jointes
166
- categories:
167
- index:
168
- categories_title: Catégories
169
- participatory_process_steps:
170
- index:
171
- steps_title: Etapes
172
- participatory_process_user_roles:
173
- index:
174
- process_admins_title: Administrateurs du processus participatifs
175
165
  feature_permissions:
176
166
  edit:
177
167
  everyone: Tout le monde
@@ -377,6 +367,8 @@ fr:
377
367
  edit:
378
368
  title: Modifier l'étape du processus participatif
379
369
  update: Mettre à jour
370
+ index:
371
+ steps_title: Etapes
380
372
  new:
381
373
  create: Créer
382
374
  title: Nouvelle étape du processus participatif
@@ -394,6 +386,8 @@ fr:
394
386
  edit:
395
387
  title: Mettre à jour l'utilisateur du processus participatif.
396
388
  update: Mettre à jour
389
+ index:
390
+ process_admins_title: Administrateurs du processus participatifs
397
391
  new:
398
392
  create: Créer
399
393
  title: Nouvel utilisateur de processus participatif.
@@ -516,4 +510,4 @@ fr:
516
510
  time:
517
511
  formats:
518
512
  datepicker: "%m / %j / %A"
519
- timepicker: "%d/%m/%Y %H:%M"
513
+ timepicker: "%d/%m/%Y %H:%M"
@@ -111,6 +111,8 @@ it:
111
111
  edit:
112
112
  title: Modifica allegato
113
113
  update: Aggiorna
114
+ index:
115
+ attachments_title: Allegati
114
116
  new:
115
117
  create: Crea allegato
116
118
  title: Nuovo allegato
@@ -127,6 +129,8 @@ it:
127
129
  edit:
128
130
  title: Modifica categoria
129
131
  update: Aggiorna
132
+ index:
133
+ categories_title: Categorie
130
134
  new:
131
135
  create: Crea nuova categoria
132
136
  title: Nuova categoria
@@ -136,20 +140,6 @@ it:
136
140
  dashboard:
137
141
  show:
138
142
  welcome: Benvenuto nel nuovo pannello di amministarzione.
139
- decidim:
140
- admin:
141
- attachments:
142
- index:
143
- attachments_title: Allegati
144
- categories:
145
- index:
146
- categories_title: Categorie
147
- participatory_process_steps:
148
- index:
149
- steps_title: Fasi
150
- participatory_process_user_roles:
151
- index:
152
- process_admins_title: Utenti del processo partecipativo.
153
143
  exports:
154
144
  export_as: "%{name} esporta come %{export_format}"
155
145
  notice: Export in fase di elaborazione. Riceverai un'email quando l'export sarà terminato.
@@ -347,6 +337,8 @@ it:
347
337
  edit:
348
338
  title: Modifica una fase del processo partecipativo.
349
339
  update: Aggiorna
340
+ index:
341
+ steps_title: Fasi
350
342
  new:
351
343
  create: Crea
352
344
  title: Nuova fase del processo partecipativo.
@@ -364,6 +356,8 @@ it:
364
356
  edit:
365
357
  title: Aggiornamento utente di un processo partecipativo.
366
358
  update: Aggiorna
359
+ index:
360
+ process_admins_title: Utenti del processo partecipativo.
367
361
  new:
368
362
  create: Crea
369
363
  title: Nuovo utente per un processo partecipativo.
@@ -482,4 +476,4 @@ it:
482
476
  settings:
483
477
  title: Impostazioni
484
478
  users:
485
- title: Utenti
479
+ title: Utenti
@@ -23,6 +23,15 @@ Decidim::Admin::Engine.routes.draw do
23
23
  end
24
24
  resources :attachments, controller: "participatory_process_attachments"
25
25
 
26
+ resources :moderations do
27
+ member do
28
+ put :unreport
29
+ put :hide
30
+ end
31
+ end
32
+ end
33
+
34
+ scope "/participatory_processes/:participatory_process_id" do
26
35
  resources :features do
27
36
  resource :permissions, controller: "feature_permissions"
28
37
  member do
@@ -31,13 +40,6 @@ Decidim::Admin::Engine.routes.draw do
31
40
  end
32
41
  resources :exports, only: :create
33
42
  end
34
-
35
- resources :moderations do
36
- member do
37
- put :unreport
38
- put :hide
39
- end
40
- end
41
43
  end
42
44
 
43
45
  scope "/participatory_processes/:participatory_process_id/features/:feature_id/manage" 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.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.4.3
21
+ version: 0.4.4
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.4.3
28
+ version: 0.4.4
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.4.3
161
+ version: 0.4.4
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.4.3
168
+ version: 0.4.4
169
169
  description: Organization administration to manage a single organization.
170
170
  email:
171
171
  - josepjaume@gmail.com
@@ -324,11 +324,11 @@ files:
324
324
  - app/helpers/decidim/admin/application_helper.rb
325
325
  - app/helpers/decidim/admin/attributes_display_helper.rb
326
326
  - app/helpers/decidim/admin/exports_helper.rb
327
- - app/helpers/decidim/admin/feature_settings_helper.rb
328
327
  - app/helpers/decidim/admin/icon_link_helper.rb
329
328
  - app/helpers/decidim/admin/menu_helper.rb
330
329
  - app/helpers/decidim/admin/process_groups_for_select_helper.rb
331
330
  - app/helpers/decidim/admin/processes_for_select_helper.rb
331
+ - app/helpers/decidim/admin/settings_helper.rb
332
332
  - app/jobs/decidim/admin/application_job.rb
333
333
  - app/jobs/decidim/admin/newsletter_delivery_job.rb
334
334
  - app/jobs/decidim/admin/newsletter_job.rb