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.
Bet88, Bet88.com, nhà cái Bet88, trang chủ Bet88, https://bet88vn.agency/, link Bet88, Bet88 nhà cái, Bet88 com,
bet88vn.agency.
Hi I am so delighted I found your site,
I really found you by error, while I was looking on Google for something else, Regardless I am here now and would just like to say cheers
for a tremendous post and a all round exciting blog
(I also love the theme/design), I don’t have time to read through
it all at the minute but I have book-marked it and also added in your
RSS feeds, so when I have time I will be back
to read a great deal more, Please do keep up the awesome work.
Quanto tempo vocês dão pro Caishen Wins antes de rotacionar?