Sha256: 982f0242aad6c5f7209c7e2156128544db8fec3b195033faf9f53969ab3444e9

Contents?: true

Size: 598 Bytes

Versions: 5

Compression:

Stored size: 598 Bytes

Contents

.page-form-label= f.object.title
.page-form-control{data: {controller: "attachment-picker"}}
  = f.hidden_field :signed_blob_id, data: {target: "attachment-picker.signedBlobId"}
  = f.hidden_field :filename, data: {target: "attachment-picker.filename"}
  .select-dropdown
    = f.select :attachment_id, Spina::Attachment.sorted.map{|attachment| [attachment.file&.filename, attachment.id, data: {signed_blob_id: attachment.file&.blob&.signed_id, filename: attachment.file&.filename}]}, {include_blank: t("spina.attachments.choose_attachment")}, {data: {action: "attachment-picker#chooseAttachment"}}

Version data entries

5 entries across 5 versions & 1 rubygems

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