search form in list view
This commit is contained in:
@@ -27,7 +27,12 @@ class LoginForm(forms.Form):
|
|||||||
|
|
||||||
# search form
|
# search form
|
||||||
class SearchForm(forms.Form):
|
class SearchForm(forms.Form):
|
||||||
q = forms.CharField(max_length=255,required=False,initial='Search')
|
q = forms.CharField(max_length=255,required=False,
|
||||||
|
widget=forms.TextInput(
|
||||||
|
attrs={'placeholder': 'Search'}),
|
||||||
|
label='Search')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# simple form for Contact page. Sends email to info@rowsandall.com
|
# simple form for Contact page. Sends email to info@rowsandall.com
|
||||||
class EmailForm(forms.Form):
|
class EmailForm(forms.Form):
|
||||||
|
|||||||
@@ -86,8 +86,8 @@
|
|||||||
<form id="searchform" action="/rowers/list-workouts/{{ startdate|date:"Y-m-d" }}/{{ enddate|date:"Y-m-d" }}"
|
<form id="searchform" action="/rowers/list-workouts/{{ startdate|date:"Y-m-d" }}/{{ enddate|date:"Y-m-d" }}"
|
||||||
method="get" accept-charset="utf-8">
|
method="get" accept-charset="utf-8">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<input class="searchfield" id="searchbox" name="q" type="text" placeholder="Search">
|
{{ searchform }}
|
||||||
<input type="submit">
|
<input type="submit" value="GO">
|
||||||
</input>
|
</input>
|
||||||
</form>
|
</form>
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user