I am trying to integrate this play-authenticate module with the mobile side of my application. I want to use JQuery mobile for each of the pages instead of Twitter Bootstrap. So I've created a separate view and I've just set up a basic index and I am trying to get the login page to work first. The login page takes a form as its arguement and I'm just wondering if there is a way to use the scala form helpers in play 2.0.* with JQuery Mobile.
My basic login page so far:
@(loginForm: Form[_])
@import helper._
@main(Messages("playauthenticate.login.title"),"login") {
<div data-role="content">
<div data-role="fieldcontain">
<label for="textinput1">
Your Email
</label>
<input name="" id="textinput1" placeholder="" value="" type="email" />
</div>
<div data-role="fieldcontain">
<label for="textinput2">
Your Password
</label>
<input name="" id="textinput2" placeholder="" value="" type="password" />
</div>
<a data-role="button" href="#page1">
Login Now
</a>
<h4>
Or login with a different service:
</h4>
@* Display list of available providers *@
@_providerPartial(skipCurrent=false)
<a data-role="button" data-transition="slidedown" href="routes.Application.index()">
Home
</a>
</div>
}
This is how it looks using Twitter Bootstrap.