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

Version Path
spina-2.8.0 app/views/spina/admin/parts/attachments/_form.html.erb
spina-2.7.0 app/views/spina/admin/parts/attachments/_form.html.erb
spina-2.6.2 app/views/spina/admin/parts/attachments/_form.html.erb
spina-2.6.1 app/views/spina/admin/parts/attachments/_form.html.erb
spina-2.6.0 app/views/spina/admin/parts/attachments/_form.html.erb
spina-2.5.0 app/views/spina/admin/parts/attachments/_form.html.erb
spina-2.4.0 app/views/spina/admin/parts/attachments/_form.html.erb
spina-2.3.5 app/views/spina/admin/parts/attachments/_form.html.erb
spina-2.3.4 app/views/spina/admin/parts/attachments/_form.html.erb
spina-2.3.3 app/views/spina/admin/parts/attachments/_form.html.erb
spina-2.3.2 app/views/spina/admin/parts/attachments/_form.html.erb
spina-2.3.1 app/views/spina/admin/parts/attachments/_form.html.erb
spina-2.3.0 app/views/spina/admin/parts/attachments/_form.html.erb
spina-2.2.0 app/views/spina/admin/parts/attachments/_form.html.erb
spina-2.1.1 app/views/spina/admin/parts/attachments/_form.html.erb