2 <& /elements/tablebreak-tabs.html,
8 selected => 'Foo', #required
9 url_base => $p.'edit/something.html', #optional
10 table_id => 'OneTrueTable', #optional
11 always_show_tabs => 0, #optional,
12 #controls whether this will show only one tab
15 For use in edit/elements/edit.html 'fields' hashes.
18 % if (scalar(@$tabs) >= 2 or $opt{'always_show_tabs'}) {
20 <& /elements/menubar.html,
21 { newstyle => 1, %opt },
23 <DIV CLASS="fstabcontainer">
24 <TABLE <% $id %> BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
29 my $tabs = delete $opt{'tabs'} || []; # must be an arrayref
32 $id = 'ID="'. $opt{'table_id'}. '"' if $opt{'table_id'};