X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=templates%2Ffactory%2Fedit;h=c5c511b5d9d52bfbbbe6c1e6be3eaec92f45c0e5;hb=6d0a3dde542a44c59284d60addc72503462fdbb4;hp=69ca0d2659d760d2c2def4dd694bdaaf870d5ca7;hpb=b62651a1bceea215765d2e7e416273a1136b5f38;p=maypole.git diff --git a/templates/factory/edit b/templates/factory/edit index 69ca0d2..c5c511b 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 %]