You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
2.2 KiB

  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div id="setting-wrapper" class="main-wrapper">
  4. <div id="user-profile-setting" class="container clear">
  5. {{template "user/settings/nav" .}}
  6. <div class="grid-4-5 left">
  7. <div class="setting-content">
  8. {{template "ng/base/alert" .}}
  9. <div id="setting-content">
  10. <div id="user-profile-setting-content" class="panel panel-radius">
  11. <p class="panel-header"><strong>{{.i18n.Tr "settings.change_password"}}</strong></p>
  12. <form class="form form-align panel-body" id="user-profile-form" action="/user/settings/password" method="post">
  13. {{.CsrfTokenHtml}}
  14. <p class="field">
  15. <label class="req" for="old-password">{{.i18n.Tr "settings.old_password"}}</label>
  16. <input class="ipt ipt-large ipt-radius {{if .Err_OldPassword}}ipt-error{{end}}" id="old-password" name="old_password" type="password" required />
  17. </p>
  18. <p class="field">
  19. <label class="req" for="password">{{.i18n.Tr "settings.new_password"}}</label>
  20. <input class="ipt ipt-large ipt-radius {{if .Err_Password}}ipt-error{{end}}" id="password" name="password" type="password" required />
  21. </p>
  22. <p class="field">
  23. <label class="req" for="retype">{{.i18n.Tr "re_type"}}</label>
  24. <input class="ipt ipt-large ipt-radius {{if .Err_Retype}}ipt-error{{end}}" id="retype" name="retype" type="password" required />
  25. </p>
  26. <p class="field">
  27. <span class="form-label"></span>
  28. <button class="btn btn-green btn-large btn-radius">{{.i18n.Tr "settings.change_password"}}</button>
  29. </p>
  30. </form>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. {{template "ng/base/footer" .}}