Skip to content
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

Merged
merged 2 commits into from
Apr 11, 2018

Conversation

m5o
Copy link
Contributor

@m5o m5o commented Apr 10, 2018

simple form now 💜 bootstrap 4.1

📺 Demo preview

The bootstrap generator is extracted from:
heartcombo/simple_form-bootstrap#56

  • supported form wrapper all covered by tests

🔗 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.

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'

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate blank line ✂️

Copy link
Collaborator

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 😄

Copy link
Contributor Author

@m5o m5o Apr 10, 2018

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.

@feliperenan feliperenan merged commit 1cb66eb into heartcombo:master Apr 11, 2018
@feliperenan feliperenan deleted the bootstrap-v4.1-generator branch April 11, 2018 12:47
# Use this setup block to configure all options available in SimpleForm.
SimpleForm.setup do |config|
# Default class for buttons
config.button_class = 'btn'
Copy link

@jonathanhefner jonathanhefner Apr 23, 2018

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'?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants