X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=templates%2Ffactory%2Fedit;h=6bdad79347cef088c484d66ec30a546387772fb9;hb=12d8a77a713d5ed4f08414e5f34e96d45f60e2d3;hp=714cb8716c1edcde2100261a48cc7585cdc04097;hpb=4c0d8f0266ab4acd371955c3bf3cdc9c080ea1c9;p=maypole.git diff --git a/templates/factory/edit b/templates/factory/edit index 714cb87..6bdad79 100644 --- a/templates/factory/edit +++ b/templates/factory/edit @@ -3,13 +3,16 @@ =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 #%] [% PROCESS macros %] [% INCLUDE header %] +[% INCLUDE title %] +[% IF objects.size %] +
Edit a [% classmetadata.moniker %]
[% FOR item = objects; %]
@@ -23,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 %]