1
0
Fork 0
forked from OpenNeo/impress

Add some data attributes to outfit-layer elements

This is mostly for debugging, the zone label especially, to just
eyeball what we're looking at!
This commit is contained in:
Emi Matchu 2024-07-02 22:38:18 -07:00
parent e9145251a9
commit 76d2cc6c21

View file

@ -16,7 +16,12 @@
= turbo_frame_tag "item-preview" do
.outfit-viewer
- @preview_outfit.visible_layers.each do |swf_asset|
%outfit-layer
%outfit-layer{
data: {
"asset-id": swf_asset.id,
"zone": swf_asset.zone.label,
},
}
= image_tag swf_asset.image_url, alt: ""
= form_for item_path(@item), method: :get, class: "species-color-picker",