summaryrefslogtreecommitdiff
path: root/src/medsrv/templates/user/edit.cs
blob: 1f168498be07def8909e88ace7ed4332ee83b576 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?cs include:"templates/header.cs" ?>
<form method="post">
<?cs if:?error ?>
  <div class="error"><?cs var:error ?></div>
<?cs /if ?>
  <table class="user">
    <tr>
      <td><label for="old_login">Username</label></td>
      <td><input type="text" id="old_login" name="old_login" maxlength="30" value="<?cs var:old_login ?>" /></td>
    </tr>
    <tr>
      <td><label for="old_password">Old password</label></td>
      <td><input type="password" id="old_password" name="old_password"/></td>
      <td></td>
    </tr>
    <tr>
      <td><label for="new_password">New password</label></td>
      <td><input type="password" id="new_password" name="new_password"/></td>
      <td><small>min. <?cs var:password_length ?> characters</small></td>
    </tr>
    <tr>
      <td><label for="confirm_password">Confirm new password</label></td>
      <td><input type="password" id="confirm_password" name="confirm_password"/></td>
    </tr>
    <tr>
      <td></td>
      <td class="right">
        <input type="submit" value="Back" name="back"/> 
        <input type="submit" value="Delete" name="delete" onclick="return confirm('Permanently delete your account?')"/> 
        <input type="submit" value="Save" name="save"/>
      </td>
    </tr>
  </table>
</form>
<?cs include:"templates/footer.cs" ?>