um_index.tmpl 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>User management</title>
  5. <link rel="stylesheet" text="text/css" href="/static/style.css">
  6. </head>
  7. <body>
  8. <div>
  9. <div class="content-box">
  10. <h1>User management</h1>
  11. <div style="text-align: right">
  12. <a href="../v1/session/logout">Logout</a>
  13. </div>
  14. <form action="update" method="POST">
  15. <table class="content-table" style="table-layout: auto">
  16. {{ #each error_msg }}
  17. <tr>
  18. <td colspan="3">
  19. <div class="error-msg">{{ this }}</div>
  20. </td>
  21. </tr>
  22. {{ /each }}
  23. {{ #each info_msg }}
  24. <tr>
  25. <td colspan="3">
  26. <div class="info-msg">{{ this }}</div>
  27. </td>
  28. </tr>
  29. {{ /each }}
  30. <tr>
  31. <td>Logged in as:</td>
  32. <td>{{ username }}</td>
  33. </tr>
  34. <tr><td>&nbsp;</td></tr>
  35. <tr><td colspan="3"><small>In order to make changes, you must authenticate with your current password.</small></td></tr>
  36. <tr><td>&nbsp;</td></tr>
  37. <tr>
  38. <td>Current password:</td>
  39. <td><input type="password" name="current_password" /></td>
  40. </tr>
  41. <tr><td>&nbsp;</td></tr>
  42. <tr>
  43. <td>New password:</td>
  44. <td><input type="password" name="new_password" /></td>
  45. </tr>
  46. <tr>
  47. <td>New password (again):</td>
  48. <td><input type="password" name="new_password_repeated" /></td>
  49. </tr>
  50. <tr><td>&nbsp;</td></tr>
  51. <tr>
  52. <td>
  53. TOTP control:
  54. </td>
  55. <td>
  56. <select name="totp_control">
  57. {{ #each totp_control }}
  58. <option value="{{ value }}">{{ text }}</option>
  59. {{ /each }}
  60. </input>
  61. </td>
  62. </tr>
  63. <tr><td>&nbsp;</td></tr>
  64. <tr>
  65. <td colspan="3" style="text-align: center"><input type="submit" value="Update" /></td>
  66. </tr>
  67. </table>
  68. </form>
  69. </div>
  70. <div class="footer">
  71. Copyright &copy; Kestrel 2024. Released under the terms of the 4-clause BSD license.
  72. </div>
  73. </div>
  74. </body>
  75. </html>