summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authormark <mark>2011-08-05 07:25:43 +0000
committermark <mark>2011-08-05 07:25:43 +0000
commitf765ad6313abc1dc73bab4d3b617d2754cf85823 (patch)
treea9480e7dcff6f97aab6417feb985c7e9f5b9db64 /httemplate/elements
parentac62d1f855e6c6de100872c81956fbbf092fcb88 (diff)
message template localization, #13601
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/tablebreak-tabs.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/httemplate/elements/tablebreak-tabs.html b/httemplate/elements/tablebreak-tabs.html
new file mode 100644
index 000000000..91c28ce19
--- /dev/null
+++ b/httemplate/elements/tablebreak-tabs.html
@@ -0,0 +1,34 @@
+<%doc>
+<& /elements/tablebreak-tabs.html,
+ tabs => [ #required
+ 'Foo' => ';mode=foo',
+ 'Bar' => ';mode=bar',
+ 'Other' => '',
+ ],
+ selected => 'Foo', #required
+ url_base => $p.'edit/something.html', #optional
+ table_id => 'OneTrueTable', #optional
+ always_show_tabs => 0, #optional,
+ #controls whether this will show only one tab
+&>
+
+For use in edit/elements/edit.html 'fields' hashes.
+
+</%doc>
+% if (scalar(@$tabs) >= 2 or $opt{'always_show_tabs'}) {
+</TABLE><BR>
+<& /elements/menubar.html,
+ { newstyle => 1, %opt },
+ @$tabs &>
+<DIV CLASS="fstabcontainer">
+<TABLE <% $id %> BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
+% }
+<%init>
+
+my %opt = @_;
+my $tabs = delete $opt{'tabs'} || []; # must be an arrayref
+
+my $id = '';
+$id = 'ID="'. $opt{'table_id'}. '"' if $opt{'table_id'};
+
+</%init>