1 [% USE element_maker = Class("HTML::Element") %]
3 <form method="post" action="[% base %]/[% classmetadata.moniker %]/do_edit/">
5 <legend>Add a new [%classmetadata.moniker%]</legend>
6 <input type="hidden" name="action" value="create"/>
7 <input type="hidden" name="class" value="[% classmetadata.name %]"/>
8 [% FOR col = classmetadata.columns;
10 SET element = classmetadata.cgi.$col;
13 <span class="field">[% classmetadata.colnames.$col; %]</span>
14 [% element.as_XML; %]</label>
18 <input type="submit" name="create" value="create"/>