user_change_password.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
  2. <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 border-bottom">
  3. <h3 class="h3">{{ trans .lang "admin_user_change_pass_title" }}</h3>
  4. </div>
  5. <form method="post">
  6. <div class="row mb-3 mt-3">
  7. <label class="col-sm-2 col-form-label col-form-label-sm">
  8. {{ trans .lang "admin_old_password" }}
  9. </label>
  10. <div class="col-sm-10">
  11. {{ $tagErr := index .errors "OldPassword" }}
  12. <input type="text" class="form-control form-control-sm {{ if $tagErr }}is-invalid{{ end }}" name="old_password" value="{{ .form.OldPassword }}">
  13. {{ if $tagErr }}
  14. <div class="invalid-feedback">
  15. {{ $tagErr }}
  16. </div>
  17. {{ end }}
  18. </div>
  19. </div>
  20. <div class="row mb-3 border-bottom pb-3">
  21. <label class="col-sm-2 col-form-label col-form-label-sm">
  22. {{ trans .lang "admin_new_password" }}
  23. </label>
  24. <div class="col-sm-10">
  25. {{ $urlErr := index .errors "NewPassword" }}
  26. <input type="text" class="form-control form-control-sm {{ if $urlErr }}is-invalid{{ end }}" name="new_password" value="{{ .form.NewPassword }}">
  27. {{ if $urlErr }}
  28. <div class="invalid-feedback">
  29. {{ $urlErr }}
  30. </div>
  31. {{ end }}
  32. </div>
  33. </div>
  34. <a href="/admin" class="btn btn-sm btn-secondary">{{ trans .lang "admin_back" }}</a>
  35. <button type="submit" class="btn btn-sm btn-primary">
  36. {{ trans .lang "admin_save_btn" }}
  37. </button>
  38. </form>
  39. </main>