From dda6fa660040090bb0f05a14813e70560efa632c Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Tue, 5 Mar 2013 10:25:19 +1300 Subject: [PATCH] Add no results warning to GridField print view. --- templates/Includes/GridField_print.ss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/Includes/GridField_print.ss b/templates/Includes/GridField_print.ss index 80450a9cb..8595007fd 100644 --- a/templates/Includes/GridField_print.ss +++ b/templates/Includes/GridField_print.ss @@ -10,9 +10,15 @@ <% loop Header %>$CellString<% end_loop %> + <% if ItemRows %> <% loop ItemRows %> <% loop ItemRow %>$CellString<% end_loop %> <% end_loop %> + <% else %> + +

<% _t('GridField.NoItemsFound', 'No items found') %>

+ + <% end_if %>