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.
Hello, Neat post. There is a problem with your website in internet explorer, might test this?
IE nonetheless is the marketplace leader and a huge
component to other folks will omit your great writing because of this problem.
Very nice post. I just stumbled upon your blog and wanted to say that
I’ve truly enjoyed browsing your blog posts.
After all I’ll be subscribing to your feed
and I hope you write again soon!
سلام و عرض ادب، بنده اخیرا هنگام گشتن در اینترنت به
این صفحه پیداش کردم و صادقانه خیلی خوشم
اومد. نوشتههاش جذاب بود و به ندرت همچین وبسایتی پیدا کنم.
احساس میکنم برای افراد مختلف مفید باشه.
برای کسایی که دنبال محتوای
مفید هستن حتما برن ببینن. در مجموع خوشم اومد و قطعا
دوباره استفاده میکنم
به شکل خلاصه
برای اونایی که میخوان وارد بشن
شرط بندی
هستن
این سیستم
مطمئناً میتونه
مناسب کاربران باشه
قابل توجهه که
برندهای شناختهشدهای مثل
enfejɑronline.net
و
siƄ-bet
توسعه پیدا کردن
در کل
جذاب بود
و
به احتمال قوی
بازدیدش میکنم
.
Also visіit my website – راهنمای کامل شروع بازی انفجار برای مبتدیها
Whoa! This blog looks just like my old one! It’s on a entirely different
topic but it has pretty much the same page layout and design. Excellent
choice of colors!
whoah this weblog is fantastic i like reading your articles.
Stay up the great work! You already know, a lot of people are looking round for this information, you could aid them greatly.
بطور خلاصه
برای کاربرانی که دنبال تجربه هستن
گیمهای پولی
میگردن
این پلتفرم
به خوبی میتونه
به درد بخوره
از طرف دیگه
اسمهایی مثل
enfejaronlіne محبوب
و
sibbet شناخته شده
تجربه خوبی ارائهدادن
نتیجه نهایی اینکه
ارزش داشت
و
به زودی
دوباره نگاهش میکنم
Visit my homepage; سایت فرهنگی
Hi my family member! I want to say that this post is amazing,
nice written and come with approximately all vital infos.
I would like to see more posts like this .
I constantly emailed this web site post page to all
my contacts, because if like to read it afterward my friends
will too.
Hello to all, since I am genuinely keen of reading this webpage’s post to be updated regularly.
It carries good material.