5ebd42d8f9
* Improve form and template usage.
24 lines
1.1 KiB
Plaintext
24 lines
1.1 KiB
Plaintext
{{define "content"}}
|
|
<form method="post" hx-boost="true" action="{{.Path}}">
|
|
<div class="field">
|
|
<label for="password" class="label">Password</label>
|
|
<div class="control">
|
|
<input type="password" id="password" name="password" placeholder="*******" class="input {{.Form.GetFieldStatusClass "Password"}}">
|
|
{{template "field-errors" (.Form.GetFieldErrors "Password")}}
|
|
</div>
|
|
</div>
|
|
<div class="field">
|
|
<label for="password-confirm" class="label">Confirm password</label>
|
|
<div class="control">
|
|
<input type="password" id="password-confirm" name="password-confirm" placeholder="*******" class="input {{.Form.GetFieldStatusClass "ConfirmPassword"}}">
|
|
{{template "field-errors" (.Form.GetFieldErrors "ConfirmPassword")}}
|
|
</div>
|
|
</div>
|
|
<div class="field is-grouped">
|
|
<p class="control">
|
|
<button class="button is-primary">Update password</button>
|
|
</p>
|
|
</div>
|
|
{{template "csrf" .}}
|
|
</form>
|
|
{{end}} |