.horizontal-form-label = f.object.title .horizontal-form-content = f.fields_for :page_partable, f.object.page_partable do |ff| = link_to select_collection_admin_attachments_path(ff.object_name), remote: true, class: "media_picker" do .clearfix .placeholder.pull-right %span.button.button-small.button-round %i.icon.icon-dots = t('spina.choose_from_library') - if ff.object.attachments.any? - ff.object.attachments.each do |attachment| .attachment= attachment.name = ff.hidden_field :attachment_tokens, value: ff.object.attachment_ids.join(",")