[%
MACRO maybe_link_view(object) BLOCK;
- IF object.moniker; # It's an object, i.e. a has-a
- link(object.moniker, "view", object.id, object);
+ IF object.table; # It's an object, i.e. a has-a
+ link(object.table, "view", object.id, object);
ELSE;
object;
END;
#%]
[% MACRO button(obj, action) BLOCK; %]
<TD>
-<FORM METHOD="post" ACTION="[%base%]/[%obj.moniker%]/[%action%]/[%obj.id%]">
+<FORM METHOD="post" ACTION="[%base%]/[%obj.table%]/[%action%]/[%obj.id%]">
<INPUT TYPE="submit" NAME="[%action%]" VALUE="[%action%]">
</FORM>
</TD>