{* SPDX-FileCopyrightText: © 2023 Olivier Meunier SPDX-License-Identifier: AGPL-3.0-only *} {{ extends "./base" }} {{ import "/_libs/forms" }} {{ block title() }}{{ gettext("Welcome to Readeck!") }}{{ end }} {{ block main() }}

{{ yield title() }}

{{ gettext("We're delighted to have you on board; one more step and you're good to go.") }}

{{ yield formErrors(form=.Form) }} {{ yield textField(field=.Form.Get("username"), required=true, label=gettext("Username"), class="max") }} {{ yield passwordField(field=.Form.Get("password"), required=true, label=gettext("Password"), class="max", inputAttrs=attrList("autocomplete", "new-password"), help=gettext("must be at least 8 characters long")) }}
{{ yield textField(field=.Form.Get("email"), type="email", label=gettext("Email address"), class="max") }}

{{ gettext("Please note:") }} {{ gettext(` Your email address is optional and will never leave this installation. It will never be collected, transferred or sold. It will only be used, should you need it, for password recovery and internal notifications. `)|raw }}

{{ end }}