123456789101112131415161718192021222324252627282930313233343536373839 |
- <main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
- <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 border-bottom">
- <h3 class="h3">{{ trans .lang "admin_user_change_pass_title" }}</h3>
- </div>
- <form method="post">
- <div class="row mb-3 mt-3">
- <label class="col-sm-2 col-form-label col-form-label-sm">
- {{ trans .lang "admin_old_password" }}
- </label>
- <div class="col-sm-10">
- {{ $tagErr := index .errors "OldPassword" }}
- <input type="text" class="form-control form-control-sm {{ if $tagErr }}is-invalid{{ end }}" name="old_password" value="{{ .form.OldPassword }}">
- {{ if $tagErr }}
- <div class="invalid-feedback">
- {{ $tagErr }}
- </div>
- {{ end }}
- </div>
- </div>
- <div class="row mb-3 border-bottom pb-3">
- <label class="col-sm-2 col-form-label col-form-label-sm">
- {{ trans .lang "admin_new_password" }}
- </label>
- <div class="col-sm-10">
- {{ $urlErr := index .errors "NewPassword" }}
- <input type="text" class="form-control form-control-sm {{ if $urlErr }}is-invalid{{ end }}" name="new_password" value="{{ .form.NewPassword }}">
- {{ if $urlErr }}
- <div class="invalid-feedback">
- {{ $urlErr }}
- </div>
- {{ end }}
- </div>
- </div>
- <a href="/admin" class="btn btn-sm btn-secondary">{{ trans .lang "admin_back" }}</a>
- <button type="submit" class="btn btn-sm btn-primary">
- {{ trans .lang "admin_save_btn" }}
- </button>
- </form>
- </main>
|