Skip to content

Add bootstrap 4.beta validation style#340

Closed
jvanbaarsen wants to merge 11 commits intobootstrap-ruby:bootstrap-v4from
jvanbaarsen:bootstrap-4-beta-validation
Closed

Add bootstrap 4.beta validation style#340
jvanbaarsen wants to merge 11 commits intobootstrap-ruby:bootstrap-v4from
jvanbaarsen:bootstrap-4-beta-validation

Conversation

@jvanbaarsen
Copy link
Copy Markdown

Bootstrap has changed the way they are showing validation messages, this also
means the css classes have changed.

This updates the code generated to reflect that.

Fixes: #339


options[:class] = ["form-group", options[:class]].compact.join(' ')
options[:class] << " row" if get_group_layout(options[:layout]) == :horizontal
options[:class] << " #{error_class}" if has_error?(name)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The label should be red as well, using the "text-danger" error_clas, right?

@desheikh
Copy link
Copy Markdown
Collaborator

@jvanbaarsen thanks for the PR. However Beta 3 has changes the way validations work now though. Closing this as #370 updates things to the new syntax.

@desheikh desheikh closed this Jan 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants