X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=templates%2Ffactory%2Fedit;h=6bdad79347cef088c484d66ec30a546387772fb9;hb=12d8a77a713d5ed4f08414e5f34e96d45f60e2d3;hp=5feb34eb0d128153daff76b41158495ca0497162;hpb=a070bde70686bcf957b96153408a32dbaa04164a;p=maypole.git diff --git a/templates/factory/edit b/templates/factory/edit index 5feb34e..6bdad79 100644 --- a/templates/factory/edit +++ b/templates/factory/edit @@ -3,7 +3,7 @@ =head1 edit This is the edit page. It edits the passed-in object, by displaying a -form similar to L but with the current values filled in. +form similar to L but with the current values filled in. =cut @@ -11,6 +11,7 @@ form similar to L but with the current values filled in. [% PROCESS macros %] [% INCLUDE header %] [% INCLUDE title %] +[% IF objects.size %]
Edit a [% classmetadata.moniker %]
[% FOR item = objects; %]
@@ -25,10 +26,13 @@ form similar to L but with the current values filled in. IF errors.$col; ''; errors.$col;''; END; - END; - ''; - ""; - END %] - + + + + + [% END %] +[% ELSE %] +[% INCLUDE addnew %] +[% END %] [% INCLUDE footer %]