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

{{ yield title() }}

{{ gettext(` To import your articles from Wallabag, you must first create an API client in Wallabag's API clients management menu. This will give you a Client ID and Client secret. `)|raw }}

{{ gettext(` You can then enter all the necessary information in the form below. `) }}

{{ yield formErrors(form=.Form) }} {{ yield textField( field=.Form.Get("url"), required=true, label=gettext("Wallabag URL"), class="field-h", help=gettext("URL of your Wallabag homepage") ) }} {{ yield textField( field=.Form.Get("username"), required=true, label=gettext("Username"), class="field-h", ) }} {{ yield passwordField( field=.Form.Get("password"), required=true, label=gettext("Password"), class="field-h", ) }} {{ yield textField( field=.Form.Get("client_id"), required=true, label=gettext("Client ID"), class="field-h", ) }} {{ yield textField( field=.Form.Get("client_secret"), required=true, label=gettext("Client Secret"), class="field-h", ) }} {{ include "./options" }}

{{ gettext("Cancel") }}

{{- end -}}