Sha256: 92c7cd1982c6df0aa07345ccef8054421a5dded0b5897e27a79aad0ea57e9105

Contents?: true

Size: 660 Bytes

Versions: 11

Compression:

Stored size: 660 Bytes

Contents

<%= turbo_frame_tag 'destroy_attachment_form' do %>
  <%= form_with url: "#{Avo.configuration.root_path}/resources/#{params[:resource_name]}/#{params[:id]
    }/active_storage_attachments/#{params[:attachment_name]}/#{params[:signed_attachment_id]}",
    method: :delete,
    html: {
      'data-turbo-frame': 'destroy_attachment_form',
      'data-controller': 'attachments',
      'data-attachments-target': 'form',
      class: 'hidden'
    } do |form| %>
    <%= form.button 'destroy', type: :submit %>
    <%= form.hidden_field :referrer, value: request.referer, id: "referrer_destroy_attachment_#{params[:signed_attachment_id]}" %>
  <% end %>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
avo-1.7.2 app/views/avo/attachments/show.html.erb
avo-1.7.1 app/views/avo/attachments/show.html.erb
avo-1.7.0 app/views/avo/attachments/show.html.erb
avo-1.6.4.pre.1 app/views/avo/attachments/show.html.erb
avo-1.6.3.pre.3 app/views/avo/attachments/show.html.erb
avo-1.6.3.pre.2 app/views/avo/attachments/show.html.erb
avo-1.6.3.pre.1 app/views/avo/attachments/show.html.erb
avo-1.6.2.pre.1 app/views/avo/attachments/show.html.erb
avo-1.6.1 app/views/avo/attachments/show.html.erb
avo-1.6.0 app/views/avo/attachments/show.html.erb
avo-1.5.5 app/views/avo/attachments/show.html.erb