22 lines
507 B
Python
22 lines
507 B
Python
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"}
|
|
),
|
|
)
|
|
|
|
|
|
class GalleryDLConfigForm(forms.Form):
|
|
text = forms.CharField(
|
|
label="GalleryDL Config",
|
|
required=True,
|
|
widget=forms.Textarea(attrs={"class": "form-control"}),
|
|
)
|
|
|