feat: Allow feed loading from the add links view

This commit is contained in:
Cristian 2020-07-02 15:54:25 -05:00
parent f373df7bd4
commit 8bdfa18a3f
3 changed files with 38 additions and 12 deletions

7
archivebox/core/forms.py Normal file
View file

@ -0,0 +1,7 @@
from django import forms
CHOICES = (('url', 'URL'), ('feed', 'Feed'))
class AddLinkForm(forms.Form):
url = forms.URLField()
source = forms.ChoiceField(choices=CHOICES, widget=forms.RadioSelect, initial='url')