Sha256: c1a47f8af79b3a89fd329a3bf800bf8678e9bc34c3b06a71042666bd28fa4a76
Contents?: true
Size: 547 Bytes
Versions: 2
Compression:
Stored size: 547 Bytes
Contents
= attachment_collection_form.fields_for :page_partable, attachment_collection_form.object.page_partable do |form| = link_to select_collection_admin_attachments_path(form.object_name), remote: true, class: "media_picker" do - if form.object.attachments.any? - form.object.attachments.each do |attachment| .attachment= attachment.name - else .placeholder %span{data: {icon: 't'}} = t('spina.choose_from_library') = form.hidden_field :attachment_tokens, value: form.object.attachment_ids.join(",")
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spina-0.6.14 | app/views/spina/admin/page_partables/_attachment_collection_form.html.haml |
spina-0.6.13 | app/views/spina/admin/page_partables/_attachment_collection_form.html.haml |