Created
March 21, 2012 13:22
-
-
Save divarvel/2146847 to your computer and use it in GitHub Desktop.
Play2 + Bootstrap2
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
@(elements: helper.FieldElements) | |
@************************************************** | |
* Generate input according twitter bootsrap rules * | |
**************************************************@ | |
<div class="control-group@if(elements.hasErrors) {" errors"}"> | |
<label for="@elements.id" class="control-label">@elements.label</label> | |
<div class="controls"> | |
@elements.input | |
<span class="help-inline">@((elements.errors ++ elements.infos).mkString(", "))</span> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment