diff --git a/app/helpers/support_form_helper.rb b/app/helpers/support_form_helper.rb index a3dd4831..6eb10a73 100644 --- a/app/helpers/support_form_helper.rb +++ b/app/helpers/support_form_helper.rb @@ -34,6 +34,10 @@ module SupportFormHelper render partial: "application/support_form/thumbnail_input", locals: {form: self, method:} end + + def actions(&block) + content_tag(:section, class: "actions", &block) + end end def support_form_with(**options, &block) diff --git a/app/views/alt_styles/edit.html.haml b/app/views/alt_styles/edit.html.haml index 0dfe4f3d..f1a8a09c 100644 --- a/app/views/alt_styles/edit.html.haml +++ b/app/views/alt_styles/edit.html.haml @@ -26,7 +26,7 @@ = f.label :thumbnail_url, "Thumbnail" = f.thumbnail_input :thumbnail_url - .actions + = f.actions do = f.submit "Save changes" %label{title: "If checked, takes you to the next unlabeled pet style, if any. Useful for labeling in bulk!"} = check_box_tag "next", "unlabeled-style", diff --git a/app/views/items/edit.html.haml b/app/views/items/edit.html.haml index 34fceb1e..06d59b20 100644 --- a/app/views/items/edit.html.haml +++ b/app/views/items/edit.html.haml @@ -51,7 +51,7 @@ = f.radio_button :explicitly_body_specific, true Body-specific: Fits all species differently - .actions + = f.actions do = f.submit "Save changes" - content_for :stylesheets do diff --git a/app/views/pet_states/edit.html.haml b/app/views/pet_states/edit.html.haml index 01d6473a..9bc61b3f 100644 --- a/app/views/pet_states/edit.html.haml +++ b/app/views/pet_states/edit.html.haml @@ -32,7 +32,7 @@ = f.select :glitched, [["✅ Not marked as Glitched", false], ["👾 Yes, it's bad news bonko'd", true]] - .actions + = f.actions do = f.submit "Save changes" - content_for :stylesheets do