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.
This commit is contained in:
Javi Martín
2025-07-09 16:51:16 +02:00
parent 2c0f7cf99d
commit 00eb1149b9
4 changed files with 14 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
class Admin::SiteCustomization::Pages::FormComponent < ApplicationComponent
include TranslatableFormHelper
include GlobalizeHelper
attr_reader :page
def initialize(page)
@page = page
end
end