]> git.decadent.org.uk Git - maypole.git/blob - templates/factory/view
Here are the templates!
[maypole.git] / templates / factory / view
1 [% MACRO button(obj, action) BLOCK; %]
2
3 <TD>
4 <FORM METHOD="post" ACTION="[%base%]/[%classmetadata.moniker%]/[%action%]/[%obj.id%]">
5     <INPUT TYPE="submit" NAME="[%action%]" VALUE="[%action%]">
6 </FORM>
7 </TD>
8 [% END %]
9
10 [% INCLUDE header %]
11
12 [% FOR item = objects %]
13 <h2> [% item.name %]</h2>
14
15 [% FOR col = classmetadata.columns.list;
16     NEXT IF col == "id";
17     "<P>";
18     classmetadata.colnames.$col; ":";
19     " "; item.$col;"</p>";
20      END;
21     button(item, "edit");
22     button(item, "delete");
23     "</tr>";
24 END;
25 %]
26