Skip to content

Commit

Permalink
Wrap automatic form checkboxes in (unlabeled) form group
Browse files Browse the repository at this point in the history
  • Loading branch information
spohlenz committed May 17, 2024
1 parent 103c7b5 commit cd09e34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/trestle/form/automatic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ def initialize(admin, options={})
when :datetime
datetime_field attribute.name
when :boolean
check_box attribute.name
form_group label: false do
check_box attribute.name
end
when :enum
collection_radio_buttons attribute.name, attribute.options[:values] || [], :first, :last
when :json, :jsonb
Expand Down

0 comments on commit cd09e34

Please sign in to comment.