]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/webapps/pastebin/new-paste.xml
stomp.cli: simplify
[factor.git] / extra / webapps / pastebin / new-paste.xml
index 86daf09aeb5560112c699250d5af158d1f30800a..b202a19a0a3df7c3e063037d9f09bddcfeda2cc1 100644 (file)
@@ -7,17 +7,13 @@
        <t:form t:action="$pastebin/new-paste">
 
                <table>
-                       <tr><th class="field-label">Summary: </th><td><t:edit t:component="summary" /></td></tr>
-                       <tr><th class="field-label">Author: </th><td><t:edit t:component="author" /></td></tr>
-                       <tr><th class="field-label">Mode: </th><td><t:edit t:component="mode" /></td></tr>
-                       <tr><th class="field-label big-field-label">Description: </th><td><t:edit t:component="contents" /></td></tr>
-                       <tr><th class="field-label">Captcha: </th><td><t:edit t:component="captcha" /></td></tr>
-                       <tr>
-                       <td></td>
-                       <td>Leave the captcha blank. Spam-bots will fill it indiscriminantly, so their attempts to register will be blocked.</td>
-                       </tr>
+                       <tr><th class="field-label">Summary: </th><td><t:field t:name="summary" /></td></tr>
+                       <tr><th class="field-label">Author: </th><td><t:field t:name="author" /></td></tr>
+                       <tr><th class="field-label">Mode: </th><td><t:choice t:name="mode" t:choices="modes" /></td></tr>
+                       <tr><th class="field-label big-field-label">Body: </th><td><t:textarea t:name="contents" t:rows="20" t:cols="60" /></td></tr>
+                       <tr><td colspan="2"><t:recaptcha /></td></tr>
                </table>
 
-               <input type="SUBMIT" value="Submit" />
+               <p> <button type="submit">Submit</button> </p>
        </t:form>
 </t:chloe>