password.tmpl 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. {{template "base/head" .}}
  2. <div class="user settings password">
  3. <div class="ui container">
  4. <div class="ui grid">
  5. {{template "user/settings/navbar" .}}
  6. <div class="twelve wide column content">
  7. {{template "base/alert" .}}
  8. <h4 class="ui top attached header">
  9. {{.i18n.Tr "settings.change_password"}}
  10. </h4>
  11. <div class="ui attached segment">
  12. <form class="ui form" action="{{.Link}}" method="post">
  13. {{.CsrfTokenHtml}}
  14. <div class="required field {{if .Err_OldPassword}}error{{end}}">
  15. <label for="old_password">{{.i18n.Tr "settings.old_password"}}</label>
  16. <input id="old_password" name="old_password" type="password" autofocus required>
  17. </div>
  18. <div class="required field {{if .Err_Password}}error{{end}}">
  19. <label for="password">{{.i18n.Tr "settings.new_password"}}</label>
  20. <input id="password" name="password" type="password" required>
  21. </div>
  22. <div class="required field {{if .Err_Password}}error{{end}}">
  23. <label for="retype">{{.i18n.Tr "settings.retype_new_password"}}</label>
  24. <input id="retype" name="retype" type="password" required>
  25. </div>
  26. <div class="field">
  27. <button class="ui green button">{{$.i18n.Tr "settings.change_password"}}</button>
  28. </div>
  29. </form>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. {{template "base/footer" .}}