Module: RubyCms::Admin::AdminPageHelper

Defined in:
app/helpers/ruby_cms/admin/admin_page_helper.rb

Instance Method Summary collapse

Instance Method Details

#admin_page(title: nil, subtitle: nil, footer: nil) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'app/helpers/ruby_cms/admin/admin_page_helper.rb', line 6

def admin_page(title: nil, subtitle: nil, footer: nil, **, &)
  render RubyCms::Admin::AdminPage.new(
    title:,
    subtitle:,
    footer:,
    **,
    &
  )
end

#admin_table_content(id: "admin_table_content", **attrs) ⇒ Object



16
17
18
# File 'app/helpers/ruby_cms/admin/admin_page_helper.rb', line 16

def admin_table_content(id: "admin_table_content", **attrs, &)
  render RubyCms::Admin::AdminPage::AdminTableContent.new(id:, **attrs, &)
end