Skip to content

Duplicated error class for error_notification #586

Closed
tkrotoff opened this Issue Jun 2, 2012 · 1 comment

2 participants

@tkrotoff
tkrotoff commented Jun 2, 2012

Easy to replicate:

Go to http://simple-form-bootstrap.plataformatec.com.br/articles/new
Click on 'Create Article' button at the bottom without entering anything inside the fields.
This generates the error message Some errors were found, please take a look: at the top.

The generated HTML is:

<div class="alert alert-error fade in">
  <a class="close" data-dismiss="alert" href="#">×</a>
  <div class="alert alert-error">Some errors were found, please take a look:</div>
</div>

And it should be:

<div class="alert alert-error fade in">
  <a class="close" data-dismiss="alert" href="#">×</a>
  <div>Some errors were found, please take a look:</div>
</div>

See the difference:
Before: before

After: after

@carlosantoniodasilva

Just comment out this line from your generator, and it'll work.

We handle that particular case manually in the html in case you want to add the close action in bootstrap's example app. I'm gonna fix it there, thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.