[%# =head1 edit 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 %] [% IF request.action == 'edit' %] [% INCLUDE navbar %] [% END %] [% IF object %]
Edit a [% classmetadata.moniker %]
Edit [% object.name %] [% FOR col = classmetadata.columns; NEXT IF col == "id" OR col == classmetadata.table _ "_id"; '"; IF errors.$col; ''; errors.$col;''; END; END %]
[% ELSE %]
Add a new [% classmetadata.moniker %] [% FOR col = classmetadata.columns %] [% NEXT IF col == "id" %] [% IF errors.$col %] [% errors.$col | html %] [% END %] [% END; %]
[% END %] [% INCLUDE footer %]