39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
{{ define "title" -}}
|
|
{{( pgettext "Login" "title" )}}
|
|
{{- end }}
|
|
|
|
{{ define "content" -}}
|
|
{{- /*gotype: dev.tandem.ws/tandem/camper/pkg/app.loginForm */ -}}
|
|
<form method="post" action="/login">
|
|
<h2>{{( pgettext "Login" "title" )}}</h2>
|
|
{{ if .Error -}}
|
|
<div class="error" role="alert">
|
|
<p>{{ .Error }}</p>
|
|
</div>
|
|
{{- end }}
|
|
<fieldset>
|
|
{{ with .Email -}}
|
|
<label>
|
|
{{( pgettext "Email" "input" )}}<br>
|
|
<input type="email" name="{{ .Name }}" value="{{ .Val }}"
|
|
autocomplete="username" required autofocus
|
|
{{ template "error-attrs" . }}><br>
|
|
</label>
|
|
{{ template "error-message" . }}
|
|
{{- end }}
|
|
{{ with .Password -}}
|
|
<label>
|
|
{{( pgettext "Password" "input" )}}<br>
|
|
<input type="password" name="{{ .Name }}" value="{{ .Val }}"
|
|
autocomplete="current-password" required
|
|
{{ template "error-attrs" . }}><br>
|
|
</label>
|
|
{{ template "error-message" . }}
|
|
{{- end }}
|
|
</fieldset>
|
|
<footer>
|
|
<button type="submit">{{( pgettext "Login" "action" )}}</button>
|
|
</footer>
|
|
</form>
|
|
{{- end }}
|