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.
- checksums.yaml +4 -4
- data/README.md +0 -7
- data/app/assets/javascripts/decidim/admin/application.js.es6 +0 -1
- data/app/assets/stylesheets/decidim/admin/extra/_quill.scss +5 -0
- data/app/commands/decidim/admin/create_category.rb +4 -4
- data/app/commands/decidim/admin/create_feature.rb +7 -7
- data/app/commands/decidim/admin/create_managed_user.rb +0 -2
- data/app/commands/decidim/admin/update_organization.rb +1 -0
- data/app/controllers/decidim/admin/application_controller.rb +0 -2
- data/app/controllers/decidim/admin/categories_controller.rb +10 -10
- data/app/controllers/decidim/admin/exports_controller.rb +1 -2
- data/app/controllers/decidim/admin/feature_permissions_controller.rb +2 -3
- data/app/controllers/decidim/admin/features/base_controller.rb +9 -3
- data/app/controllers/decidim/admin/features_controller.rb +5 -7
- data/app/controllers/decidim/admin/moderations_controller.rb +5 -7
- data/app/controllers/decidim/admin/scopes_controller.rb +12 -10
- data/app/controllers/decidim/admin/users_controller.rb +1 -3
- data/app/forms/decidim/admin/category_form.rb +2 -2
- data/app/forms/decidim/admin/feature_form.rb +1 -18
- data/app/forms/decidim/admin/organization_form.rb +1 -0
- data/app/helpers/decidim/admin/exports_helper.rb +10 -0
- data/app/models/decidim/admin/abilities/admin_ability.rb +0 -3
- data/app/models/decidim/admin/abilities/participatory_process_admin_ability.rb +3 -3
- data/app/views/decidim/admin/attachments/edit.html.erb +1 -1
- data/app/views/decidim/admin/attachments/new.html.erb +1 -1
- data/app/views/decidim/admin/categories/edit.html.erb +2 -2
- data/app/views/decidim/admin/categories/index.html.erb +11 -11
- data/app/views/decidim/admin/categories/new.html.erb +3 -3
- data/app/views/decidim/admin/categories/show.html.erb +2 -2
- data/app/views/decidim/admin/exports/_dropdown.html.erb +1 -1
- data/app/views/decidim/admin/features/_form.html.erb +15 -15
- data/app/views/decidim/admin/features/edit.html.erb +1 -1
- data/app/views/decidim/admin/features/new.html.erb +1 -1
- data/app/views/decidim/admin/moderations/index.html.erb +2 -2
- data/app/views/decidim/admin/organization/_form.html.erb +5 -0
- data/app/views/decidim/admin/users/index.html.erb +1 -1
- data/config/locales/ca.yml +8 -195
- data/config/locales/en.yml +6 -197
- data/config/locales/es.yml +11 -198
- data/config/locales/eu.yml +95 -208
- data/config/locales/fi.yml +168 -123
- data/config/locales/fr.yml +114 -191
- data/config/locales/it.yml +150 -168
- data/config/locales/nl.yml +443 -0
- data/config/locales/pl.yml +444 -0
- data/config/locales/uk.yml +451 -0
- data/config/routes.rb +2 -46
- data/lib/decidim/admin/engine.rb +0 -14
- data/lib/decidim/admin/test/commands/create_category_examples.rb +62 -0
- data/lib/decidim/admin/test/commands/destroy_category_examples.rb +46 -0
- data/lib/decidim/admin/test/commands/update_category_examples.rb +65 -0
- data/lib/decidim/admin/test/forms/category_form_examples.rb +90 -0
- data/lib/decidim/admin/test/manage_attachments_examples.rb +2 -2
- data/lib/decidim/admin/test/manage_feature_permissions_examples.rb +41 -0
- metadata +27 -64
- data/app/assets/javascripts/decidim/admin/participatory_processes.js.es6 +0 -12
- data/app/commands/decidim/admin/activate_participatory_process_step.rb +0 -44
- data/app/commands/decidim/admin/copy_participatory_process.rb +0 -113
- data/app/commands/decidim/admin/create_participatory_process.rb +0 -78
- data/app/commands/decidim/admin/create_participatory_process_admin.rb +0 -93
- data/app/commands/decidim/admin/create_participatory_process_group.rb +0 -55
- data/app/commands/decidim/admin/create_participatory_process_step.rb +0 -47
- data/app/commands/decidim/admin/deactivate_participatory_process_step.rb +0 -36
- data/app/commands/decidim/admin/destroy_participatory_process_step.rb +0 -44
- data/app/commands/decidim/admin/publish_participatory_process.rb +0 -32
- data/app/commands/decidim/admin/reorder_participatory_process_steps.rb +0 -52
- data/app/commands/decidim/admin/unpublish_participatory_process.rb +0 -32
- data/app/commands/decidim/admin/update_participatory_process.rb +0 -74
- data/app/commands/decidim/admin/update_participatory_process_admin.rb +0 -41
- data/app/commands/decidim/admin/update_participatory_process_group.rb +0 -58
- data/app/commands/decidim/admin/update_participatory_process_step.rb +0 -49
- data/app/controllers/decidim/admin/concerns/participatory_process_admin.rb +0 -20
- data/app/controllers/decidim/admin/participatory_process_attachments_controller.rb +0 -25
- data/app/controllers/decidim/admin/participatory_process_copies_controller.rb +0 -33
- data/app/controllers/decidim/admin/participatory_process_groups_controller.rb +0 -86
- data/app/controllers/decidim/admin/participatory_process_publications_controller.rb +0 -43
- data/app/controllers/decidim/admin/participatory_process_step_activations_controller.rb +0 -37
- data/app/controllers/decidim/admin/participatory_process_step_ordering_controller.rb +0 -27
- data/app/controllers/decidim/admin/participatory_process_steps_controller.rb +0 -89
- data/app/controllers/decidim/admin/participatory_process_user_roles_controller.rb +0 -97
- data/app/controllers/decidim/admin/participatory_processes_controller.rb +0 -96
- data/app/forms/decidim/admin/participatory_process_copy_form.rb +0 -33
- data/app/forms/decidim/admin/participatory_process_form.rb +0 -69
- data/app/forms/decidim/admin/participatory_process_group_form.rb +0 -24
- data/app/forms/decidim/admin/participatory_process_step_form.rb +0 -35
- data/app/forms/decidim/admin/participatory_process_user_role_form.rb +0 -29
- data/app/helpers/decidim/admin/process_groups_for_select_helper.rb +0 -21
- data/app/helpers/decidim/admin/processes_for_select_helper.rb +0 -23
- data/app/queries/decidim/admin/process_admins.rb +0 -44
- data/app/views/decidim/admin/participatory_process_copies/_form.html.erb +0 -38
- data/app/views/decidim/admin/participatory_process_copies/new.html.erb +0 -7
- data/app/views/decidim/admin/participatory_process_groups/_form.html.erb +0 -17
- data/app/views/decidim/admin/participatory_process_groups/edit.html.erb +0 -19
- data/app/views/decidim/admin/participatory_process_groups/index.html.erb +0 -44
- data/app/views/decidim/admin/participatory_process_groups/new.html.erb +0 -13
- data/app/views/decidim/admin/participatory_process_groups/show.html.erb +0 -23
- data/app/views/decidim/admin/participatory_process_steps/_form.html.erb +0 -25
- data/app/views/decidim/admin/participatory_process_steps/edit.html.erb +0 -8
- data/app/views/decidim/admin/participatory_process_steps/index.html.erb +0 -63
- data/app/views/decidim/admin/participatory_process_steps/new.html.erb +0 -7
- data/app/views/decidim/admin/participatory_process_steps/show.html.erb +0 -18
- data/app/views/decidim/admin/participatory_process_user_roles/_form.html.erb +0 -22
- data/app/views/decidim/admin/participatory_process_user_roles/edit.html.erb +0 -7
- data/app/views/decidim/admin/participatory_process_user_roles/index.html.erb +0 -65
- data/app/views/decidim/admin/participatory_process_user_roles/new.html.erb +0 -7
- data/app/views/decidim/admin/participatory_processes/_form.html.erb +0 -101
- data/app/views/decidim/admin/participatory_processes/edit.html.erb +0 -19
- data/app/views/decidim/admin/participatory_processes/index.html.erb +0 -66
- data/app/views/decidim/admin/participatory_processes/new.html.erb +0 -11
- data/app/views/layouts/decidim/admin/participatory_process.html.erb +0 -64
- data/app/views/layouts/decidim/admin/participatory_process_groups.html.erb +0 -14
- data/app/views/layouts/decidim/admin/participatory_processes.html.erb +0 -14
- data/config/i18n-tasks.yml +0 -132
@@ -1,25 +0,0 @@
|
|
1
|
-
<div class="card">
|
2
|
-
<div class="card-divider">
|
3
|
-
<h2 class="card-title"><%= title %></h2>
|
4
|
-
</div>
|
5
|
-
|
6
|
-
<div class="card-section">
|
7
|
-
<div class="row column">
|
8
|
-
<%= form.translated :text_field, :title, autofocus: true %>
|
9
|
-
</div>
|
10
|
-
|
11
|
-
<div class="row column">
|
12
|
-
<%= form.translated :editor, :description, toolbar: :full, lines: 25 %>
|
13
|
-
</div>
|
14
|
-
|
15
|
-
<div class="row">
|
16
|
-
<div class="columns xlarge-6">
|
17
|
-
<%= form.date_field :start_date %>
|
18
|
-
</div>
|
19
|
-
|
20
|
-
<div class="columns xlarge-6">
|
21
|
-
<%= form.date_field :end_date %>
|
22
|
-
</div>
|
23
|
-
</div>
|
24
|
-
</div>
|
25
|
-
</div>
|
@@ -1,8 +0,0 @@
|
|
1
|
-
|
2
|
-
<%= decidim_form_for(@form, url: participatory_process_step_path(@participatory_process_step.participatory_process, @participatory_process_step), html: { class: "form edit_participatory_process_step" }) do |f| %>
|
3
|
-
<%= render partial: 'form', object: f, locals: { title: t('.title') } %>
|
4
|
-
|
5
|
-
<div class="button--double form-general-submit">
|
6
|
-
<%= f.submit t(".update") %>
|
7
|
-
</div>
|
8
|
-
<% end %>
|
@@ -1,63 +0,0 @@
|
|
1
|
-
<div class="card" id="steps">
|
2
|
-
<div class="card-divider">
|
3
|
-
<h2 class="card-title">
|
4
|
-
<%= t(".steps_title") %>
|
5
|
-
<% if can? :create, Decidim::ParticipatoryProcessStep %>
|
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
|
-
<% end %>
|
8
|
-
</h2>
|
9
|
-
</div>
|
10
|
-
|
11
|
-
<div class="card-section">
|
12
|
-
<div class="table-scroll">
|
13
|
-
<% if current_participatory_process.steps.any? %>
|
14
|
-
<table class="table-list">
|
15
|
-
<thead>
|
16
|
-
<tr>
|
17
|
-
<th><%= t("models.participatory_process_step.fields.title", scope: "decidim.admin") %></th>
|
18
|
-
<th><%= t("models.participatory_process_step.fields.start_date", scope: "decidim.admin") %></th>
|
19
|
-
<th><%= t("models.participatory_process_step.fields.end_date", scope: "decidim.admin") %></th>
|
20
|
-
<th class="actions"></th>
|
21
|
-
</tr>
|
22
|
-
</thead>
|
23
|
-
<tbody class="sortable" data-sort-url="<%= ordering_participatory_process_steps_path(current_participatory_process) %>">
|
24
|
-
<% current_participatory_process.steps.each do |step| %>
|
25
|
-
<tr data-id="<%= step.id %>">
|
26
|
-
<td>
|
27
|
-
<span class="table-list__actions"><%= icon("move", class: "action-icon") %></span>
|
28
|
-
<% if step.active? %>
|
29
|
-
<span class="icon-active"></span>
|
30
|
-
<% end %>
|
31
|
-
<%= link_to translated_attribute(step.title), edit_participatory_process_step_path(current_participatory_process, step) %><br />
|
32
|
-
</td>
|
33
|
-
<td>
|
34
|
-
<% if step.start_date %>
|
35
|
-
<%= l step.start_date.to_date, format: :long %>
|
36
|
-
<% end%>
|
37
|
-
</td>
|
38
|
-
<td>
|
39
|
-
<% if step.end_date %>
|
40
|
-
<%= l step.end_date.to_date, format: :long %>
|
41
|
-
<% end%>
|
42
|
-
</td>
|
43
|
-
<td class="table-list__actions">
|
44
|
-
<% if can?(:activate, step) && !step.active? %>
|
45
|
-
<%= icon_link_to "circle-check", participatory_process_step_activate_path(current_participatory_process, step), t("actions.activate", scope: "decidim.admin"), class: "action-icon--activate", method: :post %>
|
46
|
-
<% end %>
|
47
|
-
|
48
|
-
<% if can? :update, step %>
|
49
|
-
<%= icon_link_to "pencil", edit_participatory_process_step_path(current_participatory_process, step), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
|
50
|
-
<% end %>
|
51
|
-
|
52
|
-
<% if can? :destroy, step %>
|
53
|
-
<%= icon_link_to "circle-x", participatory_process_step_path(current_participatory_process, step), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
|
54
|
-
<% end %>
|
55
|
-
</td>
|
56
|
-
</tr>
|
57
|
-
<% end %>
|
58
|
-
</tbody>
|
59
|
-
</table>
|
60
|
-
<% end %>
|
61
|
-
</div>
|
62
|
-
</div>
|
63
|
-
</div>
|
@@ -1,7 +0,0 @@
|
|
1
|
-
<%= decidim_form_for(@form, html: { class: "form new_participatory_process_step" }) do |f| %>
|
2
|
-
<%= render partial: 'form', object: f, locals: { title: t('.title') } %>
|
3
|
-
|
4
|
-
<div class="button--double form-general-submit">
|
5
|
-
<%= f.submit t(".create") %>
|
6
|
-
</div>
|
7
|
-
<% end %>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<h3><%= translated_attribute(@participatory_process_step.title) %></h3>
|
2
|
-
|
3
|
-
<div class="actions">
|
4
|
-
<hr />
|
5
|
-
<%= link_to t("decidim.admin.actions.edit"), edit_participatory_process_step_path(participatory_process, @participatory_process_step) if can? :update, @participatory_process_step %>
|
6
|
-
<%= link_to t("decidim.admin.actions.destroy"), participatory_process_step_path(participatory_process, @participatory_process_step), method: :delete, class: "alert button", data: { confirm: t("decidim.admin.actions.confirm_destroy") } if can? :destroy, @participatory_process_step %>
|
7
|
-
</div>
|
8
|
-
|
9
|
-
<dl>
|
10
|
-
<%= display_for @participatory_process_step,
|
11
|
-
:title,
|
12
|
-
:description
|
13
|
-
%>
|
14
|
-
<dt><%= display_label(@participatory_process_step, :start_date) %></dt>
|
15
|
-
<dd><%= l @participatory_process_step.start_date, format: :short if @participatory_process_step.start_date.present? %></dd>
|
16
|
-
<dt><%= display_label(@participatory_process_step, :end_date) %></dt>
|
17
|
-
<dd><%= l @participatory_process_step.end_date, format: :short if @participatory_process_step.end_date.present? %></dd>
|
18
|
-
</dl>
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<div class="card">
|
2
|
-
<div class="card-divider">
|
3
|
-
<h2 class="card-title">
|
4
|
-
<%= title %>
|
5
|
-
</h2>
|
6
|
-
</div>
|
7
|
-
|
8
|
-
<div class="card-section">
|
9
|
-
<div class="row">
|
10
|
-
<div class="columns xlarge-4">
|
11
|
-
<%= form.text_field :name, readonly: @form.persisted? %>
|
12
|
-
</div>
|
13
|
-
<div class="columns xlarge-4">
|
14
|
-
<%= form.email_field :email, readonly: @form.persisted? %>
|
15
|
-
</div>
|
16
|
-
<div class="columns xlarge-4">
|
17
|
-
<%= form.label :role %>
|
18
|
-
<%= select :participatory_process_user_role, :role, @form.roles, include_blank: false %>
|
19
|
-
</div>
|
20
|
-
</div>
|
21
|
-
</div>
|
22
|
-
</div>
|
@@ -1,7 +0,0 @@
|
|
1
|
-
<%= decidim_form_for(@form, url: participatory_process_user_role_path(@user_role.participatory_process, @user_role), html: { class: "form edit_participatory_process_user_roles" }) do |f| %>
|
2
|
-
<%= render partial: 'form', object: f, locals: { title: t('.title') } %>
|
3
|
-
|
4
|
-
<div class="button--double form-general-submit">
|
5
|
-
<%= f.submit t(".update") %>
|
6
|
-
</div>
|
7
|
-
<% end %>
|
@@ -1,65 +0,0 @@
|
|
1
|
-
<div class='card' id="process_admins">
|
2
|
-
<div class="card-divider">
|
3
|
-
<h2 class="card-title">
|
4
|
-
<%= t(".process_admins_title") %>
|
5
|
-
<% if can? :create, Decidim::ParticipatoryProcessUserRole %>
|
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
|
-
<% end %>
|
8
|
-
</h2>
|
9
|
-
</div>
|
10
|
-
|
11
|
-
<div class="card-section">
|
12
|
-
<div class="table-scroll">
|
13
|
-
<table class="stack">
|
14
|
-
<thead>
|
15
|
-
<tr>
|
16
|
-
<th><%= t("models.participatory_process_user_role.fields.name", scope: "decidim.admin") %></th>
|
17
|
-
<th><%= t("models.participatory_process_user_role.fields.email", scope: "decidim.admin") %></th>
|
18
|
-
<th><%= t("models.user.fields.invitation_sent_at", scope: "decidim.admin") %></th>
|
19
|
-
<th><%= t("models.user.fields.invitation_accepted_at", scope: "decidim.admin") %></th>
|
20
|
-
<th><%= t("models.participatory_process_user_role.fields.role", scope: "decidim.admin") %></th>
|
21
|
-
<th class="actions"></th>
|
22
|
-
</tr>
|
23
|
-
</thead>
|
24
|
-
<tbody>
|
25
|
-
<% @participatory_process_user_roles.each do |role| %>
|
26
|
-
<tr>
|
27
|
-
<td>
|
28
|
-
<%= role.user.name %><br />
|
29
|
-
</td>
|
30
|
-
<td>
|
31
|
-
<%= role.user.email %><br />
|
32
|
-
</td>
|
33
|
-
<td>
|
34
|
-
<% if role.user.invitation_sent_at %>
|
35
|
-
<%= l role.user.invitation_sent_at, format: :short %>
|
36
|
-
<% end %>
|
37
|
-
</td>
|
38
|
-
<td>
|
39
|
-
<% if role.user.invitation_accepted_at %>
|
40
|
-
<%= l role.user.invitation_accepted_at, format: :short %>
|
41
|
-
<% end %>
|
42
|
-
</td>
|
43
|
-
<td>
|
44
|
-
<%= t("#{role.role}", scope: "decidim.admin.models.participatory_process_user_role.roles") %><br />
|
45
|
-
</td>
|
46
|
-
<td class="table-list__actions">
|
47
|
-
<% if can?(:invite, role) && role.user.invited_to_sign_up? %>
|
48
|
-
<%= icon_link_to "reload", resend_invitation_participatory_process_user_role_path(current_participatory_process, role), t("actions.resend_invitation", scope: "decidim.admin"), class: "resend-invitation", method: :post %>
|
49
|
-
<% end %>
|
50
|
-
|
51
|
-
<% if can? :update, role %>
|
52
|
-
<%= icon_link_to "pencil", edit_participatory_process_user_role_path(current_participatory_process, role), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
|
53
|
-
<% end %>
|
54
|
-
|
55
|
-
<% if can? :destroy, role %>
|
56
|
-
<%= icon_link_to "circle-x", participatory_process_user_role_path(current_participatory_process, role), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
|
57
|
-
<% end %>
|
58
|
-
</td>
|
59
|
-
</tr>
|
60
|
-
<% end %>
|
61
|
-
</tbody>
|
62
|
-
</table>
|
63
|
-
</div>
|
64
|
-
</div>
|
65
|
-
</div>
|
@@ -1,7 +0,0 @@
|
|
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
|
-
|
4
|
-
<div class="button--double form-general-submit">
|
5
|
-
<%= f.submit t(".create") %>
|
6
|
-
</div>
|
7
|
-
<% end %>
|
@@ -1,101 +0,0 @@
|
|
1
|
-
<div class="card">
|
2
|
-
<div class="card-divider">
|
3
|
-
<h2 class="card-title"><%= t ".title" %></h2>
|
4
|
-
</div>
|
5
|
-
|
6
|
-
<div class="card-section">
|
7
|
-
<div class="row column">
|
8
|
-
<%= form.translated :text_field, :title, autofocus: true %>
|
9
|
-
</div>
|
10
|
-
|
11
|
-
<div class="row column">
|
12
|
-
<%= form.translated :text_field, :subtitle %>
|
13
|
-
</div>
|
14
|
-
|
15
|
-
<div class="row">
|
16
|
-
<div class="columns xlarge-6">
|
17
|
-
<%= form.text_field :slug %>
|
18
|
-
</div>
|
19
|
-
|
20
|
-
<div class="columns xlarge-6">
|
21
|
-
<%= form.text_field :hashtag %>
|
22
|
-
</div>
|
23
|
-
</div>
|
24
|
-
|
25
|
-
<div class="row column">
|
26
|
-
<%= form.check_box :promoted %>
|
27
|
-
</div>
|
28
|
-
|
29
|
-
<div class="row column">
|
30
|
-
<%= form.translated :editor, :short_description %>
|
31
|
-
</div>
|
32
|
-
|
33
|
-
<div class="row column">
|
34
|
-
<%= form.translated :editor, :description, toolbar: :full, lines: 25 %>
|
35
|
-
</div>
|
36
|
-
|
37
|
-
<div class="row">
|
38
|
-
<div class="columns xlarge-6">
|
39
|
-
<%= form.upload :hero_image %>
|
40
|
-
</div>
|
41
|
-
|
42
|
-
<div class="columns xlarge-6">
|
43
|
-
<%= form.upload :banner_image %>
|
44
|
-
</div>
|
45
|
-
</div>
|
46
|
-
|
47
|
-
<div class="row">
|
48
|
-
<div class="columns xlarge-6">
|
49
|
-
<%= form.date_field :end_date %>
|
50
|
-
</div>
|
51
|
-
|
52
|
-
<div class="columns xlarge-6">
|
53
|
-
<%= form.translated :text_field, :meta_scope %>
|
54
|
-
</div>
|
55
|
-
</div>
|
56
|
-
|
57
|
-
<div class="row">
|
58
|
-
<div class="columns xlarge-6">
|
59
|
-
<%= form.translated :text_field, :developer_group %>
|
60
|
-
</div>
|
61
|
-
|
62
|
-
<div class="columns xlarge-6">
|
63
|
-
<%= form.translated :text_field, :local_area %>
|
64
|
-
</div>
|
65
|
-
</div>
|
66
|
-
|
67
|
-
<div class="row column">
|
68
|
-
<%= form.translated :text_field, :target %>
|
69
|
-
</div>
|
70
|
-
|
71
|
-
<div class="row column">
|
72
|
-
<%= form.check_box :scopes_enabled %>
|
73
|
-
</div>
|
74
|
-
|
75
|
-
<div class="row column">
|
76
|
-
<%= form.scopes_select :scope_id, prompt: t("decidim.scopes.global"), remote_path: decidim.scopes_search_path %>
|
77
|
-
</div>
|
78
|
-
|
79
|
-
<div class="row column">
|
80
|
-
<%= form.translated :text_field, :participatory_scope %>
|
81
|
-
</div>
|
82
|
-
|
83
|
-
<div class="row column">
|
84
|
-
<%= form.translated :text_field, :participatory_structure %>
|
85
|
-
</div>
|
86
|
-
|
87
|
-
<div class="row column">
|
88
|
-
<% if process_groups_for_select %>
|
89
|
-
<%= form.select :participatory_process_group_id, process_groups_for_select, prompt: I18n.t("decidim.participatory_processes.participatory_process_groups.none") %>
|
90
|
-
<% end %>
|
91
|
-
</div>
|
92
|
-
|
93
|
-
<div class="row column">
|
94
|
-
<%= form.check_box :show_statistics %>
|
95
|
-
</div>
|
96
|
-
|
97
|
-
<div class="row column">
|
98
|
-
<%= form.translated :editor, :announcement %>
|
99
|
-
</div>
|
100
|
-
</div>
|
101
|
-
</div>
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<%= decidim_form_for(@form, html: { class: "form edit_participatory_process" }) do |f| %>
|
2
|
-
<%= render partial: 'form', object: f %>
|
3
|
-
<div class="button--double form-general-submit">
|
4
|
-
<%= f.submit t(".update"), class: "button" %>
|
5
|
-
|
6
|
-
<% if can? :publish, current_participatory_process %>
|
7
|
-
<% if current_participatory_process.published? %>
|
8
|
-
<%= link_to t("actions.unpublish", scope: "decidim.admin"), participatory_process_publish_path(current_participatory_process), method: :delete, class: "button muted" %>
|
9
|
-
<% else %>
|
10
|
-
<%= link_to t("actions.publish", scope: "decidim.admin"), participatory_process_publish_path(current_participatory_process), method: :post, class: "button hollow" %>
|
11
|
-
<% end %>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<% if can? :destroy, current_participatory_process %>
|
15
|
-
<%= link_to t("decidim.admin.actions.destroy"), current_participatory_process, method: :delete, class: "alert button", data: { confirm: t("decidim.admin.actions.confirm_destroy") } %>
|
16
|
-
<% end %>
|
17
|
-
</div>
|
18
|
-
<% end %>
|
19
|
-
|
@@ -1,66 +0,0 @@
|
|
1
|
-
<div class="card" id="processes">
|
2
|
-
<div class="card-divider">
|
3
|
-
<h2 class="card-title">
|
4
|
-
<%= t "decidim.admin.titles.participatory_processes" %><%= link_to t("actions.new", scope: "decidim.admin", name: t("models.participatory_process.name", scope: "decidim.admin")), ['new', 'participatory_process'], class: 'button tiny button--title' if can? :create, Decidim::ParticipatoryProcess %>
|
5
|
-
</h2>
|
6
|
-
</div>
|
7
|
-
<div class="card-section">
|
8
|
-
<div class="table-scroll">
|
9
|
-
<table class="table-list">
|
10
|
-
<thead>
|
11
|
-
<tr>
|
12
|
-
<th><%= t("models.participatory_process.fields.title", scope: "decidim.admin") %></th>
|
13
|
-
<th><%= t("models.participatory_process.fields.created_at", scope: "decidim.admin") %></th>
|
14
|
-
<th class="table-list__actions"><%= t("models.participatory_process.fields.published", scope: "decidim.admin") %></th>
|
15
|
-
<th></th>
|
16
|
-
</tr>
|
17
|
-
</thead>
|
18
|
-
<tbody>
|
19
|
-
<% @participatory_processes.each do |process| %>
|
20
|
-
<tr>
|
21
|
-
<td>
|
22
|
-
<% if process.promoted? %>
|
23
|
-
<span data-tooltip class="icon-state icon-highlight" aria-haspopup="true" data-disable-hover="false" title="<%= t("models.participatory_process.fields.promoted", scope: "decidim.admin") %>">
|
24
|
-
<%= icon "star" %>
|
25
|
-
</span>
|
26
|
-
<% end %>
|
27
|
-
<% if can? :update, process %>
|
28
|
-
<%= link_to translated_attribute(process.title), edit_participatory_process_path(process) %><br />
|
29
|
-
<% elsif can? :preview, process %>
|
30
|
-
<%= link_to translated_attribute(process.title), decidim.participatory_process_path(process) %><br />
|
31
|
-
<% elsif can? :read, Decidim::Moderation %>
|
32
|
-
<%= link_to translated_attribute(process.title), moderations_path(process) %><br />
|
33
|
-
<% else %>
|
34
|
-
<%= translated_attribute(process.title) %>
|
35
|
-
<% end %>
|
36
|
-
</td>
|
37
|
-
<td>
|
38
|
-
<%= l process.created_at, format: :short %>
|
39
|
-
</td>
|
40
|
-
<td class="table-list__state">
|
41
|
-
<% if process.published? %>
|
42
|
-
<strong class="text-success"><%= t('.published') %></strong>
|
43
|
-
<% else %>
|
44
|
-
<strong class="text-alert"><%= t('.not_published') %></strong>
|
45
|
-
<% end %>
|
46
|
-
</td>
|
47
|
-
<td class="table-list__actions">
|
48
|
-
<% if can? :create, process %>
|
49
|
-
<%= icon_link_to "clipboard", new_participatory_process_copy_path(process), t("actions.duplicate", scope: "decidim.admin"), class: "action-icon--copy" %>
|
50
|
-
<% end %>
|
51
|
-
|
52
|
-
<% if can? :update, process %>
|
53
|
-
<%= icon_link_to "pencil", edit_participatory_process_path(process), t("actions.configure", scope: "decidim.admin"), class: "action-icon--new" %>
|
54
|
-
<% end %>
|
55
|
-
|
56
|
-
<% if can? :preview, process %>
|
57
|
-
<%= icon_link_to "eye", decidim.participatory_process_path(process), t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview" %>
|
58
|
-
<% end %>
|
59
|
-
</td>
|
60
|
-
</tr>
|
61
|
-
<% end %>
|
62
|
-
</tbody>
|
63
|
-
</table>
|
64
|
-
</div>
|
65
|
-
</div>
|
66
|
-
</div>
|
@@ -1,11 +0,0 @@
|
|
1
|
-
<h2 class="process-title-summary">
|
2
|
-
<%= t ".title" %>
|
3
|
-
</h2>
|
4
|
-
|
5
|
-
<%= decidim_form_for(@form, html: { class: "form new_participatory_process" }) do |f| %>
|
6
|
-
<%= render partial: 'form', object: f %>
|
7
|
-
|
8
|
-
<div class="button--double form-general-submit">
|
9
|
-
<%= f.submit t(".create") %>
|
10
|
-
</div>
|
11
|
-
<% end %>
|
@@ -1,64 +0,0 @@
|
|
1
|
-
<% content_for :secondary_nav do %>
|
2
|
-
<div class="secondary-nav secondary-nav--subnav">
|
3
|
-
<ul>
|
4
|
-
<% if can? :update, current_participatory_process %>
|
5
|
-
<li <% if is_active_link?(decidim_admin.edit_participatory_process_path(current_participatory_process)) %> class="is-active" <% end %>>
|
6
|
-
<%= aria_selected_link_to t("info", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin.edit_participatory_process_path(current_participatory_process) %>
|
7
|
-
</li>
|
8
|
-
<% end %>
|
9
|
-
<% if can? :read, Decidim::ParticipatoryProcessStep %>
|
10
|
-
<li <% if is_active_link?(decidim_admin.participatory_process_steps_path(current_participatory_process)) %> class="is-active" <% end %>>
|
11
|
-
<%= aria_selected_link_to t("steps", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin.participatory_process_steps_path(current_participatory_process) %>
|
12
|
-
</li>
|
13
|
-
<% end %>
|
14
|
-
<% if can? :read, Decidim::Feature %>
|
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
|
-
<ul>
|
18
|
-
<% current_participatory_process.features.each do |feature| %>
|
19
|
-
<% if feature.manifest.admin_engine %>
|
20
|
-
<li <% if is_active_link?(manage_feature_path(feature)) %> class="is-active" <% end %>>
|
21
|
-
<%= link_to manage_feature_path(feature) do %>
|
22
|
-
<%= translated_attribute feature.name %>
|
23
|
-
<% if feature.primary_stat.present? %>
|
24
|
-
<span class="component-counter <%= "component-counter--off" if feature.primary_stat.zero? %>"><%= feature.primary_stat %></span>
|
25
|
-
<% end %>
|
26
|
-
<% end %>
|
27
|
-
</li>
|
28
|
-
<% end %>
|
29
|
-
<% end %>
|
30
|
-
</ul>
|
31
|
-
</li>
|
32
|
-
<% end %>
|
33
|
-
<% if can? :read, Decidim::Category %>
|
34
|
-
<li <% if is_active_link?(decidim_admin.categories_path(current_participatory_process)) %> class="is-active" <% end %>>
|
35
|
-
<%= aria_selected_link_to t("categories", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin.categories_path(current_participatory_process) %>
|
36
|
-
</li>
|
37
|
-
<% end %>
|
38
|
-
<% if can? :read, Decidim::Attachment %>
|
39
|
-
<li <% if is_active_link?(decidim_admin.participatory_process_attachments_path(current_participatory_process.id)) %> class="is-active" <% end %>>
|
40
|
-
<%= aria_selected_link_to t("attachments", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin.participatory_process_attachments_path(current_participatory_process.id) %>
|
41
|
-
</li>
|
42
|
-
<% end %>
|
43
|
-
<% if can? :read, Decidim::ParticipatoryProcessUserRole %>
|
44
|
-
<li <% if is_active_link?(decidim_admin.participatory_process_user_roles_path(current_participatory_process)) %> class="is-active" <% end %>>
|
45
|
-
<%= aria_selected_link_to t("process_admins", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin.participatory_process_user_roles_path(current_participatory_process) %>
|
46
|
-
</li>
|
47
|
-
<% end %>
|
48
|
-
<% if can? :read, Decidim::Moderation %>
|
49
|
-
<li <% if is_active_link?(decidim_admin.moderations_path(current_participatory_process.id)) %> class="is-active" <% end %>>
|
50
|
-
<%= aria_selected_link_to t("moderations", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin.moderations_path(current_participatory_process.id) %>
|
51
|
-
</li>
|
52
|
-
<% end %>
|
53
|
-
</ul>
|
54
|
-
</div>
|
55
|
-
<% end %>
|
56
|
-
|
57
|
-
<%= render "layouts/decidim/admin/application" do %>
|
58
|
-
<div class="process-title">
|
59
|
-
<div class="process-title-content">
|
60
|
-
<%= translated_attribute(current_participatory_process.title) %>
|
61
|
-
</div>
|
62
|
-
</div>
|
63
|
-
<%= yield %>
|
64
|
-
<% end %>
|