Skip to content
Browse files

registering users: the template

  • Loading branch information...
garu committed Jun 13, 2010
1 parent 57ebf27 commit 04e44bfbe45405b1be77b22d5bf6d3b2f8b4b471
Showing with 22 additions and 0 deletions.
  1. +22 −0
@@ -52,6 +52,10 @@ package main;
get '/' => 'index';

# this controls a user registering
get '/join' => 'join';

# let's rock and roll!

@@ -85,6 +89,24 @@ package main;
@@ join.html.ep
% layout 'main';
<div id="content" class="full ui-corner-all">
<h1>Join us, it's free!</h1>
<form name="join" method="POST">
<tr><td>Username</td><td><input name="username" type="text" tabindex="1" value="<%= param 'username' %>" /></td></tr>
<tr><td>Password</td><td><input name="pwd" type="password" tabindex="2" value="<%= param 'pwd' %>" /></td></tr>
<tr><td>Password (again)</td><td><input name="re-pwd" type="password" tabindex="3" value="<%= param 're-pwd' %>" /></td></tr>
<tr><td>Email</td><td><input name="email" type="text" tabindex="4" value="<%= param 'email' %>" /></td></tr>
<span class="fineprint">Email is optional, and doesn't show in your page. It's used only to fetch your <a href="">gravatar</a></span>
<p>Tell us a bit about yourself - everyone will see it on your page</p>
<textarea class="ui-corner-all" tabindex="5" cols="50" rows="3" id="message" name="bio"><%= param 'bio' %></textarea>
<input type="submit" tabindex="6" value="Create!" />
@@ index.html.ep
% layout 'main';

0 comments on commit 04e44bf

Please sign in to comment.
You can’t perform that action at this time.