added ability to search for corps, chars and alliances.
This commit is contained in:
24
eve_auth/forms.py
Normal file
24
eve_auth/forms.py
Normal file
@@ -0,0 +1,24 @@
|
||||
from django import forms
|
||||
|
||||
|
||||
class SearchForm(forms.Form):
|
||||
category_choices = (
|
||||
('alliance', 'Alliance'),
|
||||
('character', 'Character'),
|
||||
('corporation', 'Corporation')
|
||||
)
|
||||
search_text = forms.CharField(label='Search Text',
|
||||
max_length=100,
|
||||
min_length=3,
|
||||
widget=forms.TextInput(
|
||||
attrs={
|
||||
'class': 'form-control',
|
||||
'placeholder': 'Search Text'
|
||||
},
|
||||
))
|
||||
category = forms.ChoiceField(choices=category_choices,
|
||||
widget=forms.Select(
|
||||
attrs={
|
||||
'class': 'custom-select'
|
||||
}
|
||||
))
|
||||
Reference in New Issue
Block a user