X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=inline;f=templates%2Ffactory%2Fedit;h=c5c511b5d9d52bfbbbe6c1e6be3eaec92f45c0e5;hb=6d0a3dde542a44c59284d60addc72503462fdbb4;hp=90e87600dddd74513b651e1bcd8990a343f7b56a;hpb=722950186d52d36e3a4e4df93f026183c7b5a602;p=maypole.git diff --git a/templates/factory/edit b/templates/factory/edit index 90e8760..c5c511b 100644 --- a/templates/factory/edit +++ b/templates/factory/edit @@ -5,26 +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 %]