Sha256: 0faea8bd08ed6b662b32aef9eec065ea503e91f463b7df6899b5927a600b5b06

Contents?: true

Size: 645 Bytes

Versions: 79

Compression:

Stored size: 645 Bytes

Contents

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

79 entries across 79 versions & 1 rubygems

Version Path
avo-1.25.2 app/views/avo/attachments/show.html.erb
avo-1.25.1 app/views/avo/attachments/show.html.erb
avo-1.25.0 app/views/avo/attachments/show.html.erb
avo-1.24.2 app/views/avo/attachments/show.html.erb
avo-1.24.1 app/views/avo/attachments/show.html.erb
avo-1.24.0 app/views/avo/attachments/show.html.erb
avo-1.23.0 app/views/avo/attachments/show.html.erb
avo-1.22.4 app/views/avo/attachments/show.html.erb
avo-1.22.3 app/views/avo/attachments/show.html.erb
avo-1.22.2 app/views/avo/attachments/show.html.erb
avo-1.22.1 app/views/avo/attachments/show.html.erb
avo-1.22.1.pre.2 app/views/avo/attachments/show.html.erb
avo-1.22.1.pre.1 app/views/avo/attachments/show.html.erb
avo-1.22.0 app/views/avo/attachments/show.html.erb
avo-1.22.0.pre.1 app/views/avo/attachments/show.html.erb
avo-1.21.1.pre.1 app/views/avo/attachments/show.html.erb
avo-1.21.0 app/views/avo/attachments/show.html.erb
avo-1.20.2.pre.2 app/views/avo/attachments/show.html.erb
avo-1.20.2.pre.1 app/views/avo/attachments/show.html.erb
avo-1.21.0.pre.1 app/views/avo/attachments/show.html.erb