From: Aaron Trevena Date: Fri, 25 Nov 2005 14:25:59 +0000 (+0000) Subject: teejay's template updates X-Git-Tag: 2.11~83 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=maypole.git;a=commitdiff_plain;h=4a5cef989c825acf0eb66ba6e567fdd8d47c4da4 teejay's template updates git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@435 48953598-375a-da11-a14b-00016c27c3ee --- 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"; '