]> git.decadent.org.uk Git - maypole.git/blobdiff - templates/factory/addnew
Fix to check that a has_a points to another Model object.
[maypole.git] / templates / factory / addnew
index 950d89de23dcddf6773585ded94d935a71527e66..a6027ce2de4ddbd71731f0886526cfa6bd1ac7ca 100644 (file)
@@ -10,10 +10,11 @@ table.
 =cut
 
 #%]
-<form id="createform" method="post" action="[% base %]/[% classmetadata.table %]/do_edit/">
+
+<div id="addnew">
+<form method="post" action="[% base %]/[% classmetadata.table %]/do_edit/">
     <fieldset>
 <legend>Add a new [% classmetadata.moniker %]</legend>
-    <input type="hidden" name="action" value="create"/>
     [% FOR col = classmetadata.columns %]
         [% NEXT IF col == "id" %]
             <label><span class="field">[% classmetadata.colnames.$col %]</span>
@@ -23,3 +24,4 @@ table.
     <input type="submit" name="create" value="create"/>
 </fieldset>
 </form>
+</div>