JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
metaform: demo pulldown syntax
[wfpl.git] / metaform / main.html
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5   <title>Meta Form</title>
6 </head>
7
8 <body>
9   <h1>Meta Form</h1>
10   <p>This site will write code for you (sql code, php code, html template, email template) to handle a form.</p>
11   <form action="~metaform_name~" method="get">
12     <p>The form name should not contain any capitals or symbols (besides underscore)</p>
13
14     <p>File name: <input type="text" name="file_name" value="~file_name attr~" autofocus>.html</p>
15
16     <p>DB table: <input type="text" name="table_name" value="~table_name attr~"></p>
17
18     <p>Printable singular: <input type="text" name="singular" value="~singular attr~"></p>
19
20     <p>Printable plural: <input type="text" name="plural" value="~plural attr~"></p>
21
22
23         <h3>Features</h3>
24
25     <p><input type="checkbox" name="opt_email~opt_email checked~" value="Yes"> Send form results vie e-mail.</p>
26
27     <p><input type="checkbox" name="opt_db~opt_db checked~" value="Yes"> Save form results to a database.</p>
28
29     <p><input type="checkbox" name="opt_listing~opt_listing checked~" value="Yes"> Provide a "Listing" page.</p>
30
31     <p><input type="checkbox" name="opt_display~opt_display checked~" value="Yes"> Provide a "Display" page.</p>
32
33     <p><input type="checkbox" name="opt_pass~opt_pass checked~" value="Yes"> Password protect this form.</p>
34
35         <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>
36
37         <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>
38
39         <p>Example:<br><code><pre>
40 email     textbox
41 contact info (all required) {
42 name      textbox
43 phone     phone
44 }
45 comments  textarea
46 color     pulldown Red,Green,Blue
47 agree     yesno
48 </pre></code></p>
49
50     <p>Fields: 
51     <textarea rows="10" cols="40" name="fields">~fields html~</textarea></p>
52
53     <p><input type="submit" name="preview" value="Continue"></p>
54   </form>
55 </body>
56 </html>