Add: form for url import
This commit is contained in:
parent
374e1d1f1e
commit
ec022ad331
1 changed files with 17 additions and 0 deletions
17
archivist/apps/importer/forms.py
Normal file
17
archivist/apps/importer/forms.py
Normal file
|
@ -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'
|
||||
}
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in a new issue