RT# 79636,42357 invoice_sections_with_taxes bugfix
[freeside.git] / torrus / templates / overview-subleaves.html
1 [% PROCESS 'html-incblocks.txt' %]
2 [% INCLUDE setdate %]
3 [% ovs=variables.OVS; clearVar('OVS'); global.bookmarkVars=['OVS',ovs];
4    thepath=path(token) %]
5 [% INCLUDE htmlstart title=thepath printpath=1 %]
6
7 <H1>[% p = 'overview-page-title-' _ ovs; nodeParam(token, p, 1) %]</H1>
8
9 [% INCLUDE variables %]
10
11 [% INCLUDE legend %]
12
13 [%
14   FOREACH child = sortTokens(children(token));
15     childpath = path(child);
16     p = 'overview-subleave-name-' _ ovs;
17     FOREACH childname = nodeParam(token, p,1).split('\s*,\s*');
18       ovwpath = childpath _ childname;
19       IF nodeExists(ovwpath);
20         ovwtoken = pathToken(ovwpath);
21
22         urltoken = ovwtoken;
23         p = 'overview-direct-link-' _ ovs;
24         IF nodeParam(token, p, 1) == 'yes';
25           urltoken = child;
26           p = 'overview-direct-link-view-' _ ovs;
27           urlview = nodeParam(token, p, 1);
28         END;
29
30         INCLUDE shortgraph
31           token=ovwtoken
32           urltoken=urltoken
33           urlview=urlview
34           nodename=nodeName(child)
35           comment=nodeParam(child,'comment',1);
36       END;
37     END;
38   END
39 %]
40
41 <DIV CLASS="BottomShortcuts">
42 [% INCLUDE shortcut url=url(token) text="Default view"
43                     title="Restore default subtree view" %]
44 </DIV>
45
46 [% INCLUDE bottomline %]
47 [% INCLUDE htmlend %]