2024-07-10 22:28:38 +02:00
|
|
|
from django import forms
|
|
|
|
|
|
|
|
from .models import ImportSourceURLs
|
|
|
|
|
|
|
|
|
|
|
|
class ImportSourceURLsForm(forms.Form):
|
|
|
|
url = forms.URLField(
|
|
|
|
label="Add URL",
|
|
|
|
required=True,
|
|
|
|
widget=forms.TextInput(
|
2024-12-04 21:11:43 +01:00
|
|
|
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"}),
|
|
|
|
)
|
2024-07-10 22:28:38 +02:00
|
|
|
|