mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
fix the add links form
This commit is contained in:
parent
215d5eae32
commit
ae208435c9
6 changed files with 10 additions and 8 deletions
|
@ -1,7 +1,10 @@
|
|||
from django import forms
|
||||
|
||||
CHOICES = (('url', 'URL'), ('feed', 'Feed'))
|
||||
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()
|
||||
source = forms.ChoiceField(choices=CHOICES, widget=forms.RadioSelect, initial='url')
|
||||
depth = forms.ChoiceField(choices=CHOICES, widget=forms.RadioSelect, initial='0')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue