JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
metaform: fix form action with opt_public_form
[wfpl.git] / metaform / main.html
index 8b7ab2c..c0057c2 100644 (file)
@@ -3,6 +3,7 @@
 <html>
 <head>
   <title>Meta Form</title>
+  <style>input[type=text], textarea { width: 400px; }</style>
 </head>
 
 <body>
@@ -11,7 +12,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~" autofocus>.html</p>
+    <p>File name: <input type="text" name="file_name" value="~public_file_name attr~" autofocus>.html</p>
 
     <p>DB table: <input type="text" name="table_name" value="~table_name attr~"></p>
 
@@ -30,7 +31,9 @@
 
     <p><input type="checkbox" name="opt_display~opt_display checked~" value="Yes"> Provide a "Display" page.</p>
 
-    <p><input type="checkbox" name="opt_pass~opt_pass checked~" value="Yes"> Password protect this form.</p>
+    <p><input type="checkbox" name="opt_pass~opt_pass checked~" value="Yes"> Password protect this page.<br>
+       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" name="opt_public_form~opt_public_form checked~" value="Yes"> But with publicly accessible submission form<br>
+       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" name="opt_public_display~opt_public_display checked~" value="Yes"> But with publicly accessible view page.</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>
 
@@ -43,6 +46,7 @@ name      textbox
 phone     phone
 }
 comments  textarea
+color     pulldown Red,Green,Blue
 agree     yesno
 </pre></code></p>