]> git.decadent.org.uk Git - maypole.git/blobdiff - templates/factory/macros
balance quotes to please silly emacsers.
[maypole.git] / templates / factory / macros
index 4a90e1771f4f1ae9e2c60cb20a2ee009dfaca165..367d74faaeaea8e69bfcab9163754694e03c01f1 100644 (file)
@@ -7,7 +7,7 @@ system.
 
 =head2 link
 
-This creates an <A HREF="... to a command in the Apache::MVC system by
+This creates an <A HREF="..."> to a command in the Apache::MVC system by
 catenating the base URL, table, command, and any arguments.
 
 #%]
@@ -81,9 +81,11 @@ This is a generic button, which performs an action on an object.
 
 #%]
 [% MACRO button(obj, action) BLOCK; %]
+[% IF obj.is_public(action) %]
 <form class="actionform" action="[% base %]/[% obj.table %]/[% action %]/[% obj.id.join('/') %]" method="post">
 <div class="field"><input class="actionbutton" type="submit" value="[% action %]" /></div></form>
 [% END %]
+[% END %]
 [%#
 
 =head2 view_related