user_change_password.html 1.6 KB

123456789101112131415161718192021222324252627282930313233
  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">{{ .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">Старый пароль</label>
  8. <div class="col-sm-10">
  9. {{ $tagErr := index .errors "ChangePasswordForm.OldPassword" }}
  10. <input type="text" class="form-control form-control-sm {{ if $tagErr }}is-invalid{{ end }}" name="old_password" value="{{ .form.OldPassword }}">
  11. {{ if $tagErr }}
  12. <div class="invalid-feedback">
  13. {{ $tagErr }}
  14. </div>
  15. {{ end }}
  16. </div>
  17. </div>
  18. <div class="row mb-3 border-bottom pb-3">
  19. <label class="col-sm-2 col-form-label col-form-label-sm">Новый пароль</label>
  20. <div class="col-sm-10">
  21. {{ $urlErr := index .errors "ChangePasswordForm.NewPassword" }}
  22. <input type="text" class="form-control form-control-sm {{ if $urlErr }}is-invalid{{ end }}" name="new_password" value="{{ .form.NewPassword }}">
  23. {{ if $urlErr }}
  24. <div class="invalid-feedback">
  25. {{ $urlErr }}
  26. </div>
  27. {{ end }}
  28. </div>
  29. </div>
  30. <a href="/admin" class="btn btn-sm btn-secondary">Назад</a>
  31. <button type="submit" class="btn btn-sm btn-primary">Сохранить</button>
  32. </form>
  33. </main>