From 8ed3b797060ac4f197db77a18c62e9a2f9385c33 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Fri, 14 Aug 2015 15:41:39 +0100 Subject: [PATCH] Use main listing template in chooser --- .../wagtailsnippets/chooser/list.html | 29 ------------------- .../wagtailsnippets/chooser/results.html | 4 ++- 2 files changed, 3 insertions(+), 30 deletions(-) delete mode 100644 wagtail/wagtailsnippets/templates/wagtailsnippets/chooser/list.html diff --git a/wagtail/wagtailsnippets/templates/wagtailsnippets/chooser/list.html b/wagtail/wagtailsnippets/templates/wagtailsnippets/chooser/list.html deleted file mode 100644 index 819cd762f8..0000000000 --- a/wagtail/wagtailsnippets/templates/wagtailsnippets/chooser/list.html +++ /dev/null @@ -1,29 +0,0 @@ -{% load i18n %} - -{% url "wagtailsnippets:choose" content_type.app_label content_type.model as linkurl %} - - - - - - - - - - - - {% for snippet in items %} - - - - {% endfor %} - -
{% trans "Title" %}
- {% if choosing %} -

{{ snippet }}

- {% else %} -

{{ snippet }}

- {% endif %} -
- -{% include "wagtailadmin/shared/pagination_nav.html" with items=items is_ajax=1 %} diff --git a/wagtail/wagtailsnippets/templates/wagtailsnippets/chooser/results.html b/wagtail/wagtailsnippets/templates/wagtailsnippets/chooser/results.html index e1b9387ce3..5b32ae7415 100644 --- a/wagtail/wagtailsnippets/templates/wagtailsnippets/chooser/results.html +++ b/wagtail/wagtailsnippets/templates/wagtailsnippets/chooser/results.html @@ -1,6 +1,8 @@ {% load i18n %} {% if items %} - {% include "wagtailsnippets/chooser/list.html" with choosing=1 %} + {% include "wagtailsnippets/snippets/list.html" with choosing=1 %} + + {% include "wagtailadmin/shared/pagination_nav.html" with items=items is_ajax=1 %} {% else %} {% url 'wagtailsnippets:add' content_type.app_label content_type.model as wagtailsnippets_create_snippet_url %}

{% blocktrans %}You haven't created any {{ snippet_type_name }} snippets. Why not create one now{% endblocktrans %}