Sha256: f4b71d05fc9e2447477ed4f522ea2c2da01a7cdfec9f6320271fef9db7ef3899

Contents?: true

Size: 954 Bytes

Versions: 10

Compression:

Stored size: 954 Bytes

Contents

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

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

      = f.fields_for :partable do |ff|
        - ff.object.page_part = f.object
        = link_to_add_structure_item_fields ff do
          = icon('plus')

    .structure-form-content
      = f.fields_for :page_partable do |ff|
        = ff.fields_for :structure_items, ff.object.structure_items.sort_by{|item|item.position.to_i} do |fff|
          = render 'spina/admin/structure_items/fields', f: fff

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spina-1.2.0 app/views/spina/admin/partables/structures/_form.html.haml
spina-1.1.4 app/views/spina/admin/partables/structures/_form.html.haml
spina-1.1.3 app/views/spina/admin/partables/structures/_form.html.haml
spina-1.1.2 app/views/spina/admin/partables/structures/_form.html.haml
spina-1.1.1 app/views/spina/admin/partables/structures/_form.html.haml
spina-1.1.0 app/views/spina/admin/partables/structures/_form.html.haml
spina-1.0.3 app/views/spina/admin/partables/structures/_form.html.haml
spina-1.0.2 app/views/spina/admin/partables/structures/_form.html.haml
spina-1.0.1 app/views/spina/admin/partables/structures/_form.html.haml
spina-1.0.0 app/views/spina/admin/partables/structures/_form.html.haml