added ability to search for corps, chars and alliances.

This commit is contained in:
2018-04-25 15:57:11 +01:00
parent 3839235937
commit 9f5fe51c35
8 changed files with 200 additions and 5 deletions

24
eve_auth/forms.py Normal file
View 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'
}
))