41 lines
1.8 KiB
HTML
41 lines
1.8 KiB
HTML
{{ define "content" }}
|
|
<h2>{{(pgettext "User Settings" "title")}}</h2>
|
|
<form method="POST" action="/profile">
|
|
<fieldset>
|
|
<legend>{{( pgettext "User Access Data" "title" )}}</legend>
|
|
|
|
<div class="input">
|
|
<input type="text" name="name" id="name" required="required" value="{{ .Name }}" placeholder="{{( pgettext "User name" "input" )}}">
|
|
<label for="name">{{( pgettext "User name" "input" )}}</label>
|
|
</div>
|
|
|
|
<div class="input">
|
|
<input type="email" name="email" id="email" required="required" value="{{ .Email }}" placeholder="{{( pgettext "Email" "input" )}}">
|
|
<label for="email">{{( pgettext "Email" "input" )}}</label>
|
|
</div>
|
|
</fieldset>
|
|
<fieldset>
|
|
<legend>{{( pgettext "Password Change" "title" )}}</legend>
|
|
|
|
<div class="input">
|
|
<input type="password" name="password" id="password" value="{{ .Password }}" placeholder="{{( pgettext "Password" "input" )}}">
|
|
<label for="password">{{( pgettext "Password" "input" )}}</label>
|
|
</div>
|
|
|
|
<div class="input">
|
|
<input type="password" name="password_confirm" id="password_confirm" value="{{ .PasswordConfirm }}" placeholder="{{( pgettext "Password Confirmation" "input" )}}">
|
|
<label for="password_confirm">{{( pgettext "Password Confirmation" "input" )}}</label>
|
|
</div>
|
|
</fieldset>
|
|
|
|
<label for="language">{{( pgettext "Language" "input" )}}</label>
|
|
<select id="language" name="language">
|
|
<option value="und">{{( pgettext "Automatic" "language option" )}}</option>
|
|
{{- range $language := .Languages }}
|
|
<option value="{{ .Tag }}" {{ if eq .Tag $.Language }}selected="selected"{{ end }}>{{ .Name }}</option>
|
|
{{- end }}
|
|
</select>
|
|
<button type="submit">{{( pgettext "Save changes" "action" )}}</button>
|
|
</form>
|
|
{{- end }}
|