Sha256: afa91c290403528f29380407134bcf9bd0b1a417d34989e79cbf8dc7a9e488cf

Contents?: true

Size: 881 Bytes

Versions: 4

Compression:

Stored size: 881 Bytes

Contents

.page-form-label= f.object.title
.page-form-control
  .structure-form{data: {controller: "repeater-form"}}
    .structure-form-menu
      %ul{data: {target: "repeater-form.list"}}
        - (f.object.content || []).each.with_index do |repeater_content, index|
          %li{class: ('active' if index.zero?), data: {part_id: repeater_content.object_id, target: "repeater-form.listItem"}}
            = link_to "#structure_form_pane_#{repeater_content.object_id}" do
              %i.icon.icon-bars.sortable-handle
              %span= strip_tags(repeater_content.parts&.first&.content.to_s)

      %div{style: "margin-top: 6px; margin-left: 6px"}
        = link_to_add_repeater_fields f do
          = icon('plus')
    .structure-form-content{data: {target: "repeater-form.content"}}
      = f.fields_for :content do |ff|
        = render 'spina/admin/parts/repeaters/fields', f: ff

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spina-2.0.2 app/views/spina/admin/parts/repeaters/_form.html.haml
spina-2.0.1 app/views/spina/admin/parts/repeaters/_form.html.haml
spina-2.0.0 app/views/spina/admin/parts/repeaters/_form.html.haml
spina-2.0.0.beta app/views/spina/admin/parts/repeaters/_form.html.haml