{* SPDX-FileCopyrightText: © 2025 Olivier Meunier SPDX-License-Identifier: AGPL-3.0-only *} {{- import "/_libs/common" -}} {{ import "/_libs/forms" }}
{{- if !.Sent -}} {{ if isTurbo -}} {{- if .Form.Get("format").Value() == "html" -}}

{{ gettext("Sends this bookmark's content in the message.") }}

{{- else if .Form.Get("format").Value() == "epub" -}}

{{ gettext("Sends this bookmark as an attached EPUB file.") }}

{{- end -}} {{- end }} {{ yield formErrors(form=.Form) }} {{ if isTurbo -}} {{- else -}} {{ yield selectField( field=.Form.Get("format"), label=gettext("Format"), required=true, class="field" ) }} {{- end }} {{ yield textField( field=.Form.Get("email"), type="email", required=true, label=gettext("Send To"), class="field" ) }}

{{- else -}} {{- yield message(type="success") content -}} {{ gettext("The bookmark was sent to %s", .Form.Get("email")) }} {{- end -}} {{- end -}} {{ if !isTurbo -}}

{{ gettext("Go back to the bookmark") }}

{{- end }}