chiark / gitweb /
Use form-based buttons instead of hyperlinks
[disorder] / templates / macros.tmpl
index 5d33446c739945810a6080dc7a99330d37153472..3132e570eaf9167051768e9c6b4be46e26dbf520 100644 (file)
@@ -287,13 +287,16 @@ and then redefines macros as desired.
 @#  @long is the text to put in the caption
 @#  @action is the target action
 @define {actbutton} {text long action}
 @#  @long is the text to put in the caption
 @#  @action is the target action
 @define {actbutton} {text long action}
-        {<a class=button
-              href="@url?action=@action@back"
-              title="@long">@text</a>}
+        {<form method=GET class=button action="@url">
+           <input type=hidden name=action value="@action">
+           <input type=submit name=submit value="@text" title="@long">
+@formback@#
+         </form>}
+@# TODO @back support
 
 
-@# Expands to &back=manage or to nothing depending on context;
-@# see playing.tmpl.
+@# Used for inserting back= elements
 @define {back} {} {}
 @define {back} {} {}
+@define {formback} {} {}
 
 Local variables:
 mode:sgml
 
 Local variables:
 mode:sgml