Created
December 15, 2013 02:25
-
-
Save kunst1080/7968059 to your computer and use it in GitHub Desktop.
app/helpers/myTwitterBootstrapFieldConstructor.scala.html
It has no help-block
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: views.html.helper.FieldElements) | |
@import play.api.i18n._ | |
@import views.html.helper._ | |
@************************************************** | |
* Generate input according twitter bootsrap rules * | |
**************************************************@ | |
<div class="clearfix @elements.args.get('_class) @if(elements.hasErrors) {error}" id="@elements.args.get('_id).getOrElse(elements.id + "_field")"> | |
<label for="@elements.id">@elements.label(elements.lang)</label> | |
<div class="input"> | |
@elements.input | |
<span class="help-inline">@elements.errors(elements.lang).mkString(", ")</span> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment