decidim-participatory_processes 0.27.9 → 0.28.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/cells/decidim/participatory_process_groups/content_block_cell.rb +5 -1
- data/app/cells/decidim/participatory_process_groups/content_blocks/extra_data/recent_users.erb +1 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/extra_data_cell.rb +71 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/main_data/content.erb +30 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/main_data_cell.rb +77 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/related_processes_cell.rb +47 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/statistics_cell.rb +2 -2
- data/app/cells/decidim/participatory_process_groups/process_filters_cell.rb +4 -4
- data/app/cells/decidim/participatory_processes/content_block_cell.rb +21 -0
- data/app/cells/decidim/participatory_processes/content_blocks/extra_data/active_step.erb +1 -0
- data/app/cells/decidim/participatory_processes/content_blocks/extra_data_cell.rb +60 -0
- data/app/cells/decidim/participatory_processes/content_blocks/hero_cell.rb +29 -0
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_cell.rb +14 -27
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_settings_form/show.erb +1 -1
- data/app/cells/decidim/participatory_processes/content_blocks/main_data_cell.rb +34 -0
- data/app/cells/decidim/participatory_processes/content_blocks/metadata_cell.rb +23 -0
- data/app/cells/decidim/participatory_processes/content_blocks/metrics_cell.rb +25 -0
- data/app/cells/decidim/participatory_processes/content_blocks/processes_settings_form/show.erb +3 -0
- data/app/cells/decidim/participatory_processes/content_blocks/processes_settings_form_cell.rb +28 -0
- data/app/cells/decidim/participatory_processes/content_blocks/related_processes/content.erb +1 -0
- data/app/cells/decidim/participatory_processes/content_blocks/related_processes_cell.rb +53 -0
- data/app/cells/decidim/participatory_processes/content_blocks/stats_cell.rb +17 -0
- data/app/cells/decidim/participatory_processes/filtered_participatory_processes_cell.rb +1 -1
- data/app/cells/decidim/participatory_processes/process_cell.rb +2 -2
- data/app/cells/decidim/participatory_processes/process_dropdown_metadata/metadata.erb +22 -0
- data/app/cells/decidim/participatory_processes/process_dropdown_metadata_cell.rb +39 -0
- data/app/cells/decidim/participatory_processes/process_filters/show.erb +4 -5
- data/app/cells/decidim/participatory_processes/process_filters/type_filter.erb +1 -1
- data/app/cells/decidim/participatory_processes/process_filters_cell.rb +6 -6
- data/app/cells/decidim/participatory_processes/process_g_cell.rb +31 -0
- data/app/cells/decidim/participatory_processes/process_group_cell.rb +2 -2
- data/app/cells/decidim/participatory_processes/process_group_g_cell.rb +23 -0
- data/app/cells/decidim/participatory_processes/process_group_metadata_cell.rb +46 -0
- data/app/cells/decidim/participatory_processes/process_group_s_cell.rb +5 -13
- data/app/cells/decidim/participatory_processes/process_metadata_cell.rb +44 -0
- data/app/cells/decidim/participatory_processes/process_metadata_g_cell.rb +15 -0
- data/app/cells/decidim/participatory_processes/process_s_cell.rb +5 -25
- data/app/cells/decidim/participatory_processes/process_step/show.erb +48 -0
- data/app/cells/decidim/participatory_processes/process_step_cell.rb +30 -0
- data/app/cells/decidim/participatory_processes/processes/show.erb +16 -0
- data/app/cells/decidim/participatory_processes/processes_cell.rb +24 -0
- data/app/commands/decidim/participatory_processes/admin/activate_participatory_process_step.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/copy_participatory_process.rb +2 -2
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process.rb +3 -1
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process_group.rb +4 -2
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process_step.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process_type.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_group.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_step.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_type.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/import_participatory_process.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/reorder_participatory_process_steps.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process_group.rb +2 -2
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process_step.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process_type.rb +1 -1
- data/app/constraints/decidim/participatory_processes/current_participatory_process.rb +1 -1
- data/app/controllers/decidim/participatory_processes/admin/application_controller.rb +29 -0
- data/app/controllers/decidim/participatory_processes/admin/categories_controller.rb +2 -0
- data/app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb +3 -1
- data/app/controllers/decidim/participatory_processes/admin/moderations/reports_controller.rb +1 -1
- data/app/controllers/decidim/participatory_processes/admin/moderations_controller.rb +1 -1
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_attachment_collections_controller.rb +5 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb +5 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_group_landing_page_content_blocks_controller.rb +1 -5
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_group_landing_page_controller.rb +24 -7
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_groups_controller.rb +16 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_imports_controller.rb +14 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_landing_page_content_blocks_controller.rb +37 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_landing_page_controller.rb +37 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_publications_controller.rb +9 -29
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_step_activations_controller.rb +1 -1
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_steps_controller.rb +16 -4
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_types_controller.rb +19 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_user_roles_controller.rb +8 -91
- data/app/controllers/decidim/participatory_processes/admin/participatory_processes_controller.rb +3 -0
- data/app/controllers/decidim/participatory_processes/participatory_process_groups_controller.rb +14 -1
- data/app/controllers/decidim/participatory_processes/participatory_processes_controller.rb +19 -4
- data/app/events/decidim/participatory_process_role_assigned_event.rb +6 -6
- data/app/events/decidim/participatory_process_step_activated_event.rb +5 -4
- data/app/events/decidim/participatory_process_step_changed_event.rb +5 -4
- data/app/forms/decidim/participatory_processes/admin/participatory_process_copy_form.rb +1 -1
- data/app/forms/decidim/participatory_processes/admin/participatory_process_form.rb +1 -1
- data/app/forms/decidim/participatory_processes/admin/participatory_process_import_form.rb +1 -1
- data/app/forms/decidim/participatory_processes/admin/participatory_process_step_form.rb +2 -2
- data/app/forms/decidim/participatory_processes/admin/participatory_process_user_role_form.rb +2 -18
- data/app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb +1 -0
- data/app/helpers/decidim/participatory_processes/application_helper.rb +5 -0
- data/app/helpers/decidim/participatory_processes/participatory_process_helper.rb +37 -9
- data/app/helpers/decidim/participatory_processes/participatory_space_content_blocks_helper.rb +17 -0
- data/app/jobs/decidim/participatory_processes/change_active_step_job.rb +35 -0
- data/app/models/decidim/participatory_process.rb +5 -5
- data/app/models/decidim/participatory_process_group.rb +4 -0
- data/app/models/decidim/participatory_process_user_role.rb +5 -34
- data/app/packs/entrypoints/decidim_participatory_processes.js +0 -2
- data/app/packs/src/decidim/participatory_processes/admin/participatory_processes.js +2 -2
- data/app/permissions/decidim/participatory_processes/permissions.rb +11 -15
- data/app/presenters/decidim/participatory_processes/admin_log/participatory_process_group_presenter.rb +2 -2
- data/app/presenters/decidim/participatory_processes/admin_log/participatory_process_presenter.rb +2 -2
- data/app/presenters/decidim/participatory_processes/admin_log/participatory_process_type_presenter.rb +2 -2
- data/app/presenters/decidim/participatory_processes/admin_log/participatory_process_user_role_presenter.rb +2 -2
- data/app/presenters/decidim/participatory_processes/admin_log/step_presenter.rb +2 -2
- data/app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb +4 -40
- data/app/presenters/decidim/participatory_processes/participatory_process_metric_charts_presenter.rb +0 -68
- data/app/presenters/decidim/participatory_processes/participatory_process_presenter.rb +6 -0
- data/app/presenters/decidim/participatory_processes/participatory_process_stats_presenter.rb +3 -42
- data/app/queries/decidim/participatory_processes/admin/admin_users.rb +1 -1
- data/app/queries/decidim/participatory_processes/admin/moderators.rb +1 -1
- data/app/serializers/decidim/participatory_processes/participatory_process_importer.rb +4 -4
- data/app/views/decidim/participatory_processes/admin/participatory_process_copies/_form.html.erb +24 -29
- data/app/views/decidim/participatory_processes/admin/participatory_process_copies/new.html.erb +16 -5
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/_form.html.erb +72 -50
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/edit.html.erb +15 -9
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/index.html.erb +49 -54
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/new.html.erb +28 -5
- data/app/views/decidim/participatory_processes/admin/participatory_process_imports/_form.html.erb +33 -39
- data/app/views/decidim/participatory_processes/admin/participatory_process_imports/new.html.erb +18 -5
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/_form.html.erb +18 -25
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/edit.html.erb +16 -5
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/index.html.erb +54 -54
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/new.html.erb +18 -5
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/show.html.erb +2 -2
- data/app/views/decidim/participatory_processes/admin/participatory_process_types/_form.html.erb +6 -8
- data/app/views/decidim/participatory_processes/admin/participatory_process_types/edit.html.erb +14 -6
- data/app/views/decidim/participatory_processes/admin/participatory_process_types/index.html.erb +47 -50
- data/app/views/decidim/participatory_processes/admin/participatory_process_types/new.html.erb +14 -6
- data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/_form.html.erb +14 -18
- data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/edit.html.erb +17 -6
- data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/index.html.erb +59 -60
- data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/new.html.erb +16 -5
- data/app/views/decidim/participatory_processes/admin/participatory_processes/_form.html.erb +193 -146
- data/app/views/decidim/participatory_processes/admin/participatory_processes/edit.html.erb +25 -11
- data/app/views/decidim/participatory_processes/admin/participatory_processes/index.html.erb +111 -128
- data/app/views/decidim/participatory_processes/admin/participatory_processes/new.html.erb +16 -9
- data/app/views/decidim/participatory_processes/participatory_process_groups/show.html.erb +6 -10
- data/app/views/decidim/participatory_processes/participatory_processes/_collection.html.erb +8 -0
- data/app/views/decidim/participatory_processes/participatory_processes/all_metrics.html.erb +21 -8
- data/app/views/decidim/participatory_processes/participatory_processes/index.html.erb +19 -17
- data/app/views/decidim/participatory_processes/participatory_processes/index.js.erb +1 -8
- data/app/views/decidim/participatory_processes/participatory_processes/show.html.erb +14 -128
- data/app/views/layouts/decidim/_process_header.html.erb +15 -26
- data/app/views/layouts/decidim/_process_nav_item.html.erb +6 -0
- data/app/views/layouts/decidim/admin/_manage_processes.html.erb +36 -0
- data/app/views/layouts/decidim/admin/participatory_process.html.erb +12 -14
- data/app/views/layouts/decidim/admin/participatory_process_group.html.erb +23 -13
- data/app/views/layouts/decidim/admin/participatory_process_groups.html.erb +13 -0
- data/app/views/layouts/decidim/admin/participatory_process_type.html.erb +13 -11
- data/app/views/layouts/decidim/admin/participatory_processes.html.erb +14 -8
- data/app/views/layouts/decidim/participatory_process.html.erb +7 -14
- data/config/locales/ar.yml +1 -55
- data/config/locales/bg.yml +0 -518
- data/config/locales/ca.yml +50 -70
- data/config/locales/cs.yml +51 -71
- data/config/locales/de.yml +52 -72
- data/config/locales/el.yml +8 -64
- data/config/locales/en.yml +52 -72
- data/config/locales/es-MX.yml +49 -69
- data/config/locales/es-PY.yml +49 -69
- data/config/locales/es.yml +49 -69
- data/config/locales/eu.yml +89 -112
- data/config/locales/fi-plain.yml +50 -70
- data/config/locales/fi.yml +57 -77
- data/config/locales/fr-CA.yml +51 -71
- data/config/locales/fr.yml +52 -72
- data/config/locales/ga-IE.yml +0 -16
- data/config/locales/gl.yml +0 -67
- data/config/locales/hu.yml +6 -66
- data/config/locales/id-ID.yml +1 -55
- data/config/locales/is-IS.yml +0 -24
- data/config/locales/it.yml +0 -67
- data/config/locales/ja.yml +51 -71
- data/config/locales/lb.yml +1 -153
- data/config/locales/lt.yml +39 -65
- data/config/locales/lv.yml +1 -59
- data/config/locales/nl.yml +0 -67
- data/config/locales/no.yml +0 -92
- data/config/locales/pl.yml +0 -124
- data/config/locales/pt-BR.yml +1 -113
- data/config/locales/pt.yml +0 -67
- data/config/locales/ro-RO.yml +4 -64
- data/config/locales/ru.yml +0 -49
- data/config/locales/sk.yml +1 -56
- data/config/locales/sl.yml +0 -7
- data/config/locales/sr-CS.yml +0 -4
- data/config/locales/sv.yml +148 -240
- data/config/locales/tr-TR.yml +7 -68
- data/config/locales/uk.yml +0 -49
- data/config/locales/zh-CN.yml +2 -63
- data/config/locales/zh-TW.yml +3 -63
- data/db/migrate/20220315100140_change_steps_dates_to_datetime.rb +8 -0
- data/lib/decidim/api/participatory_process_step_type.rb +2 -2
- data/lib/decidim/participatory_processes/admin_engine.rb +20 -139
- data/lib/decidim/participatory_processes/content_blocks/registry_manager.rb +278 -0
- data/lib/decidim/participatory_processes/engine.rb +13 -103
- data/lib/decidim/participatory_processes/menu.rb +190 -0
- data/lib/decidim/participatory_processes/participatory_space.rb +7 -204
- data/lib/decidim/participatory_processes/query_extensions.rb +2 -2
- data/lib/decidim/participatory_processes/seeds.rb +164 -0
- data/lib/decidim/participatory_processes/test/factories.rb +58 -66
- data/lib/decidim/participatory_processes/version.rb +1 -1
- data/lib/tasks/decidim_participatory_processes.rake +8 -0
- metadata +62 -67
- data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/filters.erb +0 -21
- data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/filters_small_view.erb +0 -18
- data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/participatory_space_filters.erb +0 -6
- data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/show.erb +0 -8
- data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/title_filter_order.erb +0 -8
- data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes_cell.rb +0 -60
- data/app/cells/decidim/participatory_process_groups/content_blocks/html/show.erb +0 -3
- data/app/cells/decidim/participatory_process_groups/content_blocks/html_cell.rb +0 -13
- data/app/cells/decidim/participatory_process_groups/content_blocks/metadata/show.erb +0 -28
- data/app/cells/decidim/participatory_process_groups/content_blocks/metadata_cell.rb +0 -15
- data/app/cells/decidim/participatory_process_groups/content_blocks/title/show.erb +0 -43
- data/app/cells/decidim/participatory_process_groups/content_blocks/title_cell.rb +0 -64
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/_all_processes.erb +0 -9
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/show.erb +0 -14
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/single_process.erb +0 -48
- data/app/cells/decidim/participatory_processes/process_group_m/footer.erb +0 -8
- data/app/cells/decidim/participatory_processes/process_group_m_cell.rb +0 -60
- data/app/cells/decidim/participatory_processes/process_group_s/image.erb +0 -1
- data/app/cells/decidim/participatory_processes/process_group_s/show.erb +0 -8
- data/app/cells/decidim/participatory_processes/process_m/data.erb +0 -21
- data/app/cells/decidim/participatory_processes/process_m/footer.erb +0 -14
- data/app/cells/decidim/participatory_processes/process_m/tags.erb +0 -8
- data/app/cells/decidim/participatory_processes/process_m_cell.rb +0 -87
- data/app/cells/decidim/participatory_processes/process_s/image.erb +0 -1
- data/app/cells/decidim/participatory_processes/process_s/show.erb +0 -14
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process_admin.rb +0 -58
- data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_admin.rb +0 -58
- data/app/commands/decidim/participatory_processes/admin/notify_role_assigned_to_participatory_process.rb +0 -22
- data/app/commands/decidim/participatory_processes/admin/publish_participatory_process.rb +0 -40
- data/app/commands/decidim/participatory_processes/admin/unpublish_participatory_process.rb +0 -40
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process_admin.rb +0 -56
- data/app/controllers/decidim/participatory_processes/participatory_process_steps_controller.rb +0 -28
- data/app/controllers/decidim/participatory_processes/widgets_controller.rb +0 -37
- data/app/packs/src/decidim/participatory_processes/filters.js +0 -28
- data/app/views/decidim/participatory_process_steps/_participatory_process_step.html.erb +0 -16
- data/app/views/decidim/participatory_processes/participatory_process_steps/_timeline.html.erb +0 -7
- data/app/views/decidim/participatory_processes/participatory_process_steps/index.html.erb +0 -18
- data/app/views/decidim/participatory_processes/participatory_processes/_metrics.html.erb +0 -10
- data/app/views/decidim/participatory_processes/participatory_processes/_order_by_processes.html.erb +0 -1
- data/app/views/decidim/participatory_processes/participatory_processes/_participatory_process_group.html.erb +0 -4
- data/app/views/decidim/participatory_processes/participatory_processes/_promoted_process.html.erb +0 -39
- data/app/views/decidim/participatory_processes/participatory_processes/_promoted_process_group.html.erb +0 -31
- data/app/views/layouts/decidim/_process_header_steps.html.erb +0 -37
- data/app/views/layouts/decidim/_process_navigation.html.erb +0 -20
- data/config/locales/he-IL.yml +0 -1
- data/db/seeds/Exampledocument.pdf +0 -0
- data/db/seeds/city.jpeg +0 -0
- data/db/seeds/city2.jpeg +0 -0
- data/db/seeds/homepage_image.jpg +0 -0
- data/decidim-participatory_processes.gemspec +0 -31
data/app/views/decidim/participatory_processes/admin/participatory_process_groups/index.html.erb
CHANGED
@@ -1,64 +1,59 @@
|
|
1
1
|
<% add_decidim_page_title(t("decidim.admin.titles.participatory_process_groups")) %>
|
2
|
-
<% content_for :
|
3
|
-
|
2
|
+
<% content_for :breadcrumb_context_menu do %>
|
3
|
+
<div class="process-title-content-breadcrumb-container-right">
|
4
|
+
<% if allowed_to? :create, :process_group %>
|
5
|
+
<%= link_to [:new, :participatory_process_group], class: "button button__sm button__transparent process-title-content-breadcrumb-container-right-link" do %>
|
6
|
+
<%= icon "add-line" %>
|
7
|
+
<span>
|
8
|
+
<%= t("actions.new_process_group", scope: "decidim.admin") %>
|
9
|
+
</span>
|
10
|
+
<% end %>
|
11
|
+
<% end %>
|
12
|
+
</div>
|
4
13
|
<% end %>
|
5
14
|
|
6
|
-
|
7
|
-
<div class="process-title-content">
|
8
|
-
<%= link_to t("decidim.admin.titles.participatory_process_groups"), decidim_participatory_processes.participatory_processes_path, target: "_blank" %>
|
9
|
-
</div>
|
10
|
-
</div>
|
15
|
+
<%= admin_tabs(:admin_participatory_processes_menu).render %>
|
11
16
|
|
12
17
|
<div class="card">
|
13
|
-
<div class="
|
14
|
-
<
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
<
|
22
|
-
|
18
|
+
<div class="table-scroll">
|
19
|
+
<table class="table-list">
|
20
|
+
<thead>
|
21
|
+
<tr>
|
22
|
+
<th><%= t("models.participatory_process_group.fields.title", scope: "decidim.admin") %></th>
|
23
|
+
<th></th>
|
24
|
+
</tr>
|
25
|
+
</thead>
|
26
|
+
<tbody>
|
27
|
+
<% collection.each do |group| %>
|
23
28
|
<tr>
|
24
|
-
<
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
<%= translated_attribute(group.title) %>
|
41
|
-
<% end %>
|
42
|
-
</td>
|
43
|
-
<td class="table-list__actions">
|
44
|
-
<% if allowed_to? :update, :process_group, process_group: group %>
|
45
|
-
<%= icon_link_to "pencil", [:edit, group], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
|
46
|
-
<% else %>
|
47
|
-
<span class="action-space icon"></span>
|
48
|
-
<% end %>
|
29
|
+
<td>
|
30
|
+
<% if group.promoted? %>
|
31
|
+
<%= icon_with_tooltip "star-s-fill", t("models.assembly.fields.promoted", scope: "decidim.admin") %>
|
32
|
+
<% end %>
|
33
|
+
<% if allowed_to? :update, :process_group, process_group: group %>
|
34
|
+
<%= link_to translated_attribute(group.title), [:edit, group] %>
|
35
|
+
<% else %>
|
36
|
+
<%= translated_attribute(group.title) %>
|
37
|
+
<% end %>
|
38
|
+
</td>
|
39
|
+
<td class="table-list__actions">
|
40
|
+
<% if allowed_to? :update, :process_group, process_group: group %>
|
41
|
+
<%= icon_link_to "pencil-line", [:edit, group], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
|
42
|
+
<% else %>
|
43
|
+
<span class="action-space icon"></span>
|
44
|
+
<% end %>
|
49
45
|
|
50
|
-
|
46
|
+
<%= icon_link_to "eye-line", decidim_participatory_processes.participatory_process_group_path(group), t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview", target: "_blank", data: { "external-link": false } %>
|
51
47
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
</div>
|
48
|
+
<% if allowed_to? :destroy, :process_group, process_group: group %>
|
49
|
+
<%= icon_link_to "delete-bin-line", group, t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
|
50
|
+
<% else %>
|
51
|
+
<span class="action-space icon"></span>
|
52
|
+
<% end %>
|
53
|
+
</td>
|
54
|
+
</tr>
|
55
|
+
<% end %>
|
56
|
+
</tbody>
|
57
|
+
</table>
|
63
58
|
</div>
|
64
59
|
</div>
|
data/app/views/decidim/participatory_processes/admin/participatory_process_groups/new.html.erb
CHANGED
@@ -1,8 +1,31 @@
|
|
1
1
|
<% add_decidim_page_title(t("participatory_process_groups.new.title", scope: "decidim.admin")) %>
|
2
|
-
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
<% content_for :breadcrumb_context_menu do %>
|
3
|
+
<div class="process-title-content-breadcrumb-container-right">
|
4
|
+
<% if allowed_to? :create, :process_group %>
|
5
|
+
<%= link_to [:new, :participatory_process_group], class: "button button__sm button__transparent process-title-content-breadcrumb-container-right-link" do %>
|
6
|
+
<%= icon "add-line" %>
|
7
|
+
<span>
|
8
|
+
<%= t("actions.new_process_group", scope: "decidim.admin") %>
|
9
|
+
</span>
|
10
|
+
<% end %>
|
11
|
+
<% end %>
|
7
12
|
</div>
|
8
13
|
<% end %>
|
14
|
+
<div class="item_show__header">
|
15
|
+
<h2 class="item_show__header-title">
|
16
|
+
<%= t "participatory_process_groups.new.title", scope: "decidim.admin" %>
|
17
|
+
</h2>
|
18
|
+
</div>
|
19
|
+
|
20
|
+
<div class="item__edit item__edit-1col">
|
21
|
+
<div class="item__edit-form">
|
22
|
+
<%= decidim_form_for(@form, html: { class: "form-defaults form new_participatory_process_group" }) do |f| %>
|
23
|
+
<%= render partial: "form", object: f %>
|
24
|
+
<div class="item__edit-sticky">
|
25
|
+
<div class="item__edit-sticky-container">
|
26
|
+
<%= f.submit t("participatory_process_groups.new.create", scope: "decidim.admin"), class: "button button__sm button__secondary" %>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
<% end %>
|
30
|
+
</div>
|
31
|
+
</div>
|
data/app/views/decidim/participatory_processes/admin/participatory_process_imports/_form.html.erb
CHANGED
@@ -1,47 +1,41 @@
|
|
1
|
-
<div class="
|
2
|
-
<div class="card-
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
</div>
|
15
|
-
<div class="column xlarge-8">
|
16
|
-
<fieldset>
|
17
|
-
<legend><%= t(".document_legend") %> </legend>
|
18
|
-
<div class="row column">
|
19
|
-
<%= form.upload :document, required: true %>
|
20
|
-
</div>
|
21
|
-
</fieldset>
|
22
|
-
</div>
|
1
|
+
<div class="form__wrapper">
|
2
|
+
<div class="card pt-4" id="processes">
|
3
|
+
<div class="card-section">
|
4
|
+
<div class="row column">
|
5
|
+
<%= form.translated :text_field, :title, autofocus: true %>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div class="row column">
|
9
|
+
<%= form.text_field :slug, help_text: t(".slug_help_html", url: decidim_form_slug_url(:processes, form.object.slug)) %>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<div class="row column">
|
13
|
+
<%= form.upload :document, required: true, label: t(".document_legend"), button_class: "button button__sm button__transparent-secondary" %>
|
23
14
|
</div>
|
24
|
-
|
25
|
-
|
26
|
-
|
15
|
+
|
16
|
+
<div class="card-divider">
|
17
|
+
<div class="card-title">
|
18
|
+
<%= t("participatory_process_imports.new.select", scope: "decidim.admin") %>
|
27
19
|
</div>
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
20
|
+
</div>
|
21
|
+
<div class="card-section">
|
22
|
+
<div class="row">
|
23
|
+
<div class="columns">
|
24
|
+
<%= form.check_box :import_steps %>
|
25
|
+
</div>
|
26
|
+
<div class="columns">
|
27
|
+
<%= form.check_box :import_categories %>
|
28
|
+
</div>
|
29
|
+
<div class="columns">
|
30
|
+
<%= form.check_box :import_attachments %>
|
31
|
+
</div>
|
32
|
+
<div class="columns">
|
33
|
+
<%= form.check_box :import_components %>
|
42
34
|
</div>
|
43
35
|
</div>
|
44
36
|
</div>
|
37
|
+
|
38
|
+
</div>
|
45
39
|
</div>
|
46
40
|
</div>
|
47
41
|
</div>
|
data/app/views/decidim/participatory_processes/admin/participatory_process_imports/new.html.erb
CHANGED
@@ -1,7 +1,20 @@
|
|
1
|
-
|
2
|
-
<%= render partial: "form", object: f, locals: { title: t("participatory_process_imports.new.title", scope: "decidim.admin"), select: t("participatory_process_imports.new.select", scope: "decidim.admin") } %>
|
1
|
+
<% add_decidim_page_title(t("participatory_process_imports.new.title", scope: "decidim.admin")) %>
|
3
2
|
|
4
|
-
|
5
|
-
|
3
|
+
<div class="item_show__header">
|
4
|
+
<h2 class="item_show__header-title">
|
5
|
+
<%= t("participatory_process_imports.new.title", scope: "decidim.admin") %>
|
6
|
+
</h2>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<div class="item__edit item__edit-1col">
|
10
|
+
<div class="item__edit-form">
|
11
|
+
<%= decidim_form_for(@form, url: imports_path, method: :post, html: { class: "form-defaults form import_participatory_process" }) do |f| %>
|
12
|
+
<%= render partial: "form", object: f %>
|
13
|
+
<div class="item__edit-sticky">
|
14
|
+
<div class="item__edit-sticky-container">
|
15
|
+
<%= f.submit t("participatory_process_imports.new.import", scope: "decidim.admin"), class: "button button__sm button__secondary" %>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
<% end %>
|
6
19
|
</div>
|
7
|
-
|
20
|
+
</div>
|
data/app/views/decidim/participatory_processes/admin/participatory_process_steps/_form.html.erb
CHANGED
@@ -1,36 +1,29 @@
|
|
1
|
-
<div class="
|
2
|
-
<div class="card-
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
<div class="row column">
|
8
|
-
<%= form.translated :text_field, :title, autofocus: true %>
|
9
|
-
</div>
|
1
|
+
<div class="form__wrapper">
|
2
|
+
<div class="card pt-4">
|
3
|
+
<div id="panel-title" class="card-section">
|
4
|
+
<div class="row column">
|
5
|
+
<%= form.translated :text_field, :title, autofocus: true, aria: { label: :title } %>
|
6
|
+
</div>
|
10
7
|
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
<div class="row column">
|
9
|
+
<%= form.translated :editor, :description, aria: { label: :description } %>
|
10
|
+
</div>
|
14
11
|
|
15
|
-
|
16
|
-
|
17
|
-
<%= form.date_field :start_date %>
|
12
|
+
<div class="row column">
|
13
|
+
<%= form.datetime_field :start_date %>
|
18
14
|
</div>
|
19
15
|
|
20
|
-
<div class="
|
21
|
-
<%= form.
|
16
|
+
<div class="row column">
|
17
|
+
<%= form.datetime_field :end_date %>
|
22
18
|
</div>
|
23
|
-
</div>
|
24
19
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
<p class="help-text"><%== t(".cta_path_help", url: decidim_form_slug_url("processes/" + current_participatory_process.slug, form.object.cta_path)) %></p>
|
20
|
+
<div class="row column slug">
|
21
|
+
<%= form.text_field :cta_path,
|
22
|
+
help_text: t(".cta_path_help_html", url: decidim_form_slug_url("processes/" + current_participatory_process.slug, form.object.cta_path)) %>
|
29
23
|
</div>
|
30
24
|
|
31
|
-
<div class="
|
32
|
-
<%= form.translated :text_field, :cta_text %>
|
33
|
-
<p class="help-text"><%= t(".cta_text_help") %></p>
|
25
|
+
<div class="row column">
|
26
|
+
<%= form.translated :text_field, :cta_text, help_text: t(".cta_text_help") %>
|
34
27
|
</div>
|
35
28
|
</div>
|
36
29
|
</div>
|
data/app/views/decidim/participatory_processes/admin/participatory_process_steps/edit.html.erb
CHANGED
@@ -1,9 +1,20 @@
|
|
1
1
|
<% add_decidim_page_title(t("participatory_process_steps.edit.title", scope: "decidim.admin")) %>
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
<div class="item_show__header">
|
4
|
+
<h2 class="item_show__header-title">
|
5
|
+
<%= t("participatory_process_steps.edit.title", scope: "decidim.admin") %>
|
6
|
+
</h2>
|
7
|
+
</div>
|
5
8
|
|
6
|
-
|
7
|
-
|
9
|
+
<div class="item__edit item__edit-1col">
|
10
|
+
<div class="item__edit-form">
|
11
|
+
<%= decidim_form_for(@form, url: participatory_process_step_path(@participatory_process_step.participatory_process, @participatory_process_step), html: { class: "form form-defaults edit_participatory_process_step" }) do |f| %>
|
12
|
+
<%= render partial: "form", object: f, locals: { title: t("participatory_process_steps.edit.title", scope: "decidim.admin") } %>
|
13
|
+
<div class="item__edit-sticky">
|
14
|
+
<div class="item__edit-sticky-container">
|
15
|
+
<%= f.submit t("participatory_process_steps.edit.update", scope: "decidim.admin"), class: "button button__sm button__secondary" %>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
<% end %>
|
8
19
|
</div>
|
9
|
-
|
20
|
+
</div>
|
data/app/views/decidim/participatory_processes/admin/participatory_process_steps/index.html.erb
CHANGED
@@ -1,69 +1,69 @@
|
|
1
|
+
<% add_decidim_page_title(t("participatory_process_steps.index.steps_title", scope: "decidim.admin")) %>
|
1
2
|
<div class="card" id="steps">
|
2
|
-
<div class="
|
3
|
-
<h2 class="
|
3
|
+
<div class="item_show__header">
|
4
|
+
<h2 class="item_show__header-title">
|
4
5
|
<%= t("participatory_process_steps.index.steps_title", scope: "decidim.admin") %>
|
5
6
|
<% if allowed_to? :create, :process_step %>
|
6
|
-
<%= link_to t("actions.new_process_step", scope: "decidim.admin"), new_participatory_process_step_path(current_participatory_process), class: "button
|
7
|
+
<%= link_to t("actions.new_process_step", scope: "decidim.admin"), new_participatory_process_step_path(current_participatory_process), class: "button button__sm button__secondary ml-auto" %>
|
7
8
|
<% end %>
|
8
9
|
</h2>
|
9
10
|
</div>
|
10
|
-
|
11
|
-
<div class="card-section">
|
11
|
+
<% if current_participatory_process.steps.any? %>
|
12
12
|
<div class="table-scroll">
|
13
|
-
|
14
|
-
<
|
15
|
-
<
|
16
|
-
<
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
<
|
26
|
-
<
|
27
|
-
|
13
|
+
<table class="table-list">
|
14
|
+
<thead>
|
15
|
+
<tr>
|
16
|
+
<th><%= t("models.participatory_process_step.fields.title", scope: "decidim.admin") %></th>
|
17
|
+
<th><%= t("models.participatory_process_step.fields.start_date", scope: "decidim.admin") %></th>
|
18
|
+
<th><%= t("models.participatory_process_step.fields.end_date", scope: "decidim.admin") %></th>
|
19
|
+
<th class="actions"></th>
|
20
|
+
</tr>
|
21
|
+
</thead>
|
22
|
+
<tbody class="sortable" data-sort-url="<%= ordering_participatory_process_steps_path(current_participatory_process) %>">
|
23
|
+
<% current_participatory_process.steps.each do |step| %>
|
24
|
+
<tr data-id="<%= step.id %>">
|
25
|
+
<td>
|
26
|
+
<div class="flex items-center gap-x-2">
|
27
|
+
<%= icon "drag-move-2-line" %>
|
28
28
|
<% if step.active? %>
|
29
29
|
<span class="icon-active"></span>
|
30
30
|
<% end %>
|
31
31
|
<%= link_to translated_attribute(step.title), edit_participatory_process_step_path(current_participatory_process, step) %><br>
|
32
|
-
</
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
32
|
+
</div>
|
33
|
+
</td>
|
34
|
+
<td>
|
35
|
+
<% if step.start_date %>
|
36
|
+
<%= l step.start_date, format: :long %>
|
37
|
+
<% end %>
|
38
|
+
</td>
|
39
|
+
<td>
|
40
|
+
<% if step.end_date %>
|
41
|
+
<%= l step.end_date, format: :long %>
|
42
|
+
<% end %>
|
43
|
+
</td>
|
44
|
+
<td class="table-list__actions">
|
45
|
+
<% if allowed_to? :update, :process_step, process_step: step %>
|
46
|
+
<%= icon_link_to "pencil-line", edit_participatory_process_step_path(current_participatory_process, step), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
|
47
|
+
<% else %>
|
48
|
+
<span class="action-space icon"></span>
|
49
|
+
<% end %>
|
49
50
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
51
|
+
<% if allowed_to?(:activate, :process_step, process_step: step) && !step.active? %>
|
52
|
+
<%= icon_link_to "check-line", participatory_process_step_activate_path(current_participatory_process, step), t("actions.activate", scope: "decidim.admin"), class: "action-icon--activate", method: :post %>
|
53
|
+
<% else %>
|
54
|
+
<span class="action-space icon"></span>
|
55
|
+
<% end %>
|
55
56
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
<% end %>
|
57
|
+
<% if allowed_to? :destroy, :process_step, process_step: step %>
|
58
|
+
<%= icon_link_to "delete-bin-line", 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") } %>
|
59
|
+
<% else %>
|
60
|
+
<span class="action-space icon"></span>
|
61
|
+
<% end %>
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
<% end %>
|
65
|
+
</tbody>
|
66
|
+
</table>
|
67
67
|
</div>
|
68
|
-
|
68
|
+
<% end %>
|
69
69
|
</div>
|
data/app/views/decidim/participatory_processes/admin/participatory_process_steps/new.html.erb
CHANGED
@@ -1,7 +1,20 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
<% add_decidim_page_title(t("participatory_process_steps.new.title", scope: "decidim.admin")) %>
|
2
|
+
<div class="item_show__header">
|
3
|
+
<h2 class="item_show__header-title">
|
4
|
+
<%= t("participatory_process_steps.new.title", scope: "decidim.admin") %>
|
5
|
+
</h2>
|
6
|
+
</div>
|
3
7
|
|
4
|
-
|
5
|
-
|
8
|
+
<div class="item__edit item__edit-1col">
|
9
|
+
<div class="item__edit-form">
|
10
|
+
<%= decidim_form_for(@form, html: { class: "form form-defaults new_participatory_process_step" }) do |f| %>
|
11
|
+
<%= render partial: "form", object: f, locals: { title: t("participatory_process_steps.new.title", scope: "decidim.admin") } %>
|
12
|
+
|
13
|
+
<div class="item__edit-sticky">
|
14
|
+
<div class="item__edit-sticky-container">
|
15
|
+
<%= f.submit t("participatory_process_steps.new.create", scope: "decidim.admin"), class: "button button__sm button__secondary" %>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
<% end %>
|
6
19
|
</div>
|
7
|
-
|
20
|
+
</div>
|
data/app/views/decidim/participatory_processes/admin/participatory_process_steps/show.html.erb
CHANGED
@@ -8,8 +8,8 @@
|
|
8
8
|
|
9
9
|
<dl>
|
10
10
|
<%= display_for @participatory_process_step,
|
11
|
-
|
12
|
-
|
11
|
+
:title,
|
12
|
+
:description %>
|
13
13
|
<dt><%= display_label(@participatory_process_step, :start_date) %></dt>
|
14
14
|
<dd><%= l @participatory_process_step.start_date, format: :short if @participatory_process_step.start_date.present? %></dd>
|
15
15
|
<dt><%= display_label(@participatory_process_step, :end_date) %></dt>
|
data/app/views/decidim/participatory_processes/admin/participatory_process_types/_form.html.erb
CHANGED
@@ -1,11 +1,9 @@
|
|
1
|
-
<div class="
|
2
|
-
<div class="card-
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
<div class="row column">
|
8
|
-
<%= form.translated :text_field, :title, autofocus: true %>
|
1
|
+
<div class="form__wrapper">
|
2
|
+
<div class="card pt-4">
|
3
|
+
<div class="card-section">
|
4
|
+
<div class="row column">
|
5
|
+
<%= form.translated :text_field, :title, autofocus: true, aria: { label: :title } %>
|
6
|
+
</div>
|
9
7
|
</div>
|
10
8
|
</div>
|
11
9
|
</div>
|
data/app/views/decidim/participatory_processes/admin/participatory_process_types/edit.html.erb
CHANGED
@@ -1,10 +1,18 @@
|
|
1
1
|
<% add_decidim_page_title t("participatory_process_types.edit.title", scope: "decidim.admin") %>
|
2
|
-
|
3
|
-
<h2 class="
|
2
|
+
<div class="item_show__header">
|
3
|
+
<h2 class="item_show__header-title">
|
4
4
|
<%= t("participatory_process_types.edit.title", scope: "decidim.admin") %>
|
5
5
|
</h2>
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
</div>
|
7
|
+
<div class="item__edit item__edit-1col">
|
8
|
+
<div class="item__edit-form">
|
9
|
+
<%= decidim_form_for(@form, html: { class: "form-defaults form edit_participatory_process_type" }) do |f| %>
|
10
|
+
<%= render partial: "form", object: f %>
|
11
|
+
<div class="item__edit-sticky">
|
12
|
+
<div class="item__edit-sticky-container">
|
13
|
+
<%= f.submit t("participatory_process_types.edit.update", scope: "decidim.admin"), class: "button button__sm button__secondary" %>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
9
17
|
</div>
|
10
|
-
|
18
|
+
</div>
|