Sha256: 0f943b0deb1607348a6362dff5d236daa3424a8d6ac353703272020bb77e4d09

Contents?: true

Size: 975 Bytes

Versions: 2

Compression:

Stored size: 975 Bytes

Contents

.horizontal-form-content
  .structure-form
    .structure-form-menu
      %label= f.object.title

      %ul
        - unless f.object.page_partable.nil?
          - f.object.page_partable.structure_items.sorted_by_structure.each_with_index do |structure_item, index|
            %li{class: ('active' if index == 0), data: {structure_item_id: structure_item.id}}
              = link_to "#structure_form_pane_#{structure_item.id}" do
                %i.icon.icon-bars.sortable-handle
                = structure_item.structure_parts.first.try(:structure_partable).try(:content)

      = f.fields_for :page_partable do |ff|
        - ff.object.page_part = f.object
        = link_to_add_fields ff, :structure_items do
          = icon('plus')

    .structure-form-content
      = f.fields_for :page_partable do |ff|
        = ff.fields_for :structure_items, ff.object.structure_items.sorted_by_structure do |fff|
          = render 'spina/admin/structure_items/fields', f: fff

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spina-0.10.0 app/views/spina/admin/page_partables/structures/_form.html.haml
spina-0.9.0 app/views/spina/admin/page_partables/structures/_form.html.haml