54 lines
2.2 KiB
HTML
54 lines
2.2 KiB
HTML
|
<!doctype html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
<title>{{(pgettext "User Settings" "title")}} — Numerus</title>
|
||
|
<link rel="stylesheet" type="text/css" media="screen" href="/static/numerus.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<header>
|
||
|
<h1><img src="/static/numerus.svg" alt="Numerus" width="261" height="33"></h1>
|
||
|
<nav role="navigation">
|
||
|
<button aria-haspopup="true"><i class="ri-eye-close-line ri-3x"></i></button>
|
||
|
<ul>
|
||
|
<li><a href="/profile"><i class="ri-account-circle-line"></i> {{( gettext "Account" )}}</a></li>
|
||
|
<li><form method="POST" action="/logout"><button type="submit"><i class="ri-logout-circle-line"></i> {{( pgettext "Logout" "action" )}}</button></form></li>
|
||
|
</ul>
|
||
|
</nav>
|
||
|
</header>
|
||
|
<main>
|
||
|
<h2>{{(pgettext "User Settings" "title")}}</h2>
|
||
|
<form method="POST" action="/profile">
|
||
|
<fieldset>
|
||
|
<legend>{{( pgettext "User Access Data" "title" )}}</legend>
|
||
|
|
||
|
<label for="name">{{( pgettext "User name" "input" )}}</label>
|
||
|
<input type="text" name="name" id="name" required="required" value="{{ .Name }}">
|
||
|
|
||
|
<label for="email">{{( pgettext "Email" "input" )}}</label>
|
||
|
<input type="email" name="email" id="email" required="required" value="{{ .Email }}">
|
||
|
</fieldset>
|
||
|
<fieldset>
|
||
|
<legend>{{( pgettext "Password Change" "title" )}}</legend>
|
||
|
|
||
|
<label for="password">{{( pgettext "Password" "input" )}}</label>
|
||
|
<input type="password" name="password" id="password" value="{{ .Password }}">
|
||
|
|
||
|
<label for="password_confirm">{{( pgettext "Password Confirmation" "input" )}}</label>
|
||
|
<input type="password" name="password_confirm" id="password_confirm" value="{{ .PasswordConfirm }}">
|
||
|
</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>
|
||
|
</main>
|
||
|
</body>
|
||
|
</html>
|