5 This is the edit page. It edits the passed-in object, by displaying a
6 form similar to L<add_new> but with the current values filled in.
13 [% FOR item = objects; %]
14 <form action="[% base %]/[% item.table %]/do_edit/[% item.id %]" method="post">
16 <legend>Edit [% item.name %]</legend>
17 [% FOR col = classmetadata.columns;
19 '<label><span class="field">';
20 classmetadata.colnames.$col; ":</span>";
21 item.to_field(col).as_XML;
24 '<span class="error">'; errors.$col;'</span>';
27 '<input type="submit" name="edit" value="edit"/>';