From: Marcus Ramberg Date: Tue, 19 Oct 2004 20:05:51 +0000 (+0000) Subject: list_columns instead of display_columns X-Git-Tag: 2.10~122 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=fdb1043b4260053234d48abc51d3838a2f74d957;p=maypole.git list_columns instead of display_columns git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@240 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/templates/factory/list b/templates/factory/list index beade40..fab90b8 100644 --- a/templates/factory/list +++ b/templates/factory/list @@ -5,7 +5,7 @@
- [% FOR col = classmetadata.columns.list; + [% FOR col = classmetadata.list_columns.list; NEXT IF col == "id"; ""; END; - '";
"; SET additional = "?order=" _ col; diff --git a/templates/factory/macros b/templates/factory/macros index 491a0bc..7aead21 100644 --- a/templates/factory/macros +++ b/templates/factory/macros @@ -54,7 +54,7 @@ for some. #%] [% MACRO display_line(item) BLOCK; - FOR col = classmetadata.columns; + FOR col = classmetadata.list_columns; NEXT IF col == "id"; ""; IF col == "url" AND item.url; @@ -66,7 +66,7 @@ for some. END; "'; + ''; button(item, "edit"); button(item, "delete"); "