From 46330c2d1760c36c5f7e5d99d636b04edc9784b1 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 12 Jun 2011 14:42:29 -0400 Subject: [PATCH] Updated generic_list_subtemplate to only display multi item link when the object list is not empty --- .../templates/generic_list_subtemplate.html | 84 ++++++++++--------- 1 file changed, 44 insertions(+), 40 deletions(-) diff --git a/apps/common/templates/generic_list_subtemplate.html b/apps/common/templates/generic_list_subtemplate.html index 01626585ad..078dafb24f 100644 --- a/apps/common/templates/generic_list_subtemplate.html +++ b/apps/common/templates/generic_list_subtemplate.html @@ -27,26 +27,28 @@
- {% if multi_select or multi_select_as_buttons %} - {% if multi_select_as_buttons %} - {% get_multi_item_links as multi_item_links %} - - {% else %} - {% with "true" as form_hide_required_text %} - {% get_multi_item_links_form %} - {% endwith %} - - {% endif %} + {% if object_list %} + {% if multi_select or multi_select_as_buttons %} + {% if multi_select_as_buttons %} + {% get_multi_item_links as multi_item_links %} + + {% else %} + {% with "true" as form_hide_required_text %} + {% get_multi_item_links_form %} + {% endwith %} + + {% endif %} + {% endif %} {% endif %} {% if scrollable_content %} @@ -135,26 +137,28 @@ {% endif %} - {% if multi_select or multi_select_as_buttons %} - {% if multi_select_as_buttons %} - {% get_multi_item_links as multi_item_links %} - - {% else %} - {% with "true" as form_hide_required_text %} - {% get_multi_item_links_form %} - {% endwith %} - - {% endif %} + {% if object_list %} + {% if multi_select or multi_select_as_buttons %} + {% if multi_select_as_buttons %} + {% get_multi_item_links as multi_item_links %} + + {% else %} + {% with "true" as form_hide_required_text %} + {% get_multi_item_links_form %} + {% endwith %} + + {% endif %} + {% endif %} {% endif %}
{% paginate %}