Sha256: 5bb850f2301e6b28347b12db13877342a2fb7eb603a7ddedd4341d9cf6eb9c72

Contents?: true

Size: 634 Bytes

Versions: 50

Compression:

Stored size: 634 Bytes

Contents

<%= turbo_frame_tag 'destroy_attachment_form' do %>
  <%= form_with url: "/avo/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

50 entries across 50 versions & 1 rubygems

Version Path
avo-1.5.4 app/views/avo/attachments/show.html.erb
avo-1.5.3 app/views/avo/attachments/show.html.erb
avo-1.5.2 app/views/avo/attachments/show.html.erb
avo-1.5.1 app/views/avo/attachments/show.html.erb
avo-1.5.0 app/views/avo/attachments/show.html.erb
avo-1.4.5.pre.1 app/views/avo/attachments/show.html.erb
avo-1.4.4.pre.1 app/views/avo/attachments/show.html.erb
avo-1.4.4 app/views/avo/attachments/show.html.erb
avo-1.4.3 app/views/avo/attachments/show.html.erb
avo-1.4.2 app/views/avo/attachments/show.html.erb
avo-1.4.1 app/views/avo/attachments/show.html.erb
avo-1.4.0 app/views/avo/attachments/show.html.erb
avo-1.4.0.pre.1 app/views/avo/attachments/show.html.erb
avo-1.3.5 app/views/avo/attachments/show.html.erb
avo-1.3.5.pre.1 app/views/avo/attachments/show.html.erb
avo-1.3.4 app/views/avo/attachments/show.html.erb
avo-1.3.3 app/views/avo/attachments/show.html.erb
avo-1.3.2 app/views/avo/attachments/show.html.erb
avo-1.3.1 app/views/avo/attachments/show.html.erb
avo-1.3.0 app/views/avo/attachments/show.html.erb