]> git.decadent.org.uk Git - maypole.git/blobdiff - templates/factory/edit
removed Maypole::Model->description,
[maypole.git] / templates / factory / edit
index 5feb34eb0d128153daff76b41158495ca0497162..d114897f9c98552b9ecbff22a94fa0fce616926b 100644 (file)
@@ -3,7 +3,7 @@
 =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.
+form similar to L<addnew> but with the current values filled in.
 
 =cut
 
@@ -11,6 +11,7 @@ form similar to L<add_new> but with the current values filled in.
 [% PROCESS macros %]
 [% INCLUDE header %]
 [% INCLUDE title %]
+[% IF objects.length %]
 <div id="title">Edit a [% classmetadata.moniker %]</div>
 [% FOR item = objects; %]
 <form action="[% base %]/[% item.table %]/do_edit/[% item.id %]" method="post">
@@ -30,5 +31,7 @@ form similar to L<add_new> but with the current values filled in.
     "</fieldset></form>";
     
     END %]
-
+[% ELSE %]
+[% INCLUDE addnew %]
+[% END %]
 [% INCLUDE footer %]