]> git.decadent.org.uk Git - maypole.git/blobdiff - templates/factory/addnew
fixed css to annotate active from list, and navbar not to add silly things to url...
[maypole.git] / templates / factory / addnew
index 9345c78b0adbc8d1fdca7d1661089f3c137e6c23..18d63d46b7e40886cf294b13a2cdd78204764873 100644 (file)
@@ -10,17 +10,15 @@ table.
 =cut
 
 #%]
-<h3>Add a new [% classmetadata.moniker %]</h3>
-<form method="post" action="[% base %]/[% classmetadata.table %]/do_edit/">
-    <input type="hidden" name="action" value="create"/>
-    <table class="view">
+<form id="createform" method="post" action="[% base %]/[% classmetadata.table %]/do_edit/">
+    <fieldset>
+<legend>Add a new [% classmetadata.moniker %]</legend>
     [% FOR col = classmetadata.columns %]
         [% NEXT IF col == "id" %]
-        <tr>
-            <td>[% classmetadata.colnames.$col %]</td>
-            <td>[% classmetadata.cgi.$col.as_HTML; %]</td>
-        </tr>
+            <label><span class="field">[% classmetadata.colnames.$col %]</span>
+            [% classmetadata.cgi.$col.as_XML; %]
+           </label>
     [% END; %]
-    </table>
     <input type="submit" name="create" value="create"/>
+</fieldset>
 </form>