medsrv: Replace the JavaScript focus() calls with HTML5's autofocus
[strongswan.git] / src / medsrv / templates / user / add.cs
1 <?cs include:"templates/header.cs" ?>
2 <form method="post">
3 <?cs if:?error ?>
4   <div class="error"><?cs var:error ?></div>
5 <?cs /if ?>
6   <table class="user">
7     <tr>
8       <td><label for="new_login">Username</label></td>
9       <td><input type="text" id="new_login" name="new_login" autofocus maxlength="30" value="<?cs var:new_login ?>"/></td>
10     </tr>
11     <tr>
12       <td><label for="new_password">Password</label></td>
13       <td><input type="password" id="new_password" name="new_password"/></td>
14       <td><small>min. <?cs var:password_length ?> characters</small></td>
15     </tr>
16     <tr>
17       <td><label for="confirm_password">Confirm password</label></td>
18       <td><input type="password" id="confirm_password" name="confirm_password"/></td>
19     </tr>
20     <tr>
21       <td/>
22       <td class="right">
23         <input type="submit" value="Register" name="register"/>
24       </td>
25     </tr>
26 </table>
27 </form>
28 <?cs include:"templates/footer.cs" ?>