Skip to content

Commit

Permalink
[#1301] Adds template blocks to the package search and search form
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin authored and wardi committed Apr 24, 2014
1 parent 417b56b commit 1cb6636
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckan/templates/package/search.html
Expand Up @@ -47,6 +47,7 @@
{% block package_search_results_api %}
<section class="module">
<div class="module-content">
{% block package_search_results_api_inner %}
<small>
{% set api_link = h.link_to(_('API'), h.url_for(controller='api', action='get_api', ver=3)) %}
{% set api_doc_link = h.link_to(_('API Docs'), 'http://docs.ckan.org/en/{0}/api.html'.format(g.ckan_doc_version)) %}
Expand All @@ -61,6 +62,7 @@
{% endtrans %}
{%- endif %}
</small>
{% endblock %}
</div>
</section>
{% endblock %}
Expand Down
4 changes: 4 additions & 0 deletions ckan/templates/snippets/search_form.html
Expand Up @@ -9,10 +9,12 @@
{% block search_input %}
<div class="search-input control-group {{ search_class }}">
<input type="text" class="search" name="q" value="{{ query }}" autocomplete="off" placeholder="{{ placeholder }}">
{% block search_input_button %}
<button type="submit" value="search">
<i class="icon-search"></i>
<span>{{ _('Submit') }}</span>
</button>
{% endblock %}
</div>
{% endblock %}

Expand All @@ -33,7 +35,9 @@
{% endif %}
{% endfor %}
</select>
{% block search_sortby_button %}
<button class="btn js-hide" type="submit">{{ _('Go') }}</button>
{% endblock %}
</div>
{% endif %}
{% endblock %}
Expand Down

0 comments on commit 1cb6636

Please sign in to comment.