2020-07-03 08:54:25 +12:00
|
|
|
from django import forms
|
|
|
|
|
2020-07-14 04:21:37 +12:00
|
|
|
CHOICES = (
|
|
|
|
('0', 'depth=0 (archive just this url)'),
|
|
|
|
('1', 'depth=1 (archive this url and all sites one link away)'),
|
|
|
|
)
|
2020-07-03 08:54:25 +12:00
|
|
|
|
|
|
|
class AddLinkForm(forms.Form):
|
|
|
|
url = forms.URLField()
|
2020-07-14 04:21:37 +12:00
|
|
|
depth = forms.ChoiceField(choices=CHOICES, widget=forms.RadioSelect, initial='0')
|