2023-01-31 12:07:17 +00:00
|
|
|
{{ define "title" -}}
|
2023-01-31 14:40:12 +00:00
|
|
|
{{( pgettext "User Settings" "title" )}}
|
2023-01-31 12:07:17 +00:00
|
|
|
{{- end }}
|
|
|
|
|
2023-03-20 12:09:52 +00:00
|
|
|
{{ define "breadcrumbs" -}}
|
2023-02-02 10:39:34 +00:00
|
|
|
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.profileForm*/ -}}
|
Remove almost all data-hx-boost attributes
Since 16e80b5ae, <body> no longer has overflow, thus no scroll. As a
consequence, htmx no longer is able to scroll up <main> when it changes
due to the default, implicit `show:true` applied to the request: is
calls <main>’s scrollIntoView, however there is nothing to scroll to.
I probably could fix it by changing the target of `show`, or even add
a `scroll` directive to all boosted links, but at this point i think it
is better no not boost links at all, as they do what i want—show the new
page from the top—with less markup, plus the browser now show a loading
animation, and it is not that slower, too.
2024-09-07 23:29:30 +00:00
|
|
|
<nav>
|
2023-02-03 12:58:10 +00:00
|
|
|
<p>
|
|
|
|
<a href="{{ companyURI "/" }}">{{( pgettext "Home" "title" )}}</a> /
|
|
|
|
<a>{{( pgettext "User Settings" "title" )}}</a>
|
|
|
|
</p>
|
|
|
|
</nav>
|
2023-03-20 12:09:52 +00:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{ define "content" }}
|
|
|
|
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.profileForm*/ -}}
|
|
|
|
<section class="dialog-content" id="profile-dialog-content" data-hx-target="this">
|
2023-01-31 14:40:12 +00:00
|
|
|
<h2>{{(pgettext "User Settings" "title")}}</h2>
|
2023-03-20 12:09:52 +00:00
|
|
|
<form method="POST" action="{{ companyURI "/profile" }}" data-hx-boost="true" data-hx-select="#profile-dialog-content">
|
2023-02-02 10:39:34 +00:00
|
|
|
{{ csrfToken }}
|
2023-01-31 14:40:12 +00:00
|
|
|
<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>
|
2023-01-22 20:41:50 +00:00
|
|
|
{{- end }}
|