Commit 25b961d6 authored by Daniel W Bond's avatar Daniel W Bond

added search to the forms

parent 1e53098f
......@@ -4,6 +4,19 @@ from django.core.exceptions import ValidationError
from django.forms import ModelForm, Select
from trajectories.models import Trajectory
from haystack.forms import SearchForm
class StyledSeachForm( SearchForm ):
q = forms.CharField(
required = False,
label = 'Search',
widget = forms.TextInput(attrs={
'class' : 'form-control',
'placeholder' : 'Search',
'autofocus' : 'autofocus',
}),
)
class NewTrajectoryForm( ModelForm ):
# def __init__(self, *args, **kwargs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment