mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-26 22:20:21 +00:00
10 lines
300 B
Python
10 lines
300 B
Python
from django import forms
|
|
|
|
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()
|
|
depth = forms.ChoiceField(choices=CHOICES, widget=forms.RadioSelect, initial='0')
|