44 lines
1.6 KiB
Plaintext
44 lines
1.6 KiB
Plaintext
{{ define "title" -}}
|
|
{{( pgettext "User Settings" "title" )}}
|
|
{{- end }}
|
|
|
|
{{ define "breadcrumbs" -}}
|
|
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.profileForm*/ -}}
|
|
<nav data-hx-target="main" data-hx-boost="true">
|
|
<p>
|
|
<a href="{{ companyURI "/" }}">{{( pgettext "Home" "title" )}}</a> /
|
|
<a>{{( pgettext "User Settings" "title" )}}</a>
|
|
</p>
|
|
</nav>
|
|
{{- end }}
|
|
|
|
{{ define "content" }}
|
|
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.profileForm*/ -}}
|
|
<section class="dialog-content" id="profile-dialog-content" data-hx-target="this">
|
|
<h2>{{(pgettext "User Settings" "title")}}</h2>
|
|
<form method="POST" action="{{ companyURI "/profile" }}" data-hx-boost="true" data-hx-select="#profile-dialog-content">
|
|
{{ csrfToken }}
|
|
<fieldset class="full-width">
|
|
<legend>{{( pgettext "User Access Data" "title" )}}</legend>
|
|
|
|
{{ template "input-field" .Name }}
|
|
{{ template "input-field" .Email }}
|
|
</fieldset>
|
|
<fieldset class="full-width">
|
|
<legend>{{( pgettext "Password Change" "title" )}}</legend>
|
|
|
|
{{ template "input-field" .Password }}
|
|
{{ template "input-field" .PasswordConfirm }}
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
<legend id="language-legend">{{( pgettext "Language" "title" )}}</legend>
|
|
|
|
{{ template "select-field" .Language }}
|
|
|
|
<button type="submit">{{( pgettext "Save changes" "action" )}}</button>
|
|
</fieldset>
|
|
</form>
|
|
</section>
|
|
{{- end }}
|