X-Git-Url: https://git.decadent.org.uk/gitweb/?p=maypole.git;a=blobdiff_plain;f=lib%2FMaypole%2Ftemplates%2Ffactory%2Fedit;h=2016bb1215f2cce7b0776c1bae4fce8344de4d33;hp=14f77be3c172e46eaa3233ee31339bf6d6cd230e;hb=c21945575be63a9cf0b84d74b7b223ca2b02f8a5;hpb=29550a30ca082a8f1f1d0cb1b4a92eb39bc3dd84 diff --git a/lib/Maypole/templates/factory/edit b/lib/Maypole/templates/factory/edit index 14f77be..2016bb1 100644 --- a/lib/Maypole/templates/factory/edit +++ b/lib/Maypole/templates/factory/edit @@ -16,17 +16,16 @@ form similar to L but with the current values filled in. [% INCLUDE navbar %] [% END %] -[% IF objects.size %] +[% IF object %]
Edit a [% classmetadata.moniker %]
-[% FOR item = objects; %]
-Edit [% item.name %] -[% FOR col = classmetadata.columns; +Edit [% object.name %] + [% FOR col = classmetadata.columns; NEXT IF col == "id" OR col == classmetadata.table _ "_id"; '"; IF errors.$col; ''; errors.$col;''; @@ -36,7 +35,6 @@ form similar to L but with the current values filled in.
- [% END %] [% ELSE %]