mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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 {
|
.TableListField div.utility {
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
|
padding: 3px 0 6px 0;
|
||||||
}
|
}
|
||||||
.TableListField div.utility a {
|
.TableListField div.utility a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
6
templates/ComplexTableField.ss
Executable file → Normal file
6
templates/ComplexTableField.ss
Executable file → Normal file
@ -72,9 +72,9 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="utility">
|
<div class="utility">
|
||||||
<% if Can(export) %>
|
<% control Utility %>
|
||||||
<a href="$ExportLink" target="_blank"><% _t('CSVEXPORT', 'Export to CSV' ) %></a>
|
<span class="item"><a href="$Link" target="_blank">$Title</a></span>
|
||||||
<% end_if %>
|
<% end_control %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user