Sha256: 33a95053ec1c0acdc2c013d775625ee1663c486e7bf76d488ea2b1ef061f92c3
Contents?: true
Size: 683 Bytes
Versions: 15
Compression:
Stored size: 683 Bytes
Contents
<div class="mt-6" data-controller="attachment-picker"> <label for="price" class="block text-sm leading-5 font-medium text-gray-700"><%= f.object.title %></label> <%= f.hidden_field :signed_blob_id, data: {attachment_picker_target: 'signedBlobId'} %> <%= f.hidden_field :filename, data: {attachment_picker_target: 'filename'} %> <%= 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")}, {class: "form-select", data: {action: "attachment-picker#pick"}} %> </div>
Version data entries
15 entries across 15 versions & 1 rubygems