X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=templates%2Ffactory%2Fedit;h=5feb34eb0d128153daff76b41158495ca0497162;hb=72ebd12372713c17bb79d6510f3da7c7b4561338;hp=f1e0fbfeefe77f0f39b67a0fb1adc41402b122e5;hpb=77fb5cc34c9a87077dc65548f0d890b366e78c61;p=maypole.git diff --git a/templates/factory/edit b/templates/factory/edit index f1e0fbf..5feb34e 100644 --- a/templates/factory/edit +++ b/templates/factory/edit @@ -10,19 +10,25 @@ form similar to L but with the current values filled in. #%] [% PROCESS macros %] [% INCLUDE header %] +[% INCLUDE title %] +
Edit a [% classmetadata.moniker %]
[% FOR item = objects; %] -

Edit [% item.name %]

-
+ +
+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; + ''; errors.$col;''; END; - ''; -END %] + END; + ''; + "
"; + + END %] + [% INCLUDE footer %]