From 388bb9a251cb226f6361b424520e95bed2786d9a Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Wed, 20 Nov 2024 11:24:56 -0800 Subject: [PATCH] Oops, fix mistakes when extracting support-form class I didn't include the alt styles call site when making the commit, and also I named the file differently than other nearby files are named! --- .../application/{support_form.sass => support-form.sass} | 0 app/views/alt_styles/edit.html.haml | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename app/assets/stylesheets/application/{support_form.sass => support-form.sass} (100%) diff --git a/app/assets/stylesheets/application/support_form.sass b/app/assets/stylesheets/application/support-form.sass similarity index 100% rename from app/assets/stylesheets/application/support_form.sass rename to app/assets/stylesheets/application/support-form.sass diff --git a/app/views/alt_styles/edit.html.haml b/app/views/alt_styles/edit.html.haml index d77620da..d90a9cbd 100644 --- a/app/views/alt_styles/edit.html.haml +++ b/app/views/alt_styles/edit.html.haml @@ -13,7 +13,7 @@ = image_tag @alt_style.preview_image_url, class: "alt-style-preview" -= form_with model: @alt_style, class: "alt-style-form" do |f| += form_with model: @alt_style, class: "support-form" do |f| - if @alt_style.errors.any? %p Could not save: @@ -36,5 +36,5 @@ Then: Go to unlabeled style - content_for :stylesheets do - = stylesheet_link_tag "application/breadcrumbs" + = stylesheet_link_tag "application/breadcrumbs", "application/support-form" = page_stylesheet_link_tag "alt_styles/edit"