]> git.decadent.org.uk Git - maypole.git/blobdiff - templates/factory/macros
XHTML update
[maypole.git] / templates / factory / macros
index 2442dd5d32b11bfb8b3273a3189f049127e4b9e3..3d45a6fa65c36bae4d5a48db84e17722b41b38d2 100644 (file)
@@ -56,7 +56,7 @@ for some.
         NEXT IF col == "id";
         "<td>";
         IF col == "url";
-            "<A HREF="; item.url; "> "; item.url; "</A>";
+            "<a href="; item.url; "> "; item.url; "</a>";
         ELSIF col == item.stringify_column;
             maybe_link_view(item);
         ELSE;
@@ -78,8 +78,9 @@ This is a generic button, which performs an action on an object.
 #%]
 [% MACRO button(obj, action) BLOCK; %]
 <td>
-<form method=post action="[% base %]/[% obj.table %]/[% action %]/[% obj.id %]">
-    <input type=submit name=[% action %] value=[% action %] />
+<form method="post"
+    action="[% base %]/[% obj.table %]/[% action %]/[% obj.id %]">
+    <input type="submit" name="[% action %]" value="[% action %]"/>
 </form>
 </td>
 [% END %]