chiark / gitweb /
Macroize submit buttons so we can mess with them more easily
[disorder] / templates / macros.tmpl
index 9f31132ac2363165178e412e3a689cb5690257d6..2ec720540159b68bbf7b82f2237f3e784a1500e9 100644 (file)
@@ -277,6 +277,11 @@ and then redefines macros as desired.
    </table>
 }
 
+@# Expand to a submit button
+@#  @text is the text to put inside the button
+@define {submit} {text}
+        {<span class=buttonouter><button class=button name=submit type=submit><span class=buttoninner>@text</span></button></span>}
+
 Local variables:
 mode:sgml
 sgml-always-quote-attributes:nil