Created
December 14, 2013 16:25
-
-
Save kunst1080/7961333 to your computer and use it in GitHub Desktop.
app/helpers/dubleInput.scala.html
It has one label and two inputbox
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
@(field: play.api.data.Field, id2: String, name2: String, value2: String, args: (Symbol,Any)*)(implicit handler: helper.FieldConstructor, lang: play.api.i18n.Lang) | |
@inputType = @{ args.toMap.get('type).map(_.toString).getOrElse("text") } | |
@helper.input(field, args.filter(_._1 != 'type):_* ) { (id, name, value, htmlArgs) => | |
<input type="@inputType" id="@id" name="@name" value="@value" style="width:6em" @toHtmlArgs(htmlArgs)> | |
<input type="@inputType" id="@id2" name="@name2" value="@value2" @toHtmlArgs(htmlArgs)> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment