Sha256: 9852acf27b91ba239b5ab02dcc2cfb4e9407454cecdac31117ddcbe14f29cc13

Contents?: true

Size: 787 Bytes

Versions: 5

Compression:

Stored size: 787 Bytes

Contents

.page-form-label= f.object.title
.page-form-control{data: {controller: "image-form"}}
  .page-form-media-picker
    = link_to admin_media_picker_path(selected_ids: f.object.image_ids, input: "media_picker_#{f.object.object_id}", mode: "multiple"), remote: true, class: 'images', data: {target: 'image-form.image'} do
      .page-form-media-picker-placeholder=t "spina.images.choose"

      %div{id: "media_picker_#{f.object.object_id}", data: data_attrs_for_image_collection(f)}
        = f.fields_for :images do |ff|
          = render partial: "spina/admin/parts/image_collections/fields", locals: {f: ff}

    = button_tag type: :default, class: 'button button-small button-default', data: {action: "image-form#remove"} do
      %i.icon.icon-cross{style: "margin: 0; font-size: 10px"}

Version data entries

5 entries across 5 versions & 1 rubygems

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