2024-09-30 17:21:45 -07:00
|
|
|
- title @alt_style.full_name
|
|
|
|
- use_responsive_design
|
|
|
|
|
|
|
|
%ol.breadcrumbs
|
|
|
|
%li= link_to "Alt Styles", alt_styles_path
|
|
|
|
%li
|
|
|
|
= link_to @alt_style.color.human_name,
|
|
|
|
alt_styles_path(color: @alt_style.color.human_name)
|
|
|
|
%li{"data-relation-to-prev": "sibling"}
|
|
|
|
= link_to @alt_style.species.human_name,
|
|
|
|
alt_styles_path(species: @alt_style.species.human_name)
|
|
|
|
%li= @alt_style.series_name
|
|
|
|
|
|
|
|
= image_tag @alt_style.preview_image_url, class: "alt-style-preview"
|
|
|
|
|
2024-11-30 11:26:23 -08:00
|
|
|
= support_form_with model: @alt_style, class: "support-form" do |f|
|
2024-11-30 11:46:19 -08:00
|
|
|
= f.errors
|
2024-11-30 11:26:23 -08:00
|
|
|
|
|
|
|
= f.fields do
|
|
|
|
= f.field do
|
2024-11-30 10:33:58 -08:00
|
|
|
= f.label :real_series_name, "Series"
|
|
|
|
= f.text_field :real_series_name, autofocus: !@alt_style.real_series_name?,
|
|
|
|
placeholder: AltStyle.placeholder_name
|
2024-11-30 11:26:23 -08:00
|
|
|
|
|
|
|
= f.field do
|
2024-11-30 10:33:58 -08:00
|
|
|
= f.label :thumbnail_url, "Thumbnail"
|
2024-11-30 11:34:02 -08:00
|
|
|
= f.thumbnail_input :thumbnail_url
|
2024-11-30 11:26:23 -08:00
|
|
|
|
2024-12-01 09:30:17 -08:00
|
|
|
= f.actions do
|
2024-10-22 16:39:25 -07:00
|
|
|
= f.submit "Save changes"
|
2024-12-01 09:42:19 -08:00
|
|
|
= f.go_to_next_field title: "If checked, takes you to the next unlabeled pet style, if any. Useful for labeling in bulk!" do
|
|
|
|
= f.go_to_next_check_box "unlabeled-style"
|
2024-10-22 16:39:25 -07:00
|
|
|
Then: Go to unlabeled style
|
2024-09-30 17:21:45 -07:00
|
|
|
|
|
|
|
- content_for :stylesheets do
|
2024-11-20 11:24:56 -08:00
|
|
|
= stylesheet_link_tag "application/breadcrumbs", "application/support-form"
|
2024-09-30 17:21:45 -07:00
|
|
|
= page_stylesheet_link_tag "alt_styles/edit"
|