]> git.decadent.org.uk Git - maypole.git/blobdiff - templates/factory/edit
Footer stuff from Markus.
[maypole.git] / templates / factory / edit
index 11a25393c11a6644951fb483e7cbf162c93d7100..69ca0d2659d760d2c2def4dd694bdaaf870d5ca7 100644 (file)
@@ -1,10 +1,19 @@
-[% PROCESS list_macros %]
+[%#
+
+=head1 edit
+
+This is the edit page. It edits the passed-in object, by displaying a
+form similar to L<add_new> but with the current values filled in.
+
+#%]
+
+[% PROCESS macros %]
 [% INCLUDE header %]
 
 [% FOR item = objects; %]
 <h2> Edit [% item.name %]</h2>
 
-<FORM ACTION="[% base %]/[% classmetadata.moniker %]/do_edit/[% item.id %]" METHOD="post">
+<FORM ACTION="[% base %]/[% item.table %]/do_edit/[% item.id %]" METHOD="post">
 [%
      FOR col = classmetadata.columns;
         NEXT IF col == "id";
@@ -19,3 +28,4 @@
     END;
      '<INPUT TYPE="submit" NAME="edit" VALUE="edit">';
 END %]
+[% INCLUDE footer %]