Created
December 27, 2011 02:58
-
-
Save mgreenly/1522591 to your computer and use it in GitHub Desktop.
rails form formatting for twitter bootstrap #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- without error --> | |
<div class="clearfix"> | |
<label for="bar">Bar</label> | |
<div class="input"> | |
<input id="foo_bar" name="foo[bar]" size="30" type="text"> | |
</div> | |
</div> | |
<!-- with error --> | |
<div class="clearfix error"> | |
<label for="bar">Bar</label> | |
<div class="input error"> | |
<input id="foo_bar" name="foo[bar]" size="30" value="" type="text"> | |
<span class="help-inline"></span> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment