chiark / gitweb /
Tidy up search form; remove cruft
[disorder] / templates / playing.tmpl
index 07cbd6a7b99d07194f38c32630895d77c6bb5843..147333cdf5f2b84919f3faeb683787f24a622ec5 100644 (file)
@@ -25,11 +25,9 @@ USA
   @#  @action should be the action to switch to the opposite state
   @#  @state should be the current state
   @define {onoff} {class action state}
   @#  @action should be the action to switch to the opposite state
   @#  @state should be the current state
   @define {onoff} {class action state}
-          {<a class=button
-              href="@url?action=@action@back"
-              title="@label{playing.@q{@action}verbose}">
-             @label{playing.@class}
-           </a>
+          {@actbutton{@label{playing.@class}}
+                     {@label{playing.@q{@action}verbose}}
+                     {@action}
            <img width=@width height=@height class=imgbutton
                 src="@image{@state}">}
 
            <img width=@width height=@height class=imgbutton
                 src="@image{@state}">}
 
@@ -54,9 +52,10 @@ USA
                 {@yes}
                 {@no}}
 
                 {@yes}
                 {@no}}
 
-  @# Expand to &back=manage or to nothing
-  @define {back} {}
-         {@ifmanage{&amp;back=manage}{}}
+  @ifmanage{
+    @define {back} {} {&amp;back=manage}
+    @define {formback} {} {<input type=hidden name=back value=manage>}
+  }{}
 }@#
 <html>
  <head>
 }@#
 <html>
  <head>