We were already doing that when deleting pages from the index page, and we also ask for confirmation in almost every page in the admin section.
16 lines
364 B
Plaintext
16 lines
364 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"),
|
|
method: :delete,
|
|
confirm: true,
|
|
class: "delete"
|
|
) %>
|
|
<% end %>
|
|
|
|
<%= render "form" %>
|