# HG changeset patch # User Brian Neal # Date 1381088922 18000 # Node ID 99d7bf8cd712d0d5371f50eed358575513e1f2f5 # Parent 60fb45446e3b8023b3273c08d6fe81739e97ad51 Changed the search input type to search for HTML5. diff -r 60fb45446e3b -r 99d7bf8cd712 custom_search/forms.py --- a/custom_search/forms.py Sun Oct 06 14:14:58 2013 -0500 +++ b/custom_search/forms.py Sun Oct 06 14:48:42 2013 -0500 @@ -26,7 +26,10 @@ """ q = forms.CharField(required=False, label='', - widget=forms.TextInput(attrs={'class': 'text', 'size': 48})) + widget=forms.TextInput(attrs={'type': 'search', + 'class': 'search', + 'size': 48, + })) def __init__(self, *args, **kwargs): super(CustomModelSearchForm, self).__init__(*args, **kwargs) diff -r 60fb45446e3b -r 99d7bf8cd712 static/css/base.css --- a/static/css/base.css Sun Oct 06 14:14:58 2013 -0500 +++ b/static/css/base.css Sun Oct 06 14:48:42 2013 -0500 @@ -450,3 +450,8 @@ html.busy, html.busy * { cursor: wait !important; } + +input.search { + margin: 0.5em 0; + padding: 5px; +}