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.
As a digital gateway to entertainment and live
experiences, Ticket Planet offers convenient access to concerts, music festivals, and sporting events
across various markets. Users searching for
ticketplanet Concert schedules, ticketplanet Concerts featuring popular performers, or trusted ticketplanet
Tickets can explore available options from a single platform.
The service supports event discovery for ticketplanet Shanghai, including ticketplanet Shanghai Tickets and ticketplanet Shanghai sports activities.
Fans of athletics can browse ticketplanet China sports opportunities
and ticketplanet China sports Tickets, while travelers may find ticketplanet Macau
and ticketplanet Macau sports events appealing. Major festival experiences such as ticketplanet tomorrowland
further expand the platform’s entertainment offering, making Ticket
Planet a useful resource for event-goers worldwide.
Whoa! This blog looks exactly like my old one!
It’s on a totally different subject but it has pretty much
the same layout and design. Excellent choice of colors!
What’s up Dear, are you really visiting this web
page regularly, if so afterward you will without doubt get pleasant experience.
Thanks for some other fantastic article. Where else may anybody get that kind of information in such an ideal method of writing?
I’ve a presentation subsequent week, and I am on the look for such information.