2024-09-27 22:14:00 -07:00
|
|
|
- title "#{@pet_type.human_name}: #{pose_name @pet_state.pose}"
|
|
|
|
- use_responsive_design
|
|
|
|
|
|
|
|
%ol.breadcrumbs
|
|
|
|
%li
|
|
|
|
= link_to "Rainbow Pool", pet_types_path
|
|
|
|
%li
|
|
|
|
= link_to @pet_type.color.human_name,
|
|
|
|
pet_types_path(color: @pet_type.color.human_name)
|
|
|
|
%li{"data-relation-to-prev": "sibling"}
|
|
|
|
= link_to @pet_type.species.human_name,
|
|
|
|
pet_types_path(species: @pet_type.species.human_name)
|
|
|
|
%li
|
|
|
|
= link_to "Appearances", @pet_type
|
|
|
|
%li
|
|
|
|
= link_to "\##{@pet_state.id}", [@pet_type, @pet_state]
|
|
|
|
%li
|
|
|
|
Edit
|
|
|
|
|
|
|
|
= outfit_viewer pet_state: @pet_state
|
|
|
|
|
|
|
|
= form_with model: [@pet_type, @pet_state] do |f|
|
|
|
|
- if @pet_state.errors.any?
|
|
|
|
%p
|
|
|
|
Could not save:
|
|
|
|
%ul.errors
|
|
|
|
- @pet_state.errors.each do |error|
|
|
|
|
%li= error.full_message
|
|
|
|
%dl
|
2024-09-27 22:34:52 -07:00
|
|
|
%dt Pose
|
|
|
|
%dd
|
|
|
|
%ul.pose-options
|
|
|
|
- pose_options.each do |pose|
|
|
|
|
%li
|
|
|
|
%label
|
|
|
|
= f.radio_button :pose, pose
|
|
|
|
= pose_name pose
|
|
|
|
%dt Glitched?
|
|
|
|
%dd
|
|
|
|
= f.select :glitched, [["✅ Not marked as Glitched", false],
|
2024-09-27 22:14:00 -07:00
|
|
|
["👾 Yes, it's bad news bonko'd", true]]
|
|
|
|
= f.submit "Save"
|
|
|
|
|
|
|
|
- content_for :stylesheets do
|
|
|
|
= stylesheet_link_tag "application/breadcrumbs"
|
|
|
|
= stylesheet_link_tag "application/outfit-viewer"
|
2024-09-27 22:34:52 -07:00
|
|
|
= page_stylesheet_link_tag "pet_states/edit"
|
2024-09-27 22:14:00 -07:00
|
|
|
|
|
|
|
- content_for :javascripts do
|
|
|
|
= javascript_include_tag "outfit-viewer"
|