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> <tr><% loop Header %><th>$CellString</th><% end_loop %></tr>
</thead> </thead>
<tbody> <tbody>
<% if ItemRows %>
<% loop ItemRows %> <% loop ItemRows %>
<tr><% loop ItemRow %><td>$CellString</td><% end_loop %></tr> <tr><% loop ItemRow %><td>$CellString</td><% end_loop %></tr>
<% end_loop %> <% end_loop %>
<% else %>
<tr>
<td colspan="$Header.Count"><p><% _t('GridField.NoItemsFound', 'No items found') %></p></td>
</tr>
<% end_if %>
</tbody> </tbody>
</table> </table>
<p> <p>