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.
Hi there, this weekend is pleasant in favor of me, since this moment i am
reading this great informative piece of writing here at my house.
نتیجهگیری اینکه
برای کسانی که میخوان
کازینو اینترنتی
میگردن
این مجموعه آنلاین
به خوبی میتونه
کمککننده باشه
در ضمن
پروژههایی مثل
enfejaronline جدید
و
sibbet جدید
جایگاه خوبی دارن
در آخر کار
ازش راضی بودم
و
بدون تردید
حتما برمیگردم
my blog :: سلامت روان
I enjoy what you guys are usually up too. Such clever work
and reporting! Keep up the good works guys I’ve incorporated you guys
to my own blogroll.
my web-site: best real estate agent in Crown Point IN
Every weekend i used to pay a quick visit this web site, as
i wish for enjoyment, for the reason that this this website conations really good funny information too.
Feel free to visit my blog: realtor in Schaumburg IL
Hey there are using WordPress for your blog platform?
I’m new to the blog world but I’m trying to get
started and set up my own. Do you need any html coding expertise to make your own blog?
Any help would be really appreciated!
Documented losing days became badges of discipline in the community.
Hi there, all is going perfectly here and ofcourse every
one is sharing facts, that’s genuinely excellent, keep up
writing.
Here is my webpage: 마사지사이트
Withdrawal screenshots replaced big-win screenshots in chat.
Hi, i think that i saw you visited my website thus i came to “return the favor”.I am attempting to find things to improve my site!I suppose its ok to use some of your ideas!!
Feel free to visit my page; bathroom fitters contractors
Very great post. I just stumbled upon your weblog and wanted to mention that I
have really enjoyed surfing around your weblog posts.
In any case I will be subscribing on your rss feed and I
am hoping you write once more soon!
I was curious if you ever considered changing the layout of your
blog? Its very well written; I love what youve got to
say. But maybe you could a little more in the way of content so people could connect with it better.
Youve got an awful lot of text for only having one or two images.
Maybe you could space it out better?
Here is my website; best real estate agent in Fort Lauderdale FL
Wow, awesome blog layout! How long have you been blogging for?
you make blogging look easy. The overall look of your website
is excellent, as well as the content!
My web page best real estate agent in Chicago IL
Why viewers still use to read news papers when in this technological globe all
is available on net?
constantly i used to read smaller posts that as well clear their motive, and that is also happening
with this piece of writing which I am reading here.
great submit, very informative. I’m wondering why the opposite
specialists of this sector do not notice this. You should proceed your writing.
I am confident, you’ve a great readers’ base already!
Check out my website; best realtor in Douglasville GA
You could certainly see your enthusiasm within the work you write.
The world hopes for even more passionate writers like you
who are not afraid to say how they believe. All the time follow your heart.
Here is my site – shower fitters near me
I wanted to thank you for this great read!!
I definitely enjoyed every bit of it. I have you book marked to
look at new things you post…
my website – bath fitter nearby