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

{{ yield title() }}

{{ gettext(` In your web browser, export your bookmarks as an HTML file.
Upload this file in the form below and Readeck will create and fetch every bookmark found it the file. `)|raw }}

{{ yield formErrors(form=.Form) }} {{- yield fileDropField( field=.Form.Get("data"), required=true, label=gettext("File"), class="field-h", ) -}} {{ include "./options" }} {{- yield checkboxField( field=.Form.Get("labels_from_titles"), label=gettext("Convert section titles to labels"), class="field-h", help=gettext("Adds a label on links, based on their section title"), ) -}}

{{ gettext("Cancel") }}

{{- end -}}