Sha256: 616508f25876a5a924ed683b4417dc580c0eacfabbbd3f473708341d11afe552

Contents?: true

Size: 758 Bytes

Versions: 5

Compression:

Stored size: 758 Bytes

Contents

#page_content.tab-content.active

  .page-form
    .page-form-group
      .page-form-label= Spina::Page.human_attribute_name :title
      .page-form-control
        = f.text_field :title, placeholder: Spina::Page.human_attribute_name(:title_placeholder), class: 'input-large'

    - parts = (current_theme.view_templates.find{|v|v[:name].to_s == f.object.view_template.to_s}&.dig(:parts) || [])

    = f.fields_for "#{@locale}_content".to_sym, build_parts(f.object, parts) do |ff|
      = ff.hidden_field :type, value: ff.object.class
      = ff.hidden_field :name
      = ff.hidden_field :title

      .page-form-group.page-part{data: {name: ff.object.name}}
        = render "spina/admin/parts/#{parts_partial_namespace(ff.object.class.to_s)}/form", f: ff

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spina-2.0.2 app/views/spina/admin/pages/_form_page_content.html.haml
spina-2.0.1 app/views/spina/admin/pages/_form_page_content.html.haml
spina-2.0.0 app/views/spina/admin/pages/_form_page_content.html.haml
spina-2.0.0.beta app/views/spina/admin/pages/_form_page_content.html.haml
spina-2.0.0.alpha app/views/spina/admin/pages/_form_page_content.html.haml