From 19ab4cae0a1cd55eb20ac3388464f1b6286e163d Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Wed, 26 Aug 2015 13:43:07 +0100 Subject: [PATCH] Only show search box when snippet is searchable --- .../wagtailsnippets/chooser/choose.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/wagtail/wagtailsnippets/templates/wagtailsnippets/chooser/choose.html b/wagtail/wagtailsnippets/templates/wagtailsnippets/chooser/choose.html index 18de910dc..b5b6ea84b 100644 --- a/wagtail/wagtailsnippets/templates/wagtailsnippets/chooser/choose.html +++ b/wagtail/wagtailsnippets/templates/wagtailsnippets/chooser/choose.html @@ -3,14 +3,16 @@ {% include "wagtailadmin/shared/header.html" with title=choose_str subtitle=snippet_type_name icon="snippet" %}
- + {% if is_searchable %} + + {% endif %}
{% include "wagtailsnippets/chooser/results.html" with choosing=1 %}