1 <%inherit file="/base.mako"/>
3 <h2>Register a New User</h2>
5 <form action="${h.url_for(controller='user', action='create')}" method="post">
6 ${h.auth_token_hidden_field()}
9 <th><label for="username">Username</label></th>
10 <td>${h.text('username', size=32)}</td>
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
15 % if request.environ.get('AUTH_TYPE') == 'basic':
17 <th><label for="password">Password</label></th>
18 <td>${h.password('password', size=32)}</td>
21 <th><label for="confirm_password">Confirm password</label></th>
22 <td>${h.password('confirm_password', size=32)}</td>
26 <th><label for="name">Display name</label></th>
27 <td>${h.text('name', size=32)}</td>
31 <td><label>${h.radio('resident', '1')} Yes</label>
32 <label>${h.radio('resident', '0', checked='checked')} No</label></td>
35 <p>Residents are included by default in new expenditures.</p>
39 <input class="submitbutton" id="none" type="submit" value="Submit" />