Sha256: cdc42ff4be335656688dd06c76f8e4d4bf68b138c5c50e1fe5ee65eb7c2e76b7
Contents?: true
Size: 966 Bytes
Versions: 9
Compression:
Stored size: 966 Bytes
Contents
.horizontal-form-label = f.object.title .horizontal-form-content{data: {controller: "image-form"}} = link_to admin_media_picker_path(selected_ids: [f.object.partable_id], hidden_field_id: "media_picker_#{f.object.object_id}"), remote: true, class: 'media_picker clearfix' do .placeholder %span.button.button-small.button-round %i.icon.icon-dots =t 'spina.images.choose_image' - if f.object.partable.file.attached? %br/ %span.button.button-small.button-round{data: {action: "click->image-form#remove", target: "image-form.button"}} %i.icon.icon-trash =t 'spina.images.remove_image' - if f.object.partable.file.attached? .image{data: {target: 'image-form.image'}} = image_tag variant(f.object.partable.file, resize: "300x300^", crop: "300x300+0+0") = f.hidden_field :partable_id, data: {hidden_field_id: "media_picker_#{f.object.object_id}", target: 'image-form.field'}
Version data entries
9 entries across 9 versions & 1 rubygems