From 4a5cef989c825acf0eb66ba6e567fdd8d47c4da4 Mon Sep 17 00:00:00 2001 From: Aaron Trevena Date: Fri, 25 Nov 2005 14:25:59 +0000 Subject: [PATCH] teejay's template updates git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@435 48953598-375a-da11-a14b-00016c27c3ee --- lib/Maypole/templates/factory/edit | 7 ++++++- lib/Maypole/templates/factory/list | 2 +- lib/Maypole/templates/factory/macros | 6 +++--- lib/Maypole/templates/factory/search_form | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) 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"; '