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

{{ yield title() }}

{{ gettext("Import a Readeck Profile") }}

{{ gettext(`Import a file obtained through a previous profile export.`) }}

{{ yield formErrors(form=.Form) }} {{- yield fileDropField( field=.Form.Get("data"), required=true, label=gettext("File"), class="field-h", ) -}} {{ yield textField(field=.Form.Get("check"), required=true, label=gettext("Confirm your user name"), class="field-h") }}

{{ gettext("Attention") }}

{{ gettext(` This will empty your current profile and all its data will be replaced with the file's content. `) }}

{{- if hasPermission("bookmarks", "import") -}}

{{ gettext("Import bookmarks from other services") }}

{{ gettext(` If you have bookmarks from another service you can import them in the dedicated section. `, urlFor(`/bookmarks/import`)) | raw }}

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