ENHANCEMENT: Made it possible to attach utility links to a ComplexTableField beyond just exporting (e.g. printing).

This commit is contained in:
ajshort 2011-02-02 17:43:59 +11:00
parent d23aeb2b51
commit 590dbb5f3f
2 changed files with 4 additions and 3 deletions

View File

@ -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
View 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>