1
0
Fork 0
forked from OpenNeo/impress
impress/app/views/alt_styles/index.html.haml
Emi Matchu 775baa250b Add filter form to alt styles page
Oh wow, alt styles are getting some real work! I'll improve both the
user-facing and Support-facing tooling, to better handle the complexity.
2024-09-30 16:06:22 -07:00

31 lines
1.2 KiB
Text

- title "Styling Studio"
- use_responsive_design
%p
Here's all the new NC Pet Styles we have! They're available in the app too,
by opening the emotion picker and clicking the "Styles" tab.
%p
If you have an Alt Style we don't, please model it by entering your pet's
name on the homepage! Thank you! 💖
%p
Also, heads-up: Because our system can only collect "item data" for normal
wearable items, there's not a great way for us to get style tokens onto
tradelists… this may change someday, but probably not soon, sorry!
= form_with url: alt_styles_path, method: :get, class: "filters" do |f|
%fieldset
%legend Filter by:
= f.select :color, Color.order(:name).map(&:human_name),
selected: @color&.human_name, include_blank: "Color…"
= f.select :species, Species.order(:name).map(&:human_name),
selected: @species&.human_name, include_blank: "Species…"
= f.submit "Go"
- @alt_styles.group_by(&:species).each do |species, species_styles|
%h2.alt-styles-header= species.human_name
%ul.alt-styles-list= render partial: "alt_style", collection: species_styles
- content_for :stylesheets do
= page_stylesheet_link_tag "alt_styles/index"