From 42fefe22317500c37461b9fc4b74c667919cb3d3 Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Wed, 4 Dec 2024 21:11:43 +0100 Subject: [PATCH] Add basic gallery-dl config form --- archivist/apps/importer/forms.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/archivist/apps/importer/forms.py b/archivist/apps/importer/forms.py index 82ad73d..faefb24 100644 --- a/archivist/apps/importer/forms.py +++ b/archivist/apps/importer/forms.py @@ -8,10 +8,15 @@ class ImportSourceURLsForm(forms.Form): label="Add URL", required=True, widget=forms.TextInput( - attrs={ - 'placeholder': 'https://example.com', - 'class': 'form-control' - } - ) - ) + attrs={"placeholder": "https://example.com", "class": "form-control"} + ), + ) + + +class GalleryDLConfigForm(forms.Form): + text = forms.CharField( + label="GalleryDL Config", + required=True, + widget=forms.Textarea(attrs={"class": "form-control"}), + )