You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
804 B

<%= content_for :title, @asset.title %>
<%= turbo_frame_tag 'main' do %>
<%= turbo_stream.append 'flash', partial: 'layouts/flash' %>
<div class="form-container">
<%= link_to t(:'assets.list'), url_for(controller: 'assets', action: 'index'), data: {turbo_action: 'advance'}, class: 'back-link' %>
<div class="form-header">
<h1><%= yield :title %></h1>
<%= button_to t(:'assets.destroy'),
url_for(action: 'show', id: @asset),
method: :delete,
params: {redirect_to: admin_assets_path},
data: { turbo_confirm: t(:'ui.are_you_sure') },
tabindex: '-1',
class: 'delete-link' %>
</div>
<%= render "form", asset: @asset %>
</div>
<% end %>