mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Add no results warning to GridField print view.
This commit is contained in:
parent
2e36e450ca
commit
dda6fa6600
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user