1
0
Fork 0
mirror of synced 2024-07-04 14:00:49 +12:00
ArchiveBox/archivebox/core/forms.py

11 lines
300 B
Python
Raw Normal View History

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)'),
)
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')