diff options
Diffstat (limited to 'views/forms.py')
-rw-r--r-- | views/forms.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/views/forms.py b/views/forms.py new file mode 100644 index 0000000..a2aac0e --- /dev/null +++ b/views/forms.py @@ -0,0 +1,27 @@ +from django import forms + +class AddTagForm(forms.Form): + tag = forms.CharField(label='', help_text=None, + widget=forms.TextInput( + attrs={'placeholder': 'Add a tag...'} + ) + ) + from_url = forms.CharField(widget=forms.HiddenInput, required=False) + +class SearchForm(forms.Form): + target = forms.CharField(label='', help_text=None, + widget=forms.Select( + choices=(('Subject', 'Subject'), + ('Content', 'Content'), + ('SubjectContent', 'Subject & Content'), + ('From', 'From')) + ) + ) + + keyword = forms.CharField(max_length=100,label='', help_text=None, + widget=forms.TextInput( + attrs={'placeholder': 'Search this list.'} + ) + ) + + |