Add actions
helper to support form builder
This commit is contained in:
parent
1119bbb292
commit
06a301e6d7
4 changed files with 7 additions and 3 deletions
|
@ -34,6 +34,10 @@ module SupportFormHelper
|
||||||
render partial: "application/support_form/thumbnail_input",
|
render partial: "application/support_form/thumbnail_input",
|
||||||
locals: {form: self, method:}
|
locals: {form: self, method:}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def actions(&block)
|
||||||
|
content_tag(:section, class: "actions", &block)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def support_form_with(**options, &block)
|
def support_form_with(**options, &block)
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
= f.label :thumbnail_url, "Thumbnail"
|
= f.label :thumbnail_url, "Thumbnail"
|
||||||
= f.thumbnail_input :thumbnail_url
|
= f.thumbnail_input :thumbnail_url
|
||||||
|
|
||||||
.actions
|
= f.actions do
|
||||||
= f.submit "Save changes"
|
= f.submit "Save changes"
|
||||||
%label{title: "If checked, takes you to the next unlabeled pet style, if any. Useful for labeling in bulk!"}
|
%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",
|
= check_box_tag "next", "unlabeled-style",
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
= f.radio_button :explicitly_body_specific, true
|
= f.radio_button :explicitly_body_specific, true
|
||||||
Body-specific: Fits all species differently
|
Body-specific: Fits all species differently
|
||||||
|
|
||||||
.actions
|
= f.actions do
|
||||||
= f.submit "Save changes"
|
= f.submit "Save changes"
|
||||||
|
|
||||||
- content_for :stylesheets do
|
- content_for :stylesheets do
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
= f.select :glitched, [["✅ Not marked as Glitched", false],
|
= f.select :glitched, [["✅ Not marked as Glitched", false],
|
||||||
["👾 Yes, it's bad news bonko'd", true]]
|
["👾 Yes, it's bad news bonko'd", true]]
|
||||||
|
|
||||||
.actions
|
= f.actions do
|
||||||
= f.submit "Save changes"
|
= f.submit "Save changes"
|
||||||
|
|
||||||
- content_for :stylesheets do
|
- content_for :stylesheets do
|
||||||
|
|
Loading…
Reference in a new issue