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.
14 <div id="title">Edit a [% classmetadata.moniker %]</div>
15 [% FOR item = objects; %]
16 <form action="[% base %]/[% item.table %]/do_edit/[% item.id %]" method="post">
18 <legend>Edit [% item.name %]</legend>
19 [% FOR col = classmetadata.columns;
21 '<label><span class="field">';
22 classmetadata.colnames.$col; ":</span>";
23 item.to_field(col).as_XML;
26 '<span class="error">'; errors.$col;'</span>';
29 '<input type="submit" name="edit" value="edit"/>';