X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fwebrt%2FSelfService%2FElements%2FTabs;fp=rt%2Fwebrt%2FSelfService%2FElements%2FTabs;h=d689d8a729aad5731013309e3c33bcd1a8a1eeeb;hb=3ef62a0570055da710328937e7f65dbb2c027c62;hp=0000000000000000000000000000000000000000;hpb=030438c9cb1c12ccb79130979ef0922097b4311a;p=freeside.git diff --git a/rt/webrt/SelfService/Elements/Tabs b/rt/webrt/SelfService/Elements/Tabs new file mode 100644 index 000000000..d689d8a72 --- /dev/null +++ b/rt/webrt/SelfService/Elements/Tabs @@ -0,0 +1,49 @@ + + +% foreach $tab (sort keys %{$tabs}) { + +%} + +% if ($actions) { + + +%} + +
+[{'path'}%>"><% $tabs->{"$tab"}->{'title'}%>] + + +% foreach my $action (sort keys %{$actions}) { + +% } + +
+ +% if ($actions->{"$action"}->{'html'}) { +<%$actions->{"$action"}->{'html'} |n%> +% } else { +<% $actions->{$action}->{'title'}%> +% } + +
+
+
+<%INIT> +my ($tab); +my $tabs = { A => { title => 'Open requests', + path => 'SelfService/', + }, + B => { title => 'Closed requests', + path => 'SelfService/Closed.html', + }, + C => { title => 'New request', + path => 'SelfService/Create.html' + } + }; +my $actions = { + B => { html => $m->scomp('GotoTicket') + } + }; + + +