X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=templates%2Ffactory%2Fedit;fp=templates%2Ffactory%2Fedit;h=f1e0fbfeefe77f0f39b67a0fb1adc41402b122e5;hb=77fb5cc34c9a87077dc65548f0d890b366e78c61;hp=69ca0d2659d760d2c2def4dd694bdaaf870d5ca7;hpb=435d1e9d0c97ce1e6af8a5396c8e159cf0cf2e8b;p=maypole.git diff --git a/templates/factory/edit b/templates/factory/edit index 69ca0d2..f1e0fbf 100644 --- a/templates/factory/edit +++ b/templates/factory/edit @@ -5,27 +5,24 @@ This is the edit page. It edits the passed-in object, by displaying a form similar to L but with the current values filled in. -#%] +=cut +#%] [% PROCESS macros %] [% INCLUDE header %] - [% FOR item = objects; %] -

Edit [% item.name %]

- -
-[% - FOR col = classmetadata.columns; - NEXT IF col == "id"; - "

"; - ""; classmetadata.colnames.$col; ""; - ": "; - item.to_field(col).as_HTML; - "

"; - IF errors.$col; - ""; errors.$col; ""; - END; +

Edit [% item.name %]

+ +[% FOR col = classmetadata.columns; + NEXT IF col == "id"; + "

"; + ""; classmetadata.colnames.$col; ""; + ": "; + item.to_field(col).as_HTML; + "

"; + IF errors.$col; + errors.$col; END; - ''; + ''; END %] [% INCLUDE footer %]