search form in list view
This commit is contained in:
@@ -27,7 +27,12 @@ class LoginForm(forms.Form):
|
||||
|
||||
# search 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
|
||||
class EmailForm(forms.Form):
|
||||
|
||||
@@ -85,9 +85,9 @@
|
||||
{% else %}
|
||||
<form id="searchform" action="/rowers/list-workouts/{{ startdate|date:"Y-m-d" }}/{{ enddate|date:"Y-m-d" }}"
|
||||
method="get" accept-charset="utf-8">
|
||||
{% endif %}
|
||||
<input class="searchfield" id="searchbox" name="q" type="text" placeholder="Search">
|
||||
<input type="submit">
|
||||
{% endif %}
|
||||
{{ searchform }}
|
||||
<input type="submit" value="GO">
|
||||
</input>
|
||||
</form>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user