]> git.decadent.org.uk Git - maypole.git/blobdiff - templates/factory/addnew
Here are the templates!
[maypole.git] / templates / factory / addnew
diff --git a/templates/factory/addnew b/templates/factory/addnew
new file mode 100644 (file)
index 0000000..daacf9c
--- /dev/null
@@ -0,0 +1,13 @@
+<h3>Add a new [%classmetadata.moniker%]</h3>
+<FORM METHOD="post" ACTION="[%base%]/[%classmetadata.moniker%]/do_edit/">
+    <INPUT TYPE="hidden" NAME="action" VALUE="create">
+    <INPUT TYPE="hidden" NAME="class" VALUE="[%classmetadata.name%]">
+     [% FOR col = classmetadata.columns;
+        NEXT IF col == "id";
+        "<b>";classmetadata.colnames.$col;"</b> : "; 
+    classmetadata.cgi.$col.as_HTML;
+        %]
+    <BR>
+    [% END; %]
+    <INPUT TYPE="submit" NAME="create" VALUE="create">
+</FORM>