1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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.'}
)
)
|