import torrus 1.0.9
[freeside.git] / torrus / templates / tset-list.html
diff --git a/torrus/templates/tset-list.html b/torrus/templates/tset-list.html
new file mode 100644 (file)
index 0000000..a378578
--- /dev/null
@@ -0,0 +1,38 @@
+[% PROCESS 'html-incblocks.txt' %]
+[% INCLUDE htmlstart
+     title="Non-empty tokensets"
+     contentClass="SingleColumnContent" %]
+
+<H1>Non-empty tokensets</H1>
+
+[% INCLUDE treename %]
+
+<DIV CLASS="Listing">
+[%   counter = 0;
+     evenRow = 0;
+
+     FOREACH tset = tsetList();
+       sz = tsetMembers(tset).size;
+
+       IF sz.length > 0 AND sz > 0;
+       
+         counter = counter + 1;
+
+         IF counter % 2 == 0;
+           evenRow = 1;
+         ELSE;
+           evenRow = 0;
+         END;
+%]
+  <DIV CLASS="[% evenRow ? 'ListRowEven' : 'ListRow' %]">
+    <SPAN CLASS="TokensetDescr">
+      <A HREF="[%url(tset)%]">[% xmlnorm(param(tset, 'comment')) %]</A>
+      ([% sz %])
+    </SPAN>
+  </DIV>
+       [% END %]
+     [% END %]
+</DIV>
+
+[% INCLUDE tsetbottomline %]
+[% INCLUDE htmlend %]