Files
nairobi/app/components/admin/site_customization/pages/edit_component.html.erb
Javi Martín 00eb1149b9 Move custom pages form partial to a component
This way changing it will be easier.

Note we're changing the name of the HTML class to follow our naming
conventions; the `edit_page` class wasn't used anywhere, so we don't
need to change anything else.
2025-08-07 15:24:51 +02:00

15 lines
392 B
Plaintext

<% provide :main_class, "admin-site-customization-pages-edit" %>
<%= back_link_to admin_site_customization_pages_path %>
<%= header do %>
<%= render Admin::ActionComponent.new(
:destroy,
page,
text: t("admin.site_customization.pages.index.delete"),
confirm: true,
class: "delete"
) %>
<% end %>
<%= render Admin::SiteCustomization::Pages::FormComponent.new(page) %>