decidim-admin 0.28.5 → 0.29.0.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +13 -0
- data/app/cells/decidim/admin/content_block_cell.rb +0 -1
- data/app/cells/decidim/admin/results_per_page/show.erb +2 -2
- data/app/cells/decidim/admin/results_per_page_cell.rb +0 -2
- data/app/commands/decidim/admin/block_user.rb +0 -1
- data/app/commands/decidim/admin/create_area.rb +4 -32
- data/app/commands/decidim/admin/create_area_type.rb +4 -33
- data/app/commands/decidim/admin/create_attachment.rb +5 -4
- data/app/commands/decidim/admin/create_attachment_collection.rb +3 -3
- data/app/commands/decidim/admin/create_category.rb +4 -37
- data/app/commands/decidim/admin/create_component.rb +7 -40
- data/app/commands/decidim/admin/create_newsletter.rb +11 -29
- data/app/commands/decidim/admin/create_participatory_space_private_user.rb +4 -4
- data/app/commands/decidim/admin/create_scope.rb +15 -32
- data/app/commands/decidim/admin/create_scope_type.rb +3 -32
- data/app/commands/decidim/admin/create_static_page.rb +6 -47
- data/app/commands/decidim/admin/create_static_page_topic.rb +4 -26
- data/app/commands/decidim/admin/deliver_newsletter.rb +4 -5
- data/app/commands/decidim/admin/destroy_area.rb +2 -25
- data/app/commands/decidim/admin/destroy_category.rb +4 -29
- data/app/commands/decidim/admin/destroy_component.rb +5 -43
- data/app/commands/decidim/admin/destroy_newsletter.rb +2 -30
- data/app/commands/decidim/admin/destroy_participatory_space_private_user.rb +5 -32
- data/app/commands/decidim/admin/destroy_scope.rb +6 -33
- data/app/commands/decidim/admin/officialize_user.rb +1 -1
- data/app/commands/decidim/admin/participatory_space/create_admin.rb +4 -4
- data/app/commands/decidim/admin/process_participatory_space_private_user_import_csv.rb +5 -4
- data/app/commands/decidim/admin/promote_managed_user.rb +4 -5
- data/app/commands/decidim/admin/unofficialize_user.rb +1 -1
- data/app/commands/decidim/admin/update_area.rb +2 -41
- data/app/commands/decidim/admin/update_area_type.rb +2 -42
- data/app/commands/decidim/admin/update_attachment.rb +10 -7
- data/app/commands/decidim/admin/update_attachment_collection.rb +3 -3
- data/app/commands/decidim/admin/update_category.rb +2 -45
- data/app/commands/decidim/admin/update_component.rb +4 -5
- data/app/commands/decidim/admin/update_component_permissions.rb +3 -3
- data/app/commands/decidim/admin/{update_external_domain_whitelist.rb → update_external_domain_allowlist.rb} +6 -5
- data/app/commands/decidim/admin/update_help_sections.rb +6 -3
- data/app/commands/decidim/admin/update_newsletter.rb +8 -8
- data/app/commands/decidim/admin/update_organization.rb +9 -53
- data/app/commands/decidim/admin/update_organization_appearance.rb +10 -81
- data/app/commands/decidim/admin/update_scope.rb +7 -40
- data/app/commands/decidim/admin/update_scope_type.rb +2 -42
- data/app/commands/decidim/admin/update_static_page.rb +5 -46
- data/app/commands/decidim/admin/update_static_page_topic.rb +2 -43
- data/app/constraints/decidim/admin/organization_dashboard_constraint.rb +1 -1
- data/app/controllers/concerns/decidim/admin/content_blocks/landing_page.rb +2 -2
- data/app/controllers/concerns/decidim/admin/filterable.rb +79 -4
- data/app/controllers/concerns/decidim/admin/global_moderation_context.rb +1 -1
- data/app/controllers/concerns/decidim/admin/needs_admin_tos_accepted.rb +0 -7
- data/app/controllers/concerns/decidim/admin/paginable.rb +20 -0
- data/app/controllers/concerns/decidim/admin/participatory_space_export.rb +1 -1
- data/app/controllers/decidim/admin/application_controller.rb +2 -1
- data/app/controllers/decidim/admin/area_types_controller.rb +8 -9
- data/app/controllers/decidim/admin/areas_controller.rb +1 -1
- data/app/controllers/decidim/admin/authorization_workflows_controller.rb +1 -1
- data/app/controllers/decidim/admin/block_user_controller.rb +1 -1
- data/app/controllers/decidim/admin/categories_controller.rb +2 -2
- data/app/controllers/decidim/admin/component_permissions_controller.rb +1 -1
- data/app/controllers/decidim/admin/components_controller.rb +2 -2
- data/app/controllers/decidim/admin/concerns/has_attachment_collections.rb +2 -2
- data/app/controllers/decidim/admin/concerns/has_attachments.rb +2 -2
- data/app/controllers/decidim/admin/concerns/has_private_users.rb +1 -1
- data/app/controllers/decidim/admin/concerns/has_private_users_csv_import.rb +1 -1
- data/app/controllers/decidim/admin/conflicts_controller.rb +6 -14
- data/app/controllers/decidim/admin/help_sections_controller.rb +1 -1
- data/app/controllers/decidim/admin/impersonations_controller.rb +0 -1
- data/app/controllers/decidim/admin/managed_users/promotions_controller.rb +1 -1
- data/app/controllers/decidim/admin/moderations/reports_controller.rb +4 -4
- data/app/controllers/decidim/admin/moderations_controller.rb +7 -7
- data/app/controllers/decidim/admin/newsletter_templates_controller.rb +1 -1
- data/app/controllers/decidim/admin/newsletters_controller.rb +6 -7
- data/app/controllers/decidim/admin/organization_appearance_controller.rb +1 -1
- data/app/controllers/decidim/admin/organization_controller.rb +1 -1
- data/app/controllers/decidim/admin/{organization_external_domain_whitelist_controller.rb → organization_external_domain_allowlist_controller.rb} +7 -7
- data/app/controllers/decidim/admin/scope_types_controller.rb +7 -8
- data/app/controllers/decidim/admin/scopes_controller.rb +1 -1
- data/app/controllers/decidim/admin/share_tokens_controller.rb +1 -1
- data/app/controllers/decidim/admin/static_page_topics_controller.rb +2 -2
- data/app/controllers/decidim/admin/static_pages_controller.rb +2 -2
- data/app/forms/decidim/admin/attachment_form.rb +7 -1
- data/app/forms/decidim/admin/help_section_form.rb +1 -1
- data/app/forms/decidim/admin/impersonate_user_form.rb +0 -5
- data/app/forms/decidim/admin/organization_appearance_form.rb +2 -5
- data/app/forms/decidim/admin/{organization_external_domain_whitelist_form.rb → organization_external_domain_allowlist_form.rb} +3 -3
- data/app/forms/decidim/admin/organization_form.rb +4 -4
- data/app/forms/decidim/admin/static_page_form.rb +1 -2
- data/app/forms/decidim/admin/transfer_user_form.rb +0 -15
- data/app/helpers/decidim/admin/application_helper.rb +0 -13
- data/app/helpers/decidim/admin/filterable_helper.rb +19 -3
- data/app/helpers/decidim/admin/moderations/reports_helper.rb +3 -1
- data/app/helpers/decidim/admin/newsletters_helper.rb +3 -3
- data/app/helpers/decidim/admin/paginable/per_page_helper.rb +22 -0
- data/app/jobs/decidim/admin/import_participatory_space_private_user_csv_job.rb +2 -2
- data/app/packs/entrypoints/decidim_admin.js +4 -1
- data/app/packs/src/decidim/admin/application.js +19 -15
- data/app/packs/src/decidim/admin/css_preview.js +39 -0
- data/app/packs/src/decidim/admin/form.js +18 -1
- data/app/packs/src/decidim/admin/newsletters.js +9 -18
- data/app/packs/src/decidim/admin/participatory_space_search.js +1 -1
- data/app/packs/src/decidim/admin/proposal_infinite_edit.js +2 -2
- data/app/packs/src/decidim/admin/sync_radio_buttons.js +27 -0
- data/app/packs/src/decidim/admin/text_copy.js +19 -0
- data/app/packs/stylesheets/decidim/admin/_cards.scss +1 -1
- data/app/packs/stylesheets/decidim/admin/_datepicker.scss +62 -0
- data/app/packs/stylesheets/decidim/admin/_item_edit.scss +1 -1
- data/app/packs/stylesheets/decidim/admin/_item_show.scss +8 -0
- data/app/packs/stylesheets/decidim/admin/_moderations.scss +0 -8
- data/app/packs/stylesheets/decidim/admin/_proposal_status.scss +5 -0
- data/app/packs/stylesheets/decidim/admin/application.scss +2 -0
- data/app/permissions/decidim/admin/permissions.rb +2 -2
- data/app/queries/decidim/admin/newsletter_recipients.rb +5 -9
- data/app/queries/decidim/admin/user_filter.rb +4 -4
- data/app/queries/decidim/admin/user_groups_evaluation.rb +1 -1
- data/app/views/decidim/admin/attachment_collections/index.html.erb +1 -1
- data/app/views/decidim/admin/attachments/_form.html.erb +21 -2
- data/app/views/decidim/admin/attachments/index.html.erb +2 -2
- data/app/views/decidim/admin/authorization_workflows/index.html.erb +26 -8
- data/app/views/decidim/admin/block_user/new.html.erb +1 -1
- data/app/views/decidim/admin/categories/index.html.erb +2 -2
- data/app/views/decidim/admin/components/_form.html.erb +1 -1
- data/app/views/decidim/admin/components/index.html.erb +1 -5
- data/app/views/decidim/admin/conflicts/edit.html.erb +11 -21
- data/app/views/decidim/admin/conflicts/index.html.erb +6 -29
- data/app/views/decidim/admin/dashboard/_pending_moderations.html.erb +1 -1
- data/app/views/decidim/admin/dashboard/show.html.erb +1 -1
- data/app/views/decidim/admin/exports/_dropdown.html.erb +6 -6
- data/app/views/decidim/admin/impersonatable_users/index.html.erb +3 -3
- data/app/views/decidim/admin/imports/_dropdown.html.erb +5 -7
- data/app/views/decidim/admin/imports/new.html.erb +6 -7
- data/app/views/decidim/admin/logs/_filters.html.erb +3 -3
- data/app/views/decidim/admin/managed_users/promotions/new.html.erb +1 -1
- data/app/views/decidim/admin/moderated_users/index.html.erb +4 -4
- data/app/views/decidim/admin/moderations/index.html.erb +5 -5
- data/app/views/decidim/admin/moderations/reports/index.html.erb +6 -6
- data/app/views/decidim/admin/moderations/reports/show.html.erb +4 -4
- data/app/views/decidim/admin/newsletter_templates/index.html.erb +3 -2
- data/app/views/decidim/admin/newsletter_templates/show.html.erb +7 -7
- data/app/views/decidim/admin/newsletters/index.html.erb +1 -1
- data/app/views/decidim/admin/newsletters/select_recipients_to_deliver.html.erb +6 -7
- data/app/views/decidim/admin/newsletters/show.html.erb +1 -1
- data/app/views/decidim/admin/organization/_form.html.erb +3 -3
- data/app/views/decidim/admin/organization_appearance/form/_colors.html.erb +0 -3
- data/app/views/decidim/admin/organization_appearance/form/_images.html.erb +5 -5
- data/app/views/decidim/admin/organization_appearance/form/_minimap.html.erb +3 -3
- data/app/views/decidim/admin/{organization_external_domain_whitelist → organization_external_domain_allowlist}/_external_domain.html.erb +4 -4
- data/app/views/decidim/admin/{organization_external_domain_whitelist → organization_external_domain_allowlist}/_form.html.erb +2 -2
- data/app/views/decidim/admin/{organization_external_domain_whitelist → organization_external_domain_allowlist}/edit.html.erb +2 -2
- data/app/views/decidim/admin/participatory_space_private_users/index.html.erb +1 -1
- data/app/views/decidim/admin/participatory_space_private_users_csv_imports/new.html.erb +1 -1
- data/app/views/decidim/admin/share_tokens/_share_tokens.html.erb +1 -1
- data/app/views/decidim/admin/shared/_adjacent_navigation.html.erb +30 -0
- data/app/views/decidim/admin/shared/_admin_confirm_modal.html.erb +7 -7
- data/app/views/decidim/admin/shared/_filters.html.erb +1 -1
- data/app/views/decidim/admin/shared/_gallery.html.erb +1 -1
- data/app/views/decidim/admin/shared/landing_page/_content_blocks.html.erb +2 -2
- data/app/views/decidim/admin/shared/landing_page_content_blocks/edit.html.erb +1 -1
- data/app/views/decidim/admin/static_page_topics/index.html.erb +1 -1
- data/app/views/decidim/admin/static_pages/_form.html.erb +0 -4
- data/app/views/decidim/admin/users_statistics/_users_count.html.erb +2 -2
- data/app/views/layouts/decidim/admin/_admin_timeout_modal.html.erb +2 -2
- data/app/views/layouts/decidim/admin/_application.html.erb +4 -4
- data/app/views/layouts/decidim/admin/_callouts_full.html.erb +1 -1
- data/app/views/layouts/decidim/admin/_js_configuration.html.erb +3 -1
- data/app/views/layouts/decidim/admin/_title_bar.html.erb +2 -2
- data/app/views/layouts/decidim/admin/_title_bar_responsive.html.erb +2 -2
- data/config/locales/ar.yml +1 -54
- data/config/locales/bg.yml +15 -12
- data/config/locales/ca.yml +18 -15
- data/config/locales/cs.yml +15 -17
- data/config/locales/de.yml +18 -15
- data/config/locales/el.yml +0 -11
- data/config/locales/en.yml +15 -12
- data/config/locales/es-MX.yml +17 -14
- data/config/locales/es-PY.yml +17 -14
- data/config/locales/es.yml +19 -16
- data/config/locales/eu.yml +145 -154
- data/config/locales/fi-plain.yml +18 -15
- data/config/locales/fi.yml +39 -36
- data/config/locales/fr-CA.yml +15 -12
- data/config/locales/fr.yml +13 -10
- data/config/locales/ga-IE.yml +0 -3
- data/config/locales/gl.yml +2 -6
- data/config/locales/hu.yml +9 -10
- data/config/locales/id-ID.yml +0 -7
- data/config/locales/is-IS.yml +0 -15
- data/config/locales/it.yml +3 -10
- data/config/locales/ja.yml +20 -17
- data/config/locales/kaa.yml +3 -3
- data/config/locales/ko.yml +1 -6
- data/config/locales/lb.yml +4 -11
- data/config/locales/lt.yml +0 -12
- data/config/locales/lv.yml +2 -6
- data/config/locales/nl.yml +1 -8
- data/config/locales/no.yml +1 -8
- data/config/locales/pl.yml +15 -10
- data/config/locales/pt-BR.yml +8 -12
- data/config/locales/pt.yml +0 -11
- data/config/locales/ro-RO.yml +5 -22
- data/config/locales/ru.yml +1 -6
- data/config/locales/sk.yml +2 -6
- data/config/locales/sl.yml +2 -0
- data/config/locales/sq-AL.yml +3 -3
- data/config/locales/sr-CS.yml +3 -6
- data/config/locales/sv.yml +209 -357
- data/config/locales/th-TH.yml +0 -13
- data/config/locales/tr-TR.yml +2 -6
- data/config/locales/uk.yml +0 -6
- data/config/locales/zh-CN.yml +6 -3
- data/config/locales/zh-TW.yml +0 -11
- data/config/routes.rb +2 -2
- data/decidim-admin.gemspec +2 -2
- data/lib/decidim/admin/engine.rb +0 -1
- data/lib/decidim/admin/import/creator.rb +1 -1
- data/lib/decidim/admin/import/importer_factory.rb +2 -2
- data/lib/decidim/admin/menu.rb +4 -4
- data/lib/decidim/admin/test/commands/create_attachment_collection_examples.rb +3 -2
- data/lib/decidim/admin/test/commands/create_category_examples.rb +4 -2
- data/lib/decidim/admin/test/commands/update_attachment_collection_examples.rb +3 -2
- data/lib/decidim/admin/test/commands/update_category_examples.rb +3 -2
- data/lib/decidim/admin/test/filterable_examples.rb +5 -3
- data/lib/decidim/admin/test/filters_participatory_space_user_roles_examples.rb +5 -5
- data/lib/decidim/admin/test/invite_participatory_space_admins_shared_examples.rb +1 -1
- data/lib/decidim/admin/test/invite_participatory_space_users_shared_context.rb +0 -1
- data/lib/decidim/admin/test/manage_attachment_collections_examples.rb +12 -12
- data/lib/decidim/admin/test/manage_attachments_examples.rb +52 -28
- data/lib/decidim/admin/test/manage_categories_examples.rb +13 -13
- data/lib/decidim/admin/test/manage_component_permissions_examples.rb +5 -5
- data/lib/decidim/admin/test/manage_hide_content_examples.rb +4 -4
- data/lib/decidim/admin/test/manage_moderations_examples.rb +21 -21
- data/lib/decidim/admin/test/manage_paginated_collection_examples.rb +5 -5
- data/lib/decidim/admin/test/manage_participatory_space_publications_examples.rb +2 -2
- data/lib/decidim/admin/version.rb +1 -1
- data/lib/decidim/admin.rb +15 -0
- metadata +28 -27
- data/app/commands/decidim/admin/destroy_share_token.rb +0 -46
- data/app/commands/decidim/admin/destroy_static_page.rb +0 -40
- data/app/commands/decidim/admin/destroy_static_page_topic.rb +0 -40
- data/app/controllers/concerns/decidim/admin/verification_conflicts/filterable.rb +0 -31
- data/app/views/layouts/decidim/admin/login.html.erb +0 -19
- data/config/locales/bn-BD.yml +0 -1
- data/config/locales/bs-BA.yml +0 -528
- /data/app/packs/src/decidim/admin/{external_domain_whitelist.js → external_domain_allowlist.js} +0 -0
@@ -5,24 +5,23 @@
|
|
5
5
|
|
6
6
|
<div id="js-other-actions-wrapper">
|
7
7
|
<% if import_manifest.has_example? %>
|
8
|
-
<span class="imports-example
|
8
|
+
<span class="imports-example button button__sm button__secondary mr-2" data-toggle="example-dropdown">
|
9
9
|
<%= t(".download_example") %>
|
10
10
|
<%= icon "arrow-down-s-line", class: "dropdown-filter-icon" %>
|
11
11
|
</span>
|
12
12
|
<div class="dropdown-pane" id="example-dropdown" data-dropdown data-position=bottom data-alignment=right data-auto-focus="true" data-close-on-click="true">
|
13
13
|
<ul class="vertical menu add-components">
|
14
14
|
<% mime_types.each do |format, name| %>
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
<% end %>
|
15
|
+
<li class="examples--format--<%= format.downcase %> examples--<%= import_manifest.name %>">
|
16
|
+
<%= link_to t(".download_example_format", name:),
|
17
|
+
admin_imports_example_path(@current_component, name: import_manifest.name, format:) %>
|
18
|
+
</li>
|
20
19
|
<% end %>
|
21
20
|
</ul>
|
22
21
|
</div>
|
23
22
|
<% end %>
|
24
23
|
|
25
|
-
<%= link_to t(".actions.back"), manage_component_path(@current_component), class: "button button__sm button__secondary hollow
|
24
|
+
<%= link_to t(".actions.back"), manage_component_path(@current_component), class: "button button__sm button__secondary hollow button--simple" %>
|
26
25
|
</div>
|
27
26
|
</h1>
|
28
27
|
</div>
|
@@ -11,14 +11,14 @@
|
|
11
11
|
} %>
|
12
12
|
</div>
|
13
13
|
<div class="row column">
|
14
|
-
<%= form.datetime_field :created_at_dtgteq %>
|
14
|
+
<%= form.datetime_field :created_at_dtgteq, hide_help: true %>
|
15
15
|
</div>
|
16
16
|
<div class="row column">
|
17
|
-
<%= form.datetime_field :created_at_dtlteq %>
|
17
|
+
<%= form.datetime_field :created_at_dtlteq, hide_help: true, default_time: "23:59" %>
|
18
18
|
</div>
|
19
19
|
<div class="row column">
|
20
20
|
<div class="grid grid-cols-[70%_30%] items-end gap-x-4">
|
21
|
-
<div class="cell
|
21
|
+
<div class="cell">
|
22
22
|
<%= form.search_field(search_field_predicate, class: "input-group-field", label: t(".user"), placeholder: t(".text")) %>
|
23
23
|
</div>
|
24
24
|
<div class="cell">
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<th><%= t(".reason") %></th>
|
22
22
|
<th><%= sort_link(query, :created_at, t("models.moderation.fields.created_at", scope: "decidim.moderations")) %></th>
|
23
23
|
<th><%= sort_link(query, :report_count, t(".reports"), default_order: :desc) %></th>
|
24
|
-
<th
|
24
|
+
<th><%= t(".actions.title") %></th>
|
25
25
|
</tr>
|
26
26
|
</thead>
|
27
27
|
<tbody>
|
@@ -45,15 +45,15 @@
|
|
45
45
|
<%= moderation.report_count %>
|
46
46
|
</td>
|
47
47
|
|
48
|
-
<td
|
48
|
+
<td>
|
49
49
|
<% if !moderation.user.blocked? && allowed_to?(:unreport, :moderate_users) %>
|
50
50
|
<%= icon_link_to "arrow-go-back-line", ignore_moderated_user_path(id: moderation), t(".actions.unreport"), class: "action-icon--unreport", method: :put %>
|
51
51
|
<% end %>
|
52
52
|
<% if allowed_to?(:block, :moderate_users) %>
|
53
53
|
<% if moderation.user.blocked? %>
|
54
|
-
<%= icon_link_to "
|
54
|
+
<%= icon_link_to "forbid-2-line", user_block_path(user_id: moderation.user.id), t(".actions.unblock"), class: "action-icon action-icon--disabled", method: :delete %>
|
55
55
|
<% else %>
|
56
|
-
|
56
|
+
<%= icon_link_to "forbid-2-line", new_user_block_path(user_id: moderation.user.id), t(".actions.block"), class: "action-icon action-icon" %>
|
57
57
|
<% end %>
|
58
58
|
<% end %>
|
59
59
|
</td>
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<% if params[:hidden] %>
|
28
28
|
<th><%= t("models.moderation.fields.hidden_at", scope: "decidim.moderations") %></th>
|
29
29
|
<% end %>
|
30
|
-
<th
|
30
|
+
<th><%= t("actions.title", scope: "decidim.moderations") %></th>
|
31
31
|
</tr>
|
32
32
|
</thead>
|
33
33
|
<tbody>
|
@@ -69,22 +69,22 @@
|
|
69
69
|
<%= l(moderation.hidden_at, format: :long) if moderation.hidden_at.present? %>
|
70
70
|
</td>
|
71
71
|
<% end %>
|
72
|
-
<td
|
72
|
+
<td>
|
73
73
|
<%= icon_link_to "fullscreen-line",
|
74
74
|
moderation_reports_path(moderation_id: moderation),
|
75
75
|
t("actions.expand", scope: "decidim.moderations"),
|
76
76
|
class: "action-icon--expand" %>
|
77
|
-
<% if !moderation.reportable.hidden? && allowed_to?(:unreport,
|
77
|
+
<% if !moderation.reportable.hidden? && allowed_to?(:unreport, authorization_scope) %>
|
78
78
|
<%= icon_link_to "arrow-go-back-line",
|
79
79
|
unreport_moderation_path(id: moderation),
|
80
80
|
t("actions.unreport", scope: "decidim.moderations"),
|
81
81
|
class: "action-icon--unreport",
|
82
82
|
method: :put %>
|
83
83
|
<% end %>
|
84
|
-
<% if !moderation.reportable.hidden? && allowed_to?(:hide,
|
84
|
+
<% if !moderation.reportable.hidden? && allowed_to?(:hide, authorization_scope) %>
|
85
85
|
<%= icon_link_to "eye-line", hide_moderation_path(id: moderation), t("actions.hide", scope: "decidim.moderations"), class: "action-icon--hide", method: :put %>
|
86
86
|
<% end %>
|
87
|
-
<% if moderation.reportable.hidden? && allowed_to?(:unhide,
|
87
|
+
<% if moderation.reportable.hidden? && allowed_to?(:unhide, authorization_scope) %>
|
88
88
|
<%= icon_link_to "eye-line", unhide_moderation_path(id: moderation), t("actions.unhide", scope: "decidim.moderations"), method: :put %>
|
89
89
|
<% end %>
|
90
90
|
</td>
|
@@ -38,7 +38,7 @@
|
|
38
38
|
<% end %>
|
39
39
|
</dt>
|
40
40
|
<dd class="reported-content">
|
41
|
-
<div
|
41
|
+
<div>
|
42
42
|
<%= reported_content_for moderation.reportable %>
|
43
43
|
</div>
|
44
44
|
<% if translatable_resource?(moderation.reportable) %>
|
@@ -70,7 +70,7 @@
|
|
70
70
|
<th><%= t("models.report.fields.reason", scope: "decidim.moderations") %></th>
|
71
71
|
<th><%= t("models.report.fields.locale", scope: "decidim.moderations") %></th>
|
72
72
|
<th><%= t("models.report.fields.details", scope: "decidim.moderations") %></th>
|
73
|
-
<th
|
73
|
+
<th><%= t("actions.title", scope: "decidim.moderations") %></th>
|
74
74
|
</tr>
|
75
75
|
</thead>
|
76
76
|
<tbody>
|
@@ -79,7 +79,7 @@
|
|
79
79
|
<td><%= t("decidim.admin.moderations.report.reasons.#{report.reason}") %></td>
|
80
80
|
<td><%= report.locale.present? ? locale_name(report.locale) : "" %></td>
|
81
81
|
<td><%= report.details&.truncate(250) %></td>
|
82
|
-
<td
|
82
|
+
<td>
|
83
83
|
<%= icon_link_to "fullscreen-line",
|
84
84
|
moderation_report_path(moderation_id: moderation, id: report.id),
|
85
85
|
t("actions.expand", scope: "decidim.moderations"),
|
@@ -92,13 +92,13 @@
|
|
92
92
|
</div>
|
93
93
|
<div class="item__edit-sticky">
|
94
94
|
<div class="item__edit-sticky-container">
|
95
|
-
<% if !moderation.reportable.hidden? && allowed_to?(:unreport,
|
95
|
+
<% if !moderation.reportable.hidden? && allowed_to?(:unreport, authorization_scope) %>
|
96
96
|
<%= link_to t("actions.unreport", scope: "decidim.moderations"), unreport_moderation_path(id: moderation), method: :put, class: "button button__sm button__secondary" %>
|
97
97
|
<% end %>
|
98
|
-
<% if !moderation.reportable.hidden? && allowed_to?(:hide,
|
98
|
+
<% if !moderation.reportable.hidden? && allowed_to?(:hide, authorization_scope) %>
|
99
99
|
<%= link_to t("actions.hide", scope: "decidim.moderations"), hide_moderation_path(id: moderation), method: :put, class: "button button__sm button__secondary alert" %>
|
100
100
|
<% end %>
|
101
|
-
<% if moderation.reportable.hidden? && allowed_to?(:unhide,
|
101
|
+
<% if moderation.reportable.hidden? && allowed_to?(:unhide, authorization_scope) %>
|
102
102
|
<%= link_to t("actions.unhide", scope: "decidim.moderations"), unhide_moderation_path(id: moderation), method: :put, class: "button button__sm button__secondary alert" %>
|
103
103
|
<% end %>
|
104
104
|
</div>
|
@@ -31,7 +31,7 @@
|
|
31
31
|
<% end %>
|
32
32
|
</dt>
|
33
33
|
<dd class="reported-content">
|
34
|
-
<div
|
34
|
+
<div>
|
35
35
|
<%= reported_content_for moderation.reportable, locale: @report.locale %>
|
36
36
|
</div>
|
37
37
|
<% if translatable_resource?(moderation.reportable) %>
|
@@ -51,13 +51,13 @@
|
|
51
51
|
|
52
52
|
<div class="item__edit-sticky">
|
53
53
|
<div class="item__edit-sticky-container">
|
54
|
-
<% if !moderation.reportable.hidden? && allowed_to?(:unreport,
|
54
|
+
<% if !moderation.reportable.hidden? && allowed_to?(:unreport, authorization_scope) %>
|
55
55
|
<%= link_to t("actions.unreport", scope: "decidim.moderations"), unreport_moderation_path(id: moderation), method: :put, class: "button button__sm button__secondary" %>
|
56
56
|
<% end %>
|
57
|
-
<% if !moderation.reportable.hidden? && allowed_to?(:hide,
|
57
|
+
<% if !moderation.reportable.hidden? && allowed_to?(:hide, authorization_scope) %>
|
58
58
|
<%= link_to t("actions.hide", scope: "decidim.moderations"), hide_moderation_path(id: moderation), method: :put, class: "button button__sm button__secondary alert" %>
|
59
59
|
<% end %>
|
60
|
-
<% if moderation.reportable.hidden? && allowed_to?(:unhide,
|
60
|
+
<% if moderation.reportable.hidden? && allowed_to?(:unhide, authorization_scope) %>
|
61
61
|
<%= link_to t("actions.unhide", scope: "decidim.moderations"), unhide_moderation_path(id: moderation), method: :put, class: "button button__sm button__secondary alert" %>
|
62
62
|
<% end %>
|
63
63
|
</div>
|
@@ -3,14 +3,15 @@
|
|
3
3
|
<div class="item_show__header">
|
4
4
|
<h1 class="item_show__header-title">
|
5
5
|
<%= t ".title" %>
|
6
|
+
<%= link_to t("actions.newsletter.new", scope: "decidim.admin"), [:newsletter_templates], class: "button button__sm button__secondary expanded small new" %>
|
6
7
|
</h1>
|
7
8
|
</div>
|
8
9
|
|
9
10
|
<div class="card-section">
|
10
11
|
<div class="grid md:grid-cols-2 gap-x-8 p-4">
|
11
12
|
<% templates.each do |newsletter_template| %>
|
12
|
-
<div class="card
|
13
|
-
<iframe src="<%= preview_newsletter_template_path(newsletter_template.name) %>" class="
|
13
|
+
<div class="card pb-12 md:pb-0" id="<%= newsletter_template.name %>">
|
14
|
+
<iframe src="<%= preview_newsletter_template_path(newsletter_template.name) %>" class="w-full h-[60dvh]" data-email-preview>
|
14
15
|
</iframe>
|
15
16
|
<div class="card-footer">
|
16
17
|
<h2 class="card-title flex items-center">
|
@@ -6,14 +6,14 @@
|
|
6
6
|
</div>
|
7
7
|
<div class="item__edit-form">
|
8
8
|
<div class="card">
|
9
|
-
<div class="card-section
|
10
|
-
<iframe src="<%= preview_newsletter_template_path(template_manifest.name) %>" class="
|
9
|
+
<div class="card-section">
|
10
|
+
<iframe src="<%= preview_newsletter_template_path(template_manifest.name) %>" class="w-full h-[60dvh]" data-email-preview>
|
11
11
|
</iframe>
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
<div class="item__edit-sticky">
|
15
|
+
<div class="item__edit-sticky-container">
|
16
|
+
<%= link_to(t(".use_template"), new_newsletter_template_newsletter_path(template_manifest.name), class: "button button__sm button__secondary") %>
|
17
17
|
</div>
|
18
18
|
</div>
|
19
19
|
</div>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<%= t ".title" %>
|
6
6
|
<div class="flex ml-auto items-center gap-x-4">
|
7
7
|
<strong class="font-bold text-md text-gray-2"><%= t("newsletters.index.subscribed_count", scope: "decidim.admin") %></strong>
|
8
|
-
<span class="
|
8
|
+
<span data-subscribed-count class="font-semibold text-md text-gray-2"><%= recipients_count_query %></span>
|
9
9
|
<% if allowed_to? :create, :newsletter %>
|
10
10
|
<%= link_to t("actions.newsletter.new", scope: "decidim.admin"), [:newsletter_templates], class: "button button__sm button__secondary new" %>
|
11
11
|
<% end %>
|
@@ -22,14 +22,14 @@
|
|
22
22
|
<div class="card-section">
|
23
23
|
<div class="row column">
|
24
24
|
<% if current_user.admin? %>
|
25
|
-
<div class="grid-x
|
25
|
+
<div class="grid-x">
|
26
26
|
<div class="cell small-12" id="send_newsletter_to_all_users">
|
27
27
|
<%= f.check_box :send_to_all_users, help_text: t(".all_users_help") %>
|
28
28
|
</div>
|
29
29
|
</div>
|
30
|
-
<hr
|
30
|
+
<hr>
|
31
31
|
<% end %>
|
32
|
-
<div class="grid-x
|
32
|
+
<div class="grid-x">
|
33
33
|
<div class="cell small-12 medium-6" id="send_newsletter_to_followers">
|
34
34
|
<%= f.check_box :send_to_participants, help_text: t(".participants_help") %>
|
35
35
|
</div>
|
@@ -54,14 +54,13 @@
|
|
54
54
|
</div>
|
55
55
|
|
56
56
|
<% if current_user.admin? %>
|
57
|
-
<div class="card
|
57
|
+
<div class="card">
|
58
58
|
<div class="card-divider">
|
59
59
|
<h2 class="card-title"><%= t ".select_scopes" %></h2>
|
60
60
|
</div>
|
61
61
|
<div class="card-section">
|
62
|
-
<div class="
|
63
|
-
<%=
|
64
|
-
<span class="help-text"> <%= t(".scopes_help") %> </span>
|
62
|
+
<div class="row column">
|
63
|
+
<%= scopes_picker_filter f, :scope_ids, help_text: t(".scopes_help") %>
|
65
64
|
</div>
|
66
65
|
</div>
|
67
66
|
</div>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<dt class="font-bold"><%= t("models.newsletter.fields.sent_to", scope: "decidim.admin") %></dt>
|
22
22
|
<dd><%= selective_newsletter_to newsletter %></dd>
|
23
23
|
</dl>
|
24
|
-
<iframe src="<%= preview_newsletter_path(@newsletter) %>" class="
|
24
|
+
<iframe src="<%= preview_newsletter_path(@newsletter) %>" class="w-full h-[60lvh]" data-email-preview>
|
25
25
|
</iframe>
|
26
26
|
</div>
|
27
27
|
</div>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<div class="card-section">
|
4
4
|
<div class="row column">
|
5
5
|
<div class="columns">
|
6
|
-
<%= form.text_field :name %>
|
6
|
+
<%= form.translated :text_field, :name %>
|
7
7
|
</div>
|
8
8
|
|
9
9
|
<div class="columns">
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<ul class="tabs tabs--lang" data-tabs id="organization_social_handlers">
|
15
15
|
<% first_handler = Decidim::Organization::SOCIAL_HANDLERS.first %>
|
16
16
|
<% Decidim::Organization::SOCIAL_HANDLERS.each do |handler| %>
|
17
|
-
<li class="tabs-title
|
17
|
+
<li class="tabs-title <%= " is-active" if handler == first_handler %>">
|
18
18
|
<a href="#<%= handler %>" <% if handler == first_handler %> aria-selected="true" <% end %>>
|
19
19
|
<%= t(".#{handler}") %>
|
20
20
|
</a>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
</div>
|
25
25
|
<div class="tabs-content" data-tabs-content="organization_social_handlers">
|
26
26
|
<% Decidim::Organization::SOCIAL_HANDLERS.each do |handler| %>
|
27
|
-
<div class="tabs-panel
|
27
|
+
<div class="tabs-panel <%= " is-active" if handler == first_handler %>" id="<%= handler %>"
|
28
28
|
aria-hidden="<% if handler == first_handler %>false<% else %>true<% end %>">
|
29
29
|
<%= form.text_field "#{handler}_handler", label: false %>
|
30
30
|
</div>
|
@@ -60,9 +60,6 @@
|
|
60
60
|
<%= form.color_field :primary_color, value: current_organization.colors["primary"] %>
|
61
61
|
<%= form.color_field :secondary_color, value: current_organization.colors["secondary"] %>
|
62
62
|
<%= form.color_field :tertiary_color, value: current_organization.colors["tertiary"] %>
|
63
|
-
<%= form.color_field :success_color, value: current_organization.colors["success"] %>
|
64
|
-
<%= form.color_field :warning_color, value: current_organization.colors["warning"] %>
|
65
|
-
<%= form.color_field :alert_color, value: current_organization.colors["alert"] %>
|
66
63
|
</div>
|
67
64
|
</div>
|
68
65
|
</div>
|
@@ -10,13 +10,13 @@
|
|
10
10
|
|
11
11
|
<div id="panel-layout_appearance_title" class="card-section">
|
12
12
|
<div class="row column">
|
13
|
-
<div
|
13
|
+
<div>
|
14
14
|
<label for="minimap"><%= t(".preview") %></label>
|
15
15
|
<%= render "decidim/admin/organization_appearance/form/minimap" %>
|
16
16
|
</div>
|
17
17
|
|
18
|
-
<div class="
|
19
|
-
<div
|
18
|
+
<div class="mt-8 grid grid-cols-1 md:grid-cols-2 gap-8">
|
19
|
+
<div>
|
20
20
|
<%= form.upload(
|
21
21
|
:favicon,
|
22
22
|
dimensions_info: current_organization.attached_uploader(:favicon).dimensions_info,
|
@@ -26,7 +26,7 @@
|
|
26
26
|
) %>
|
27
27
|
</div>
|
28
28
|
|
29
|
-
<div
|
29
|
+
<div>
|
30
30
|
<%= form.upload(
|
31
31
|
:logo,
|
32
32
|
dimensions_info: current_organization.attached_uploader(:logo).dimensions_info,
|
@@ -35,7 +35,7 @@
|
|
35
35
|
) %>
|
36
36
|
</div>
|
37
37
|
|
38
|
-
<div
|
38
|
+
<div>
|
39
39
|
<%= form.upload(
|
40
40
|
:official_img_footer,
|
41
41
|
dimensions_info: current_organization.attached_uploader(:official_img_footer).dimensions_info,
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<div id="minimap" class="grid grid-cols-1 md:grid-cols-2">
|
4
4
|
<div class="minimap-tab">
|
5
5
|
<% if current_organization.favicon.attached? %>
|
6
|
-
<%= image_tag current_organization.attached_uploader(:favicon).
|
6
|
+
<%= image_tag current_organization.attached_uploader(:favicon).path, class: "minimap-favicon" %>
|
7
7
|
<% else %>
|
8
8
|
<%= content_tag :div, nil, { class: "minimap-favicon placeholder", style: "width: #{image_width(current_organization, :favicon) * size_factor}px; height: #{image_height(current_organization, :favicon) * size_factor}px;" } do %>
|
9
9
|
<span><%= t("favicon", scope: "activemodel.attributes.organization") %></span>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
|
14
14
|
<div class="minimap-header">
|
15
15
|
<% if current_organization.logo.present? %>
|
16
|
-
<%= image_tag current_organization.attached_uploader(:logo).
|
16
|
+
<%= image_tag current_organization.attached_uploader(:logo).path, class: "minimap-logo" %>
|
17
17
|
<% else %>
|
18
18
|
<%= content_tag :div, nil, { class: "minimap-logo placeholder", style: "width: #{image_width(current_organization, :logo) * size_factor}px; height: #{image_height(current_organization, :logo) * size_factor}px;" } do %>
|
19
19
|
<span><%= t("logo", scope: "activemodel.attributes.organization") %></span>
|
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
<div class="minimap-footer">
|
28
28
|
<% if current_organization.official_img_footer.attached? %>
|
29
|
-
<%= image_tag current_organization.attached_uploader(:official_img_footer).
|
29
|
+
<%= image_tag current_organization.attached_uploader(:official_img_footer).path, class: "minimap-official_img_footer" %>
|
30
30
|
<% else %>
|
31
31
|
<%= content_tag :div, nil, { class: "minimap-official_img_footer placeholder", style: "width: #{image_width(current_organization, :official_img_footer) * size_factor}px; height: #{image_height(current_organization, :official_img_footer) * size_factor}px;" } do %>
|
32
32
|
<span><%= t("official_img_footer", scope: "activemodel.attributes.organization") %></span>
|
@@ -5,15 +5,15 @@
|
|
5
5
|
<span><%= t(".external_domain") %></span>
|
6
6
|
|
7
7
|
<div class="flex items-center ml-auto gap-x-4">
|
8
|
-
<button class="button button__sm button__transparent-secondary small alert
|
8
|
+
<button class="button button__sm button__transparent-secondary small alert move-up-question button--title">
|
9
9
|
<%== "#{icon("arrow-up-line")} #{t(".up")}" %>
|
10
10
|
</button>
|
11
11
|
|
12
|
-
<button class="button button__sm button__transparent-secondary small alert
|
12
|
+
<button class="button button__sm button__transparent-secondary small alert move-down-question button--title">
|
13
13
|
<%== "#{icon("arrow-down-line")} #{t(".down")}" %>
|
14
14
|
</button>
|
15
15
|
|
16
|
-
<button class="button button__sm button__transparent-secondary small alert
|
16
|
+
<button class="button button__sm button__transparent-secondary small alert remove-external-domain button--title">
|
17
17
|
<%= icon("delete-bin-line") %>
|
18
18
|
<%= t(".remove") %>
|
19
19
|
</button>
|
@@ -23,7 +23,7 @@
|
|
23
23
|
|
24
24
|
<div class="card-section">
|
25
25
|
<div class="grid-x">
|
26
|
-
<div class="cell
|
26
|
+
<div class="cell">
|
27
27
|
<div class="row column">
|
28
28
|
<%= form.text_field :value %>
|
29
29
|
</div>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="card">
|
3
3
|
<div class="card-section">
|
4
4
|
<% if form.send(:error?, :external_domains) %>
|
5
|
-
<div
|
5
|
+
<div>
|
6
6
|
<div> </div>
|
7
7
|
<%= form.send(:error_and_help_text, :external_domains) %>
|
8
8
|
</div>
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<% end %>
|
28
28
|
</div>
|
29
29
|
<div class="row column">
|
30
|
-
<button class="button button__sm button__secondary small
|
30
|
+
<button class="button button__sm button__secondary small add-external-domain"><%= t(".add") %></button>
|
31
31
|
</div>
|
32
32
|
</div>
|
33
33
|
</div>
|
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
<div class="item_show__header">
|
4
4
|
<h1 class="item_show__header-title">
|
5
|
-
<%= t("title", scope: "decidim.admin.
|
5
|
+
<%= t("title", scope: "decidim.admin.organization_external_domain_allowlist.form") %>
|
6
6
|
</h1>
|
7
7
|
</div>
|
8
8
|
|
9
9
|
<div class="item__edit-form">
|
10
|
-
<%= decidim_form_for(@form, html: { class: "form-defaults form
|
10
|
+
<%= decidim_form_for(@form, html: { class: "form-defaults form edit_organization_external_domain_allowlist" }, url: organization_external_domain_allowlist_path, method: :patch) do |f| %>
|
11
11
|
<%= render partial: "form", object: f %>
|
12
12
|
<div class="item__edit-sticky">
|
13
13
|
<div class="item__edit-sticky-container">
|
@@ -36,7 +36,7 @@
|
|
36
36
|
</div>
|
37
37
|
<div class="card-section p-4">
|
38
38
|
<%= decidim_form_for(@form, url: participatory_space_private_users_csv_imports_path, html: { class: "form form-defaults" }) do |form| %>
|
39
|
-
<div
|
39
|
+
<div>
|
40
40
|
<p><%= t(".explanation") %></p>
|
41
41
|
<p><%= t(".example_file") %></p>
|
42
42
|
<code class="code-block"><%= t(".explanation_example", csv_col_sep: Decidim.default_csv_col_sep) %></code>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<th><%= t("models.share_token.fields.last_used_at", scope: "decidim.admin") %></th>
|
18
18
|
<th><%= t("models.share_token.fields.created_at", scope: "decidim.admin") %></th>
|
19
19
|
<th><%= t("models.share_token.fields.expires_at", scope: "decidim.admin") %></th>
|
20
|
-
<th
|
20
|
+
<th></th>
|
21
21
|
</tr>
|
22
22
|
</thead>
|
23
23
|
<tbody>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<% adjacent_paths ||= {} %>
|
2
|
+
<div class="flex justify-between mb-4">
|
3
|
+
<span>
|
4
|
+
<% if adjacent_paths["prev_item"].present? %>
|
5
|
+
<%= link_to(
|
6
|
+
adjacent_paths["prev_item"],
|
7
|
+
class: "button button__sm button__text-secondary",
|
8
|
+
title: t("previous_title", scope: "decidim.admin.shared.adjacent_navigation"),
|
9
|
+
rel: "prev"
|
10
|
+
) do %>
|
11
|
+
<%= icon "arrow-left-s-line", class: "fill-current" %>
|
12
|
+
<%= t("previous", scope: "decidim.admin.shared.adjacent_navigation") %>
|
13
|
+
<% end %>
|
14
|
+
<% end %>
|
15
|
+
</span>
|
16
|
+
|
17
|
+
<span>
|
18
|
+
<% if adjacent_paths["next_item"].present? %>
|
19
|
+
<%= link_to(
|
20
|
+
adjacent_paths["next_item"],
|
21
|
+
class: "button button__sm button__text-secondary",
|
22
|
+
title: t("next_title", scope: "decidim.admin.shared.adjacent_navigation"),
|
23
|
+
rel: "next"
|
24
|
+
) do %>
|
25
|
+
<%= t("next", scope: "decidim.admin.shared.adjacent_navigation") %>
|
26
|
+
<%= icon "arrow-right-s-line", class: "fill-current" %>
|
27
|
+
<% end %>
|
28
|
+
<% end %>
|
29
|
+
</span>
|
30
|
+
</div>
|
@@ -1,18 +1,18 @@
|
|
1
|
-
<div class="small
|
2
|
-
<div
|
3
|
-
<h2
|
1
|
+
<div class="small" id="confirm-modal" aria-hidden="true" role="dialog" aria-labelledby="confirm-modal-title" data-reveal data-multiple-opened="true">
|
2
|
+
<div>
|
3
|
+
<h2 id="confirm-modal-title"><%= t("title", scope: "decidim.shared.confirm_modal") %></h2>
|
4
4
|
<button class="close-button" data-close aria-label="<%= t("close_modal", scope: "decidim.shared.confirm_modal") %>"
|
5
5
|
type="button">
|
6
6
|
<span aria-hidden="true">×</span>
|
7
7
|
</button>
|
8
8
|
</div>
|
9
|
-
<div
|
9
|
+
<div>
|
10
10
|
<div class="confirm-modal-content"></div>
|
11
11
|
</div>
|
12
|
-
<div class="confirm-modal-footer
|
13
|
-
<div
|
12
|
+
<div class="confirm-modal-footer">
|
13
|
+
<div>
|
14
14
|
<a class="button" role="button" href="#" data-confirm-ok aria-label="<%= t("ok", scope: "decidim.shared.confirm_modal") %>"><%= t("ok", scope: "decidim.shared.confirm_modal") %></a>
|
15
|
-
<a class="button
|
15
|
+
<a class="button" role="button" href="#" data-confirm-cancel aria-label="<%= t("cancel", scope: "decidim.shared.confirm_modal") %>"><%= t("cancel", scope: "decidim.shared.confirm_modal") %></a>
|
16
16
|
</div>
|
17
17
|
</div>
|
18
18
|
</div>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
</div>
|
22
22
|
|
23
23
|
<div class="card-section-draggable-list">
|
24
|
-
<div class="
|
24
|
+
<div class="full">
|
25
25
|
<div class="grid-x grid-margin-x card-grid">
|
26
26
|
<div class="cell">
|
27
27
|
<div class="card">
|
@@ -40,7 +40,7 @@
|
|
40
40
|
<div class="card-section">
|
41
41
|
<h5 class="draggable-list-title"><%= inactive_content_blocks_title %></h5>
|
42
42
|
|
43
|
-
<ul class="draggable-list js-connect js-list-
|
43
|
+
<ul class="draggable-list js-connect js-list-available">
|
44
44
|
<% inactive_blocks.each do |content_block_or_manifest| %>
|
45
45
|
<%= cell resource_content_block_cell, content_block_or_manifest %>
|
46
46
|
<% end %>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
</div>
|
7
7
|
<div class="item__edit item__edit-1col">
|
8
8
|
<div class="item__edit-form">
|
9
|
-
<%= decidim_form_for(@form, html: { class: "form-defaults form edit_content_block" }, url: resource_landing_page_content_block_path) do |form| %>
|
9
|
+
<%= decidim_form_for(@form, html: { class: "form-defaults form edit_content_block [&_button]:button [&_button]:button__sm [&_button]:button__secondary" }, url: resource_landing_page_content_block_path) do |form| %>
|
10
10
|
<div class="form__wrapper">
|
11
11
|
<div class="card py-4">
|
12
12
|
<div class="card-section">
|
@@ -34,10 +34,6 @@
|
|
34
34
|
<%= form.number_field :weight, label: false %>
|
35
35
|
</div>
|
36
36
|
|
37
|
-
<div class="row column">
|
38
|
-
<%= form.check_box :show_in_footer %>
|
39
|
-
</div>
|
40
|
-
|
41
37
|
<% if form.object.control_public_access? %>
|
42
38
|
<div class="row column">
|
43
39
|
<%= form.check_box :allow_public_access %>
|