]> git.decadent.org.uk Git - maypole.git/commitdiff
Forgot this one.
authorSimon Cozens <simon@simon-cozens.org>
Fri, 2 Apr 2004 11:56:19 +0000 (11:56 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Fri, 2 Apr 2004 11:56:19 +0000 (11:56 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@109 48953598-375a-da11-a14b-00016c27c3ee

templates/factory/macros

index e142916d6dd304aa7af9c3d4e42194375f16c798..0aeea7623b8b9f16c60a1c9c1b691f6db241fda6 100644 (file)
@@ -33,8 +33,8 @@ command for that object. Otherwise, it just displays the data.
 [%
 
 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;
@@ -79,7 +79,7 @@ This is a generic button, which performs an action on an object.
 #%]
 [% 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>