Skip to content

Instantly share code, notes, and snippets.

@kunst1080
Created December 14, 2013 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kunst1080/7961333 to your computer and use it in GitHub Desktop.
Save kunst1080/7961333 to your computer and use it in GitHub Desktop.
app/helpers/dubleInput.scala.html It has one label and two inputbox
@(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