123456789101112131415161718192021222324252627282930313233 |
- <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">{{ .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">Старый пароль</label>
- <div class="col-sm-10">
- {{ $tagErr := index .errors "ChangePasswordForm.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">Новый пароль</label>
- <div class="col-sm-10">
- {{ $urlErr := index .errors "ChangePasswordForm.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">Назад</a>
- <button type="submit" class="btn btn-sm btn-primary">Сохранить</button>
- </form>
- </main>
|