allow table id to be specified for tablebreak elements (so edit/elements/edit.html...
authorivan <ivan>
Sun, 13 Apr 2008 02:58:00 +0000 (02:58 +0000)
committerivan <ivan>
Sun, 13 Apr 2008 02:58:00 +0000 (02:58 +0000)
httemplate/elements/tablebreak-tr-title.html

index 35dc05d..ee28312 100644 (file)
@@ -1,5 +1,14 @@
 </TABLE>
 
-<TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
+<TABLE <% $id %> BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
 
 <% include('tr-title.html', @_ ) %>
+
+<%init>
+
+my %opt = @_;
+
+my $id = '';
+$id = 'ID="'. $opt{'table_id'}. '"' if $opt{'table_id'};
+
+</%init>