{* SPDX-FileCopyrightText: © 2021 Olivier Meunier SPDX-License-Identifier: AGPL-3.0-only *} {{ extends "./base" }} {{ import "/_libs/forms" }} {{ block title() }}{{ gettext("My profile") }}{{ end }} {{ block mainContent() }}

{{ yield title() }}

{{- if !user.Locked() || user.RequiresMFA() -}}

{{ gettext("You are connected as %s", html(user.Username))|raw }}

{{- end -}}
{{ yield formErrors(form=.Form) }}
{{ gettext("Base settings") }} {{ yield textField(field=.Form.Get("username"), required=true, label=gettext("Username"), class="field-h", inputAttrs=attrList( "disabled", user.Locked(), )) }} {{ yield textField(field=.Form.Get("email"), type="email", required=true, label=gettext("Email Address"), class="field-h", inputAttrs=attrList( "disabled", user.Locked(), )) }} {{ yield selectField(field=.Form.Get("settings_lang"), required=true, label=gettext("Language"), class="field-h") }}
{{- yield message(class="my-0") content -}}
Translate Readeck

You couldn't find your own language or you'd like to improve an existing translation?

You can help with translating Readeck.

{{- end -}}
{{ if hasPermission("email", "send") -}}
{{ gettext("Email settings") }}

{{ gettext(` These, optional, parameters are used when Readeck sends emails. `) }}

{{ yield textField(field=.Form.Get("settings_email_reply_to"), type="email", label=gettext("Reply To"), help=gettext("Add this email address in your outgoing emails so recipients can reply."), class="field-h") }} {{ yield textField(field=.Form.Get("settings_email_epub_to"), type="email", label=gettext("Send EPUB to"), help=gettext("This address is used to prefill the recipient when you send an e-book by email."), class="field-h") }}
{{- yield message(class="my-0") content -}}
{{ gettext(`Sending e-books to an Amazon Kindle`) }}

{{ gettext(` If you plan to send e-books to a Kindle device, you must approve the following email address within your Kindle Account: `) }}

{{ .MailFrom }}

{{- end -}}
{{- end }}

{{ end }}