Sha256: 1e5d24492e10d0c296c727e085ea24fc7685d79fdd64af7e09d2965f14a7554e

Contents?: true

Size: 907 Bytes

Versions: 6

Compression:

Stored size: 907 Bytes

Contents

- if inline_datatable? && inline_datatable.attributes[:menu]
  - menu = inline_datatable.attributes[:menu]
  - datatable = EffectivePagesMenuDatatable.new(menu: menu, menu_parent_id: page.id)

  = render '/admin/pages/form_menu', page: page

  - if datatable.present?(self)
    %h3 Children
    = render_datatable(datatable, simple: true, inline: true)

- else
  = tabs do
    = tab 'Page' do
      = render '/admin/pages/form_page', page: page

    - if page.persisted?
      - if EffectivePages.menus.present?
        = tab 'Menu' do
          = render '/admin/pages/form_menu', page: page

      - unless page.menu_root_level
        = tab 'Content' do
          = render '/admin/pages/form_content', page: page

      = tab 'Access' do
        = render '/admin/pages/form_access', page: page

      = tab 'Logs' do
        = render_datatable(page.log_changes_datatable, inline: true, namespace: :admin)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
effective_pages-3.1.0 app/views/admin/pages/_form.html.haml
effective_pages-3.0.10 app/views/admin/pages/_form.html.haml
effective_pages-3.0.9 app/views/admin/pages/_form.html.haml
effective_pages-3.0.8 app/views/admin/pages/_form.html.haml
effective_pages-3.0.7 app/views/admin/pages/_form.html.haml
effective_pages-3.0.6 app/views/admin/pages/_form.html.haml