mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT: Made it possible to attach utility links to a ComplexTableField beyond just exporting (e.g. printing).
This commit is contained in:
parent
d23aeb2b51
commit
590dbb5f3f
@ -159,6 +159,7 @@ table.CMSList tbody td.current td {
|
||||
|
||||
.TableListField div.utility {
|
||||
margin-top: 1em;
|
||||
padding: 3px 0 6px 0;
|
||||
}
|
||||
.TableListField div.utility a {
|
||||
text-decoration: none;
|
||||
|
6
templates/ComplexTableField.ss
Executable file → Normal file
6
templates/ComplexTableField.ss
Executable file → Normal file
@ -72,9 +72,9 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="utility">
|
||||
<% if Can(export) %>
|
||||
<a href="$ExportLink" target="_blank"><% _t('CSVEXPORT', 'Export to CSV' ) %></a>
|
||||
<% end_if %>
|
||||
<% control Utility %>
|
||||
<span class="item"><a href="$Link" target="_blank">$Title</a></span>
|
||||
<% end_control %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user