Skip to content

Proper boostrap specific error message styling on forms - #5

Open
anselmdk wants to merge 1 commit into
burnbright:masterfrom
anselmdk:bootstrap-error-styling
Open

anselmdk wants to merge 1 commit into
burnbright:masterfrom
anselmdk:bootstrap-error-styling

Conversation

@anselmdk

Copy link
Copy Markdown
Contributor

This is not super clean but it allows you to easily use the following in your forms:

$this->sessionMessage("my message", 'bad'); //could be good, bad, or warning

See http://api.silverstripe.org/3.1/source-class-Form.html#1052-1067

I also removed the alert-error style - don't see any need for it -maybe it's a leftover from Bootstrap 2.

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.

1 participant