decidim-participatory_processes 0.27.6 → 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 -72
- data/config/locales/ca.yml +50 -70
- data/config/locales/cs.yml +51 -71
- data/config/locales/de.yml +51 -71
- 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 +51 -71
- 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 -100
- 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 +15 -66
- 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 -65
- data/lib/decidim/participatory_processes/version.rb +1 -1
- data/lib/tasks/decidim_participatory_processes.rake +8 -0
- metadata +65 -70
- 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
@@ -1,204 +1,251 @@
|
|
1
|
-
<div class="
|
2
|
-
<div class="card-
|
3
|
-
<
|
4
|
-
|
1
|
+
<div class="form__wrapper">
|
2
|
+
<div class="card" data-component="accordion" id="accordion-title">
|
3
|
+
<div class="card-divider">
|
4
|
+
<button class="card-divider-button" data-open="true" data-controls="panel-title" type="button">
|
5
|
+
<%= icon "arrow-right-s-line" %>
|
6
|
+
<h2 class="card-title" id="title">
|
7
|
+
<%= t("title", scope: "decidim.participatory_processes.admin.participatory_processes.form") %>
|
8
|
+
</h2>
|
9
|
+
</button>
|
10
|
+
</div>
|
11
|
+
<div id="panel-title" class="card-section">
|
12
|
+
<div class="row column">
|
13
|
+
<%= form.translated :text_field, :title, autofocus: true, aria: { label: :title } %>
|
14
|
+
</div>
|
5
15
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
</div>
|
16
|
+
<div class="row column">
|
17
|
+
<%= form.translated :text_field, :subtitle, aria: { label: :subtitle } %>
|
18
|
+
</div>
|
10
19
|
|
11
|
-
|
12
|
-
|
13
|
-
|
20
|
+
<div class="row column">
|
21
|
+
<%= form.number_field :weight %>
|
22
|
+
</div>
|
14
23
|
|
15
|
-
|
16
|
-
|
17
|
-
|
24
|
+
<div class="row">
|
25
|
+
<div class="columns slug">
|
26
|
+
<%= form.text_field :slug, help_text: t(".slug_help_html", url: decidim_form_slug_url(:processes, form.object.slug)) %>
|
27
|
+
</div>
|
18
28
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
<p class="help-text">
|
23
|
-
<%== t(".slug_help", url: decidim_form_slug_url(:processes, form.object.slug)) %>
|
24
|
-
</p>
|
29
|
+
<div class="columns">
|
30
|
+
<%= form.text_field :hashtag %>
|
31
|
+
</div>
|
25
32
|
</div>
|
26
33
|
|
27
|
-
<div class="
|
28
|
-
<%= form.
|
34
|
+
<div class="row column">
|
35
|
+
<%= form.translated :editor, :short_description, aria: { label: :short_description } %>
|
29
36
|
</div>
|
30
|
-
</div>
|
31
37
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
<div class="row column">
|
37
|
-
<%= form.translated :editor, :description %>
|
38
|
-
</div>
|
38
|
+
<div class="row column">
|
39
|
+
<%= form.translated :editor, :description, aria: { label: :description } %>
|
40
|
+
</div>
|
39
41
|
|
40
|
-
|
41
|
-
|
42
|
-
|
42
|
+
<div class="row column">
|
43
|
+
<%= form.translated :editor, :announcement, help_text: t(".announcement_help") %>
|
44
|
+
</div>
|
43
45
|
</div>
|
44
46
|
</div>
|
45
47
|
|
46
|
-
<div class="card-
|
47
|
-
<
|
48
|
-
|
48
|
+
<div class="card" data-component="accordion" id="accordion-duration">
|
49
|
+
<div class="card-divider">
|
50
|
+
<button class="card-divider-button" data-open="true" data-controls="panel-duration" type="button">
|
51
|
+
<svg viewBox="0 0 24 24" id="ri-arrow-right-s-line">
|
52
|
+
<path fill="none" d="M0 0h24v24H0z" />
|
53
|
+
<path d="M13.172 12l-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z" />
|
54
|
+
</svg>
|
55
|
+
<h2 class="card-title" id="duration">
|
56
|
+
<%= t("duration", scope: "decidim.participatory_processes.admin.participatory_processes.form") %>
|
57
|
+
</h2>
|
58
|
+
</button>
|
59
|
+
</div>
|
49
60
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
61
|
+
<div id="panel-duration" class="card-section">
|
62
|
+
<div class="row">
|
63
|
+
<div class="columns">
|
64
|
+
<%= form.date_field :start_date %>
|
65
|
+
</div>
|
55
66
|
|
56
|
-
|
57
|
-
|
67
|
+
<div class="columns">
|
68
|
+
<%= form.date_field :end_date %>
|
69
|
+
</div>
|
58
70
|
</div>
|
59
71
|
</div>
|
60
72
|
</div>
|
61
73
|
|
62
|
-
<div class="card-
|
63
|
-
<
|
64
|
-
|
74
|
+
<div class="card" data-component="accordion" id="accordion-images">
|
75
|
+
<div class="card-divider">
|
76
|
+
<button class="card-divider-button" data-open="true" data-controls="panel-images" type="button">
|
77
|
+
<%= icon "arrow-right-s-line" %>
|
78
|
+
<h2 class="card-title" id="images">
|
79
|
+
<%= t("images", scope: "decidim.participatory_processes.admin.participatory_processes.form") %>
|
80
|
+
</h2>
|
81
|
+
</button>
|
82
|
+
</div>
|
65
83
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
84
|
+
<div id="panel-images" class="card-section">
|
85
|
+
<div class="row">
|
86
|
+
<div class="columns">
|
87
|
+
<%= form.upload :hero_image, button_class: "button button__sm button__transparent-secondary" %>
|
88
|
+
</div>
|
71
89
|
|
72
|
-
|
73
|
-
|
90
|
+
<div class="columns">
|
91
|
+
<%= form.upload :banner_image, button_class: "button button__sm button__transparent-secondary" %>
|
92
|
+
</div>
|
74
93
|
</div>
|
75
94
|
</div>
|
76
95
|
</div>
|
77
96
|
|
78
|
-
<div class="card-
|
79
|
-
<
|
80
|
-
|
97
|
+
<div class="card" data-component="accordion" id="accordion-metadata">
|
98
|
+
<div class="card-divider">
|
99
|
+
<button class="card-divider-button" data-open="true" data-controls="panel-metadata" type="button">
|
100
|
+
<%= icon "arrow-right-s-line" %>
|
101
|
+
<h2 class="card-title" id="metadata">
|
102
|
+
<%= t("metadata", scope: "decidim.participatory_processes.admin.participatory_processes.form") %>
|
103
|
+
</h2>
|
104
|
+
</button>
|
105
|
+
</div>
|
106
|
+
<div id="panel-metadata" class="card-section">
|
107
|
+
<div class="row">
|
108
|
+
<div class="columns">
|
109
|
+
<%= form.translated :text_field, :developer_group, aria: { label: :developer_group } %>
|
110
|
+
</div>
|
81
111
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<%= form.translated :text_field, :developer_group %>
|
112
|
+
<div class="columns">
|
113
|
+
<%= form.translated :text_field, :local_area, aria: { label: :local_area } %>
|
114
|
+
</div>
|
86
115
|
</div>
|
87
116
|
|
88
|
-
<div class="
|
89
|
-
<%= form.translated :text_field, :
|
117
|
+
<div class="row column">
|
118
|
+
<%= form.translated :text_field, :meta_scope, aria: { label: :meta_scope } %>
|
90
119
|
</div>
|
91
|
-
</div>
|
92
120
|
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
<div class="row column">
|
98
|
-
<%= form.translated :text_field, :target %>
|
99
|
-
</div>
|
121
|
+
<div class="row column">
|
122
|
+
<%= form.translated :text_field, :target, aria: { label: :target } %>
|
123
|
+
</div>
|
100
124
|
|
101
|
-
|
102
|
-
|
103
|
-
|
125
|
+
<div class="row column">
|
126
|
+
<%= form.translated :text_field, :participatory_scope, aria: { label: :participatory_scope } %>
|
127
|
+
</div>
|
104
128
|
|
105
|
-
|
106
|
-
|
129
|
+
<div class="row column">
|
130
|
+
<%= form.translated :text_field, :participatory_structure, aria: { label: :participatory_structure } %>
|
131
|
+
</div>
|
107
132
|
</div>
|
108
133
|
</div>
|
109
134
|
|
110
|
-
<div class="card-
|
111
|
-
<
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
135
|
+
<div class="card" data-component="accordion" id="accordion-filters">
|
136
|
+
<div class="card-divider">
|
137
|
+
<button class="card-divider-button" data-open="true" data-controls="panel-filters" type="button">
|
138
|
+
<%= icon "arrow-right-s-line" %>
|
139
|
+
<h2 class="card-title" id="filters">
|
140
|
+
<%= t("filters", scope: "decidim.participatory_processes.admin.participatory_processes.form") %>
|
141
|
+
</h2>
|
142
|
+
</button>
|
117
143
|
</div>
|
144
|
+
<div id="panel-filters" class="card-section">
|
145
|
+
<div class="row column">
|
146
|
+
<%= form.check_box :scopes_enabled %>
|
147
|
+
</div>
|
118
148
|
|
119
|
-
|
120
|
-
|
149
|
+
<div class="row column">
|
150
|
+
<%= scopes_select_field form, :scope_id, root: nil %>
|
151
|
+
</div>
|
121
152
|
|
122
|
-
<div class="row" id="scope-depth ">
|
153
|
+
<div class="row column" id="scope-depth ">
|
123
154
|
<%= form.collection_select :scope_type_max_depth_id,
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
<p class="help-text">
|
130
|
-
<%== t(".scope_type_max_depth_help") %>
|
131
|
-
</p>
|
155
|
+
organization_scope_depths,
|
156
|
+
:id,
|
157
|
+
:name,
|
158
|
+
scope_type_depth_select_options,
|
159
|
+
scope_type_depth_select_html_options %>
|
132
160
|
</div>
|
133
|
-
</div>
|
134
161
|
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
162
|
+
<div class="row column">
|
163
|
+
<%= form.areas_select :area_id,
|
164
|
+
areas_for_select(current_organization),
|
165
|
+
selected: current_participatory_process.try(:decidim_area_id),
|
166
|
+
include_blank: t(".select_an_area") %>
|
167
|
+
</div>
|
140
168
|
</div>
|
141
169
|
</div>
|
142
170
|
|
143
|
-
<div class="card-
|
144
|
-
<
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
process_groups_for_select,
|
152
|
-
include_blank: t(".select_process_group") %>
|
153
|
-
<% end %>
|
171
|
+
<div class="card" data-component="accordion" id="accordion-visbility">
|
172
|
+
<div class="card-divider">
|
173
|
+
<button class="card-divider-button" data-open="true" data-controls="panel-visbility" type="button">
|
174
|
+
<%= icon "arrow-right-s-line" %>
|
175
|
+
<h2 class="card-title" id="visbility">
|
176
|
+
<%= t("visbility", scope: "decidim.participatory_processes.admin.participatory_processes.form") %>
|
177
|
+
</h2>
|
178
|
+
</button>
|
154
179
|
</div>
|
180
|
+
<div id="panel-visbility" class="card-section">
|
181
|
+
<div class="row column">
|
182
|
+
<% if process_groups_for_select %>
|
183
|
+
<%= form.select :participatory_process_group_id,
|
184
|
+
process_groups_for_select,
|
185
|
+
include_blank: t(".select_process_group") %>
|
186
|
+
<% end %>
|
187
|
+
</div>
|
155
188
|
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
189
|
+
<div class="row column">
|
190
|
+
<%= form.check_box :private_space %>
|
191
|
+
</div>
|
192
|
+
<div class="row column">
|
193
|
+
<%= form.check_box :promoted %>
|
194
|
+
</div>
|
161
195
|
</div>
|
162
196
|
</div>
|
163
197
|
|
164
|
-
<div class="card-
|
165
|
-
<
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
198
|
+
<div class="card" data-component="accordion" id="accordion-related_processes">
|
199
|
+
<div class="card-divider">
|
200
|
+
<button class="card-divider-button" data-open="true" data-controls="panel-related_processes" type="button">
|
201
|
+
<%= icon "arrow-right-s-line" %>
|
202
|
+
<h2 class="card-title" id="related_processes">
|
203
|
+
<%= t("related_processes", scope: "decidim.participatory_processes.admin.participatory_processes.form") %>
|
204
|
+
</h2>
|
205
|
+
</button>
|
206
|
+
</div>
|
207
|
+
<div id="panel-related_processes" class="card-section">
|
208
|
+
<div class="row column">
|
209
|
+
<%= form.select(
|
210
|
+
:related_process_ids,
|
211
|
+
@form.processes.order(title: :asc).map { |process| [translated_attribute(process.title), process.id] },
|
212
|
+
{ include_blank: true },
|
213
|
+
{ multiple: true, class: "chosen-select" }
|
214
|
+
) %>
|
215
|
+
</div>
|
176
216
|
</div>
|
177
217
|
</div>
|
178
218
|
|
179
|
-
<div class="card-
|
180
|
-
<
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
219
|
+
<div class="card" data-component="accordion" id="accordion-other">
|
220
|
+
<div class="card-divider">
|
221
|
+
<button class="card-divider-button" data-open="true" data-controls="panel-other" type="button">
|
222
|
+
<%= icon "arrow-right-s-line" %>
|
223
|
+
<h2 class="card-title" id="other">
|
224
|
+
<%= t("other", scope: "decidim.participatory_processes.admin.participatory_processes.form") %>
|
225
|
+
</h2>
|
226
|
+
</button>
|
186
227
|
</div>
|
187
228
|
|
188
|
-
<div
|
189
|
-
|
190
|
-
|
229
|
+
<div id="panel-other" class="card-section">
|
230
|
+
<div class="row column">
|
231
|
+
<%= form.check_box :show_statistics %>
|
232
|
+
</div>
|
191
233
|
|
192
|
-
<% if @form.participatory_process_types_for_select.present? %>
|
193
234
|
<div class="row column">
|
194
|
-
<%= form.
|
195
|
-
:participatory_process_type_id,
|
196
|
-
@form.participatory_process_types_for_select,
|
197
|
-
include_blank: t(".select_participatory_process_type")
|
198
|
-
) %>
|
235
|
+
<%= form.check_box :show_metrics %>
|
199
236
|
</div>
|
200
|
-
|
237
|
+
|
238
|
+
<% if @form.participatory_process_types_for_select.present? %>
|
239
|
+
<div class="row column">
|
240
|
+
<%= form.select(
|
241
|
+
:participatory_process_type_id,
|
242
|
+
@form.participatory_process_types_for_select,
|
243
|
+
include_blank: t(".select_participatory_process_type")
|
244
|
+
) %>
|
245
|
+
</div>
|
246
|
+
<% end %>
|
247
|
+
</div>
|
201
248
|
</div>
|
202
|
-
</div>
|
203
249
|
|
204
|
-
|
250
|
+
</div>
|
251
|
+
<%= append_javascript_pack_tag "decidim_participatory_processes_admin" %>
|
@@ -1,14 +1,28 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
<% add_decidim_page_title(t("info", scope: "decidim.admin.menu.participatory_processes_submenu")) %>
|
2
|
+
<% add_decidim_page_title(translated_attribute(current_participatory_space.title)) %>
|
3
|
+
<div class="item_show__header">
|
4
|
+
<h2 class="item_show__header-title">
|
5
|
+
<%= t("info", scope: "decidim.admin.menu.participatory_processes_submenu") %>
|
6
|
+
</h2>
|
7
|
+
</div>
|
5
8
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
<div class="item__edit item__edit-1col">
|
10
|
+
<div class="item__edit-form">
|
11
|
+
<%= decidim_form_for(@form, html: { class: "form form-defaults edit_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_processes.edit.update", scope: "decidim.admin"), class: "button button__sm button__secondary" %>
|
16
|
+
|
17
|
+
<% if allowed_to? :publish, :process, process: current_participatory_process %>
|
18
|
+
<% if current_participatory_process.published? %>
|
19
|
+
<%= link_to t("actions.unpublish", scope: "decidim.admin"), participatory_process_publish_path(current_participatory_process), method: :delete, class: "button button__sm button__secondary" %>
|
20
|
+
<% else %>
|
21
|
+
<%= link_to t("actions.publish", scope: "decidim.admin"), participatory_process_publish_path(current_participatory_process), method: :post, class: "button button__sm button__secondary" %>
|
22
|
+
<% end %>
|
23
|
+
<% end %>
|
24
|
+
</div>
|
25
|
+
</div>
|
12
26
|
<% end %>
|
13
27
|
</div>
|
14
|
-
|
28
|
+
</div>
|