From ec022ad3311217bc0f6744afe41182cd0aace22f Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Wed, 10 Jul 2024 22:28:38 +0200 Subject: [PATCH] Add: form for url import --- archivist/apps/importer/forms.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 archivist/apps/importer/forms.py diff --git a/archivist/apps/importer/forms.py b/archivist/apps/importer/forms.py new file mode 100644 index 0000000..82ad73d --- /dev/null +++ b/archivist/apps/importer/forms.py @@ -0,0 +1,17 @@ +from django import forms + +from .models import ImportSourceURLs + + +class ImportSourceURLsForm(forms.Form): + url = forms.URLField( + label="Add URL", + required=True, + widget=forms.TextInput( + attrs={ + 'placeholder': 'https://example.com', + 'class': 'form-control' + } + ) + ) +