Skip to content

Commit

Permalink
[#1030] Correct the search inputs to have the correct placeholders fo…
Browse files Browse the repository at this point in the history
…r context
  • Loading branch information
johnmartin committed Oct 3, 2013
1 parent 8cc3dd1 commit 68852f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckan/templates/header.html
Expand Up @@ -103,7 +103,7 @@ <h1>
<form class="section site-search simple-input" action="{% url_for controller='package', action='search' %}" method="get">
<div class="field">
<label for="field-sitewide-search">{{ _('Search Datasets') }}</label>
<input id="field-sitewide-search" type="text" name="q" placeholder="{{ _('Search') }}" />
<input id="field-sitewide-search" type="text" name="q" placeholder="{{ _('Search datasets...') }}" />
<button class="btn-search" type="submit"><i class="icon-search"></i></button>
</div>
</form>
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/snippets/search_form.html
@@ -1,6 +1,6 @@
{% import 'macros/form.html' as form %}

{% set placeholder = placeholder if placeholder else _('Search...') %}
{% set placeholder = placeholder if placeholder else _('Search datasets...') %}
{% set sorting = sorting if sorting else [(_('Name Ascending'), 'name asc'), (_('Name Descending'), 'name desc')] %}
{% set search_class = search_class if search_class else 'search-giant' %}
{% set no_bottom_border = no_bottom_border if no_bottom_border else false %}
Expand Down

0 comments on commit 68852f2

Please sign in to comment.