X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2Ftemplates%2Ffactory%2Fedit;h=77dfa3a492fcaee3201ad112c9d792de4420917b;hb=4a5cef989c825acf0eb66ba6e567fdd8d47c4da4;hp=6bdad79347cef088c484d66ec30a546387772fb9;hpb=99f5d5a04c67379b66b1a1cea4f048d3003d5581;p=maypole.git diff --git a/lib/Maypole/templates/factory/edit b/lib/Maypole/templates/factory/edit index 6bdad79..77dfa3a 100644 --- a/lib/Maypole/templates/factory/edit +++ b/lib/Maypole/templates/factory/edit @@ -11,6 +11,11 @@ form similar to L but with the current values filled in. [% PROCESS macros %] [% INCLUDE header %] [% INCLUDE title %] + +[% IF request.action == 'edit' %] +[% INCLUDE navbar %] +[% END %] + [% IF objects.size %]
Edit a [% classmetadata.moniker %]
[% FOR item = objects; %] @@ -18,7 +23,7 @@ form similar to L but with the current values filled in.
Edit [% item.name %] [% FOR col = classmetadata.columns; - NEXT IF col == "id"; + NEXT IF col == "id" OR col == classmetadata.table _ "_id"; '