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.
non prescription cialis online pharmacy viagra online american pharmacy international pharmacy no prescription
one piece filler list
We are a gaggle of volunteers and opening a new scheme in our
community. Your site provided us with valuable info to work on. You’ve done a formidable
activity and our whole neighborhood might be grateful to you.
how much does cialis cost at a pharmacy envision rx pharmacy help desk canadian pharmacies that deliver to the us
Your means of explaining the whole thing in this
paragraph is truly fastidious, all be capable of simply be aware
of it, Thanks a lot.
my web blog … real estate agent Redondo Beach CA
I feel this is among the most vital information for me.
And i am happy reading your article. But wanna observation on few common things,
The site taste is perfect, the articles is
in point of fact great : D. Excellent job, cheers
Also visit my site – realtor in Greensboro NC
I think the admin of this site is truly working hard in support of his web page, since
here every stuff is quality based information.
I have been surfing online more than 4 hours today,
yet I never found any interesting article
like yours. It’s pretty worth enough for me.
Personally, if all webmasters and bloggers made good content as you did, the web will be much more useful than ever before.
my webpage … best realtor in Tampa FL
No matter if some one searches for his required thing, therefore he/she desires to be available that
in detail, therefore that thing is maintained over here.
my web-site … best real estate agent in El Segundo CA
Hi it’s me, I am also visiting this website regularly, this web page is in fact nice
and the users are in fact sharing fastidious thoughts.
You really make it seem really easy with your presentation but I in finding this
matter to be actually something that I feel I might never understand.
It sort of feels too complex and very extensive for me.
I am looking ahead for your next submit, I will try to get the
grasp of it!
Here is my webpage real estate agent Carlsbad CA