Skip to content

Instantly share code, notes, and snippets.

@ryanswanstrom
Created November 13, 2011 21:21
Show Gist options
  • Save ryanswanstrom/1362739 to your computer and use it in GitHub Desktop.
Save ryanswanstrom/1362739 to your computer and use it in GitHub Desktop.
An example of a form using the previous style
<section class="cols cols4">
<article class="col first"> &nbsp; </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"> &nbsp; </article>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment