]> asedeno.scripts.mit.edu Git - bluechips.git/blob - bluechips/templates/user/new.mako
Added UI for working with tags
[bluechips.git] / bluechips / templates / user / new.mako
1 <%inherit file="/base.mako"/>
2
3 <h2>Register a New User</h2>
4
5 <form action="${h.url_for(controller='user', action='create')}" method="post">
6   ${h.auth_token_hidden_field()}
7   <table class="form">
8     <tr>
9       <th><label for="username">Username</label></th>
10       <td>${h.text('username', size=32)}</td>
11     </tr>
12 ## If you used a password to authenticate, we'll ask for
13 ## one. Otherwise, we assume you didn't use our authn stack to
14 ## authenticate
15 % if request.environ.get('AUTH_TYPE') == 'basic':
16     <tr>
17       <th><label for="password">Password</label></th>
18       <td>${h.password('password', size=32)}</td>
19     </tr>
20     <tr>
21       <th><label for="confirm_password">Confirm password</label></th>
22       <td>${h.password('confirm_password', size=32)}</td>
23     </tr>
24 % endif
25     <tr>
26       <th><label for="name">Display name</label></th>
27       <td>${h.text('name', size=32)}</td>
28     </tr>
29     <tr>
30       <th>Resident</th>
31       <td><label>${h.radio('resident', '1')} Yes</label>
32         <label>${h.radio('resident', '0', checked='checked')} No</label></td>
33     </tr>
34   </table>
35   <p>Residents are included by default in new expenditures.</p>
36   <table class="form">
37     <tr>
38       <td colspan="2">
39         <input class="submitbutton" id="none" type="submit" value="Submit" />
40       </td>
41     </tr>
42   </table>
43 </form>