Created
November 13, 2011 21:21
-
-
Save ryanswanstrom/1362739 to your computer and use it in GitHub Desktop.
An example of a form using the previous style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section class="cols cols4"> | |
<article class="col first"> </article> | |
<article class="col col2" > | |
#{form @authenticate()} | |
<fieldset class="s_column"> | |
<legend>Login</legend> | |
#{if flash.error} | |
<p class="error brdr"> | |
&{flash.error} | |
</p> | |
#{/if} | |
#{if flash.success} | |
<p class="success brdr"> | |
&{flash.success} | |
</p> | |
#{/if} | |
<div> | |
<label for="username">&{'secure.username'}</label> | |
<input type="text" name="username" id="username" value="${flash.username}" class="shdw"/> | |
</div> | |
<div> | |
<label for="password">&{'secure.password'}</label> | |
<input type="password" name="password" id="password" value="" class="shdw" /> | |
</div> | |
<div> | |
<label>&{'secure.remember'}</label> | |
<input type="checkbox" name="remember" id="remember" ${flash.remember ? 'checked="true"' : ''} /> | |
</div> | |
<input type="submit" value="&{'secure.signin'}" class="button blue"/> | |
#{a @Application.index()}Cancel#{/a} | |
<div> | |
#{a @UsersOpen.forgotUsername()}Forgot username#{/a} | #{a @UsersOpen.forgotPassword()}Forgot password#{/a} | |
</div> | |
</fieldset> | |
#{/form} | |
</article> | |
<article class="col"> </article> | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment