X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=templates%2Ffactory%2Fedit;h=d114897f9c98552b9ecbff22a94fa0fce616926b;hb=d2c852208417c014caec0436a677fcadccc197d8;hp=5feb34eb0d128153daff76b41158495ca0497162;hpb=05b8c530848b1b7bada1e39ceb8325eb688c35d0;p=maypole.git diff --git a/templates/factory/edit b/templates/factory/edit index 5feb34e..d114897 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.length %]
Edit a [% classmetadata.moniker %]
[% FOR item = objects; %]
@@ -30,5 +31,7 @@ form similar to L but with the current values filled in. ""; END %] - +[% ELSE %] +[% INCLUDE addnew %] +[% END %] [% INCLUDE footer %]