tubesync/app/sync/forms.py

25 lines
498 B
Python
Raw Normal View History

2020-11-26 03:03:55 +00:00
from django import forms
from django.utils.translation import gettext_lazy as _
2020-11-26 03:03:55 +00:00
class ValidateSourceForm(forms.Form):
source_type = forms.CharField(
max_length=1,
required=True,
widget=forms.HiddenInput()
)
source_url = forms.URLField(
label=_('Source URL'),
2020-11-26 03:03:55 +00:00
required=True
)
class ConfirmDeleteSourceForm(forms.Form):
delete_media = forms.BooleanField(
label=_('Also delete downloaded media'),
required=False
)