Skip to content
This repository
Browse code

ENHANCEMENT: Made it possible to attach utility links to a ComplexTab…

…leField beyond just exporting (e.g. printing).
  • Loading branch information...
commit 590dbb5f3f583614cd3146dfae3ccae68d0c839e 1 parent d23aeb2
Andrew Short authored February 02, 2011
1  css/TableListField.css
@@ -159,6 +159,7 @@ table.CMSList tbody td.current td {
159 159
 
160 160
 .TableListField div.utility {
161 161
 	margin-top: 1em;
  162
+	padding: 3px 0 6px 0;
162 163
 }
163 164
 	.TableListField div.utility a {
164 165
 		text-decoration: none;
6  templates/ComplexTableField.ss 100755 → 100644
@@ -72,9 +72,9 @@
72 72
 		</tbody>
73 73
 	</table>
74 74
 	<div class="utility">
75  
-		<% if Can(export) %>
76  
-			<a href="$ExportLink" target="_blank"><% _t('CSVEXPORT', 'Export to CSV' ) %></a>
77  
-		<% end_if %>
  75
+		<% control Utility %>
  76
+			<span class="item"><a href="$Link" target="_blank">$Title</a></span>
  77
+		<% end_control %>
78 78
 	</div>
79 79
 	</div>
80 80
 </div>

0 notes on commit 590dbb5

Please sign in to comment.
Something went wrong with that request. Please try again.