X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=templates%2Ffactory%2Fedit;h=5feb34eb0d128153daff76b41158495ca0497162;hb=ce6a9545f5fd2fde3490b7172193d31a8ceece2f;hp=0de9f7924fd0d9b0e4dd7090bda2b43ad5cc711d;hpb=ca325e68ce3620b52a3c8c9ed437ed79c5d1a744;p=maypole.git diff --git a/templates/factory/edit b/templates/factory/edit index 0de9f79..5feb34e 100644 --- a/templates/factory/edit +++ b/templates/factory/edit @@ -5,26 +5,30 @@ 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 %] - +[% INCLUDE title %] +
Edit a [% classmetadata.moniker %]
[% 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"; + '"; + IF errors.$col; + ''; errors.$col;''; + END; END; - ''; -END %] + ''; + "
"; + + END %] + +[% INCLUDE footer %]