-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update bootstrap v4.1 generator template #1569
Conversation
simple form now 💜 bootstrap 4.1 The bootstrap generator is extracted from: heartcombo/simple_form-bootstrap#56 * supported form wrapper all covered by *tests* * vertical form * horizontal form * inline form * custom fields form * input groups form * floating labels form :link: heartcombo/simple_form-bootstrap#56 🔗 heartcombo#1561 Resolves heartcombo#1337
# add validation classes to `input_field` | ||
config.input_field_error_class = 'is-invalid' | ||
config.input_field_valid_class = 'is-valid' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate blank line ✂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see it in other places, so I think it was intentional. Just one line for me it's ok, feel free to make this change 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added two blank lines before each form block (vertical, horizontal, inline, custom, group and floating) for better readability or scan-ability.
# Use this setup block to configure all options available in SimpleForm. | ||
SimpleForm.setup do |config| | ||
# Default class for buttons | ||
config.button_class = 'btn' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be 'btn btn-primary'
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Answered here: heartcombo/simple_form-bootstrap#56 (comment)
simple form now 💜 bootstrap 4.1
📺 Demo preview
The bootstrap generator is extracted from:
heartcombo/simple_form-bootstrap#56
🔗 heartcombo/simple_form-bootstrap#56
📌 Bootstrap generator template is maintained by the community around simple_form-bootstrap
⛏ All future development, tests, and organization should happen there.