Sha256: 8ab9e360c858eff4a1ab199c35b5942d9e72e00a6b35482812a00a717246e636

Contents?: true

Size: 752 Bytes

Versions: 6

Compression:

Stored size: 752 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>
  <div class="text-gray-400 text-sm"><%= f.object.hint %></div>

  <%= 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 mt-1", data: {action: "attachment-picker#pick"}} %>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spina-2.12.0 app/views/spina/admin/parts/attachments/_form.html.erb
spina-2.11.0 app/views/spina/admin/parts/attachments/_form.html.erb
spina-2.10.0 app/views/spina/admin/parts/attachments/_form.html.erb
spina-2.9.1 app/views/spina/admin/parts/attachments/_form.html.erb
spina-2.9.0 app/views/spina/admin/parts/attachments/_form.html.erb
spina-2.8.1 app/views/spina/admin/parts/attachments/_form.html.erb