JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
metaform: demo pulldown syntax
[wfpl.git] / metaform / main.html
index f15b49e..8cd9248 100644 (file)
@@ -11,7 +11,7 @@
   <form action="~metaform_name~" method="get">
     <p>The form name should not contain any capitals or symbols (besides underscore)</p>
 
-    <p>File name: <input type="text" name="file_name" value="~file_name attr~">.html</p>
+    <p>File name: <input type="text" name="file_name" value="~file_name attr~" autofocus>.html</p>
 
     <p>DB table: <input type="text" name="table_name" value="~table_name attr~"></p>
 
     <p><input type="checkbox" name="opt_pass~opt_pass checked~" value="Yes"> Password protect this form.</p>
 
        <p>Below, specify the fields you'd like in your form, one field per line. After each field name, put at least one space, then the field type. The following field types are available: <!--~types {~--><!--~types_sep {~-->, <!--~}~-->~type html~<!--~}~-->.</p>
-       <p>Example:<br><pre>
+
+       <p>You can start a labeled fieldset by putting a <code>{</code> at the end of a line with the caption. Then end the fieldset with a <code>}</code> on a line by itself</p>
+
+       <p>Example:<br><code><pre>
+email     textbox
+contact info (all required) {
 name      textbox
 phone     phone
+}
 comments  textarea
-agree     yesno</pre></p>
+color     pulldown Red,Green,Blue
+agree     yesno
+</pre></code></p>
+
     <p>Fields: 
     <textarea rows="10" cols="40" name="fields">~fields html~</textarea></p>