JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
metaform: use new syntax to show a template section
[wfpl.git] / metaform / main.html
index 650269d..8b7ab2c 100644 (file)
@@ -1,6 +1,6 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<!DOCTYPE html>
 
-<html xmlns="http://www.w3.org/1999/xhtml">
+<html>
 <head>
   <title>Meta Form</title>
 </head>
   <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>DB table: <input type="text" name="table_name" value="~table_name attr~"></p>
 
-    <p>Printable singular: <input type="text" name="singular" value="~singular.attr~" /></p>
+    <p>Printable singular: <input type="text" name="singular" value="~singular attr~"></p>
 
-    <p>Printable plural: <input type="text" name="plural" value="~plural.attr~" /></p>
+    <p>Printable plural: <input type="text" name="plural" value="~plural attr~"></p>
 
 
        <h3>Features</h3>
 
-    <p><input type="checkbox" name="opt_email~opt_email.checked~" value="Yes" /> Send form results vie e-mail.</p>
+    <p><input type="checkbox" name="opt_email~opt_email checked~" value="Yes"> Send form results vie e-mail.</p>
 
-    <p><input type="checkbox" name="opt_db~opt_db.checked~" value="Yes" /> Save form results to a database.</p>
+    <p><input type="checkbox" name="opt_db~opt_db checked~" value="Yes"> Save form results to a database.</p>
 
-    <p><input type="checkbox" name="opt_listing~opt_listing.checked~" value="Yes" /> Provide a "Listing" page.</p>
+    <p><input type="checkbox" name="opt_listing~opt_listing checked~" value="Yes"> Provide a "Listing" page.</p>
 
-    <p><input type="checkbox" name="opt_display~opt_display.checked~" value="Yes" /> Provide a "Display" page.</p>
+    <p><input type="checkbox" name="opt_display~opt_display checked~" value="Yes"> Provide a "Display" page.</p>
 
-    <p><input type="checkbox" name="opt_http_pass~opt_http_pass.checked~" value="Yes" /> Password protect this form (with HTTP authentication).</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 start~--><!--~types_sep start~-->, <!--~end~-->~type.html~<!--~end~-->.</p>
-       <p>Example:<br /><pre>
+       <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>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>
+agree     yesno
+</pre></code></p>
+
     <p>Fields: 
-    <textarea rows="10" cols="40" name="fields">~fields.html~</textarea></p>
+    <textarea rows="10" cols="40" name="fields">~fields html~</textarea></p>
 
-    <p><input type="submit" name="preview" value="Continue" /></p>
+    <p><input type="submit" name="preview" value="Continue"></p>
   </form>
 </body>
 </html>