import torrus 1.0.9
[freeside.git] / torrus / templates / default-chooser.html
diff --git a/torrus/templates/default-chooser.html b/torrus/templates/default-chooser.html
new file mode 100644 (file)
index 0000000..f49b789
--- /dev/null
@@ -0,0 +1,37 @@
+[% PROCESS 'html-incblocks.txt' %]
+[% INCLUDE htmlstart
+     title="Torrus Top: " _ companyName
+     contentClass="SingleColumnContent"
+     noTopMenu=1 %]
+
+<P>Choose the datasource tree</P>
+
+<DIV CLASS="Listing">
+[%   counter = 0;
+     evenRow = 0;
+
+     FOREACH tree = treeNames();
+
+     IF not userAuth or mayDisplayTree(tree);
+         counter = counter + 1;
+
+         IF counter % 2 == 0;
+           evenRow = 1;
+         ELSE;
+           evenRow = 0;
+         END;
+%]
+
+  <DIV CLASS="[% evenRow ? 'ListRowEven' : 'ListRow' %]">
+    <SPAN CLASS="NodeName"><A HREF="[%url(tree)%]">[% tree %]</A></SPAN>
+    <SPAN CLASS="NodeDescr">[% xmlnorm(treeDescr(tree)) %]</SPAN>
+  </DIV>
+  [% END %]
+[% END %]
+</DIV>
+
+</DIV><!-- Content -->[% global.contentFinished = 1 %]
+<DIV CLASS="BottomMenu">
+[% INCLUDE globalsearchdialog %]
+</DIV>
+[% INCLUDE htmlend %]