1
0
Fork 0
forked from OpenNeo/impress
impress/app/views/outfits/_outfit.html.haml
Emi Matchu 5631b02157 Fix confirmation prompts for various actions
These were depending on the `rails-ujs` scripts we haven't had in here
for a while! Now, they use the new equivalent Turbo attributes.
2024-03-13 13:56:10 -07:00

13 lines
428 B
Text

= outfit_li_for(outfit) do
- if outfit.image?
= link_to outfit_image_tag(outfit), outfit
%header
.outfit-star
= link_to outfit.name, outfit, class: 'outfit-name'
%footer
= link_to t('.edit'), outfit, class: 'outfit-edit-link'
= button_to t('.delete'), outfit, method: 'delete',
class: 'outfit-delete-button',
data: {turbo_confirm: t('.delete_confirmation', outfit_name: outfit.name)}