5 This is the interface to adding a new instance of an object. (or a new
6 row in the database, if you want to look at it that way) It displays a
7 form containing a list of HTML components for each of the columns in the
15 <form method="post" action="[% base %]/[% classmetadata.table %]/do_edit/">
17 <legend>Add a new [% classmetadata.moniker %]</legend>
18 [% FOR col = classmetadata.columns %]
19 [% NEXT IF col == "id" %]
20 <label><span class="field">[% classmetadata.colnames.$col %]</span>
22 SET elem = classmetadata.cgi.$col.clone;
23 IF request.action == 'do_edit';
24 IF elem.tag == "textarea";
25 elem = elem.push_content(request.param(col));
27 elem.attr("value", request.param(col));
33 <span class="error">[% errors.$col | html %]</span>
37 <input type="submit" name="create" value="create" />
38 <input type="hidden" name="__form_id" value="[% request.make_random_id %]" />