JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added "singular" field, so metaform can generate better messages, links and headers
[wfpl.git] / metaform / main.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
3 <html xmlns="http://www.w3.org/1999/xhtml">
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>page/table name: <input type="text" name="form_name" value="~form_name.attr~" /></p>
15
16     <p>Same as above but singular: <input type="text" name="singular" value="~singular.attr~" /> (Used in messages and headers.)</p>
17
18         <h3>Features</h3>
19
20     <p><input type="checkbox" name="opt_email~opt_email.checked~" value="Yes" /> Send form results vie e-mail.</p>
21
22     <p><input type="checkbox" name="opt_db~opt_db.checked~" value="Yes" /> Save form results to a database.</p>
23
24     <p><input type="checkbox" name="opt_listing~opt_listing.checked~" value="Yes" /> Provide a "Listing" page.</p>
25
26     <p><input type="checkbox" name="opt_display~opt_display.checked~" value="Yes" /> Provide a "Display" page.</p>
27
28     <p><input type="checkbox" name="opt_http_pass~opt_http_pass.checked~" value="Yes" /> Password protect this form (with HTTP authentication).</p>
29
30         <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: ~available_types.html~.</p>
31         <p>Example:<br /><pre>
32 name      textbox
33 phone     phone
34 comments  textarea
35 agree     yesno</pre></p>
36     <p>Fields: 
37     <textarea rows="10" cols="40" name="fields">~fields.html~</textarea></p>
38
39     <p><input type="submit" name="preview" value="Continue" /></p>
40   </form>
41 </body>
42 </html>