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