--- /dev/null
+[% MACRO display_line(item) BLOCK;
+ FOR col = classmetadata.columns;
+ NEXT IF col == "id";
+ "<td>";
+ "<A HREF='" _ base _ item.$col.moniker _ "/view/" _
+ item.$col.id _"'>" IF item.$col.moniker; # it's an object
+ item.$col;
+ "</A>" IF item.$col.moniker;
+ "</td>";
+ END;
+ button(item, "edit");
+ button(item, "delete");
+END %]
+[% MACRO button(obj, action) BLOCK; %]
+
+<TD>
+<FORM METHOD="post" ACTION="[%base%]/[%classmetadata.moniker%]/[%action%]/[%obj.id%]">
+ <INPUT TYPE="submit" NAME="[%action%]" VALUE="[%action%]">
+</FORM>
+</TD>
+[% END %]
+