Add no results warning to GridField print view.

This commit is contained in:
Will Rossiter 2013-03-05 10:25:19 +13:00
parent 2e36e450ca
commit dda6fa6600
1 changed files with 6 additions and 0 deletions

View File

@ -10,9 +10,15 @@
<tr><% loop Header %><th>$CellString</th><% end_loop %></tr>
</thead>
<tbody>
<% if ItemRows %>
<% loop ItemRows %>
<tr><% loop ItemRow %><td>$CellString</td><% end_loop %></tr>
<% end_loop %>
<% else %>
<tr>
<td colspan="$Header.Count"><p><% _t('GridField.NoItemsFound', 'No items found') %></p></td>
</tr>
<% end_if %>
</tbody>
</table>
<p>