The built in Play input elements are fairly restrictive in that you can’t specify the input type. I wrote a helper template that you can use to generate input elements which have HTML5 type attributes such as url, email, number, search etc. etc.
All you have to do is call the template method, passing the HTML input type as a parameter. For example:
@helper.html5.input(form("website"), '_label -> "Website:", 'type -> "url")
If you have a form field mapped as a play.api.data.Forms.email then the template will automatically infer it’s type so you don’t have to pass the type attribute in with your html attributes:
@helper.html5.input(form("email"), '_label -> "Email:")
If your field has the required constraint, e.g. it is a “nonEmptyText” then the template will add the HTML5 “required” attribute to the field as well.
You can get the source code here.
ремонт у 2 квартирі приклади ремонт квартир Львів
This paragraph gives clear idea for the new users of blogging, that genuinely how to
do blogging.
paginas de promociones casas apuestas (Felisha) que aceptan paypal
Appreciate the recommendation. Will try it out.
Thanks in favor of sharing such a good thinking, article is good, thats why i
have read it completely
Wonderful article! This is the type of information that should be shared around the web.
Disgrace on the seek engines for not positioning this submit upper!
Come on over and talk over with my web site . Thanks =)
apuestas De tenis de mesa de hoy seguras
naturally like your web site but you have to take a look at
the spelling on several of your posts. Several of them are rife with
spelling problems and I in finding it very troublesome to tell
the truth on the other hand I’ll certainly come back again.
Hi there, I enjoy reading all of your post. I like to write a little comment
to support you.