[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] [PATCH maposmatic 4/4] Add placeholder text in maps sea
From: |
Maxime Petazzoni |
Subject: |
[Maposmatic-dev] [PATCH maposmatic 4/4] Add placeholder text in maps search field |
Date: |
Mon, 7 May 2012 19:13:28 -0700 |
Signed-off-by: Maxime Petazzoni <address@hidden>
---
www/maposmatic/forms.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/www/maposmatic/forms.py b/www/maposmatic/forms.py
index b89ad4f..0a0131d 100644
--- a/www/maposmatic/forms.py
+++ b/www/maposmatic/forms.py
@@ -37,7 +37,9 @@ class MapSearchForm(forms.Form):
The map search form, allowing search through the rendered maps.
"""
- query = forms.CharField(min_length=1, required=True)
+ query = forms.CharField(min_length=1, required=True,
+ widget=forms.TextInput(attrs={'placeholder':
+ _('Search by map name')}))
class MapRenderingJobForm(forms.ModelForm):
"""
--
1.7.10