chiark / gitweb /
Missed an action button in earlier changes
authorRichard Kettlewell <rjk@greenend.org.uk>
Thu, 5 Jun 2008 18:05:35 +0000 (19:05 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Thu, 5 Jun 2008 18:05:35 +0000 (19:05 +0100)
templates/choose.tmpl
templates/macros.tmpl

index 599cdf5f0c7512fe419fff7d0e41dd3cde9db21f..4868143d8f0f14004755be23d4d28feb648d9f60 100644 (file)
@@ -208,10 +208,12 @@ USA
               title="@label{choose.allprefsverbose}"
               alt="@label{choose.allprefs}">
         </a>}
               title="@label{choose.allprefsverbose}"
               alt="@label{choose.allprefs}">
         </a>}
-        <a class=button
-           href="@url?action=play&#38;dir=@urlquote{@arg{dir}}&#38;back=@urlquote{@thisurl}">
-         @label{choose.playall}
-        </a>
+        <form method=POST class=action action="@url">
+         <input type=hidden name=action value=play>
+        <input type=hidden name=dir value="@argq{dir}">
+        <input type=hidden name=back value="@quote{@thisurl}">
+         <input type=submit name=submit        value="@label{choose.playall}">
+        </form>
       </p>}
     </div>
    </div>
       </p>}
     </div>
    </div>
index d0bfe152748f01d2aa48b737b8df46aad50db05a..33d1fb27d99caf995a5863c8239e2520c1f2e03a 100644 (file)
@@ -24,7 +24,7 @@ Standard macros
 This file is read before any other template.  Its output is discarded
 but side effects (definitions of macros) are retained.  To override it,
 create /etc/disorder/macros.tmpl that includes this file by absolute path
 This file is read before any other template.  Its output is discarded
 but side effects (definitions of macros) are retained.  To override it,
 create /etc/disorder/macros.tmpl that includes this file by absolute path
-and then redefines macros as desired.
+and then redefine macros as desired.
 ------------------------------------------------------------------------
 
 
 ------------------------------------------------------------------------
 
 
@@ -287,12 +287,11 @@ 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}
-        {<form method=GET class=button action="@url">
+        {<form method=POST class=button action="@url">
            <input type=hidden name=action value="@action">
            <input type=submit name=submit value="@text" title="@long">
 @formback@#
          </form>}
            <input type=hidden name=action value="@action">
            <input type=submit name=submit value="@text" title="@long">
 @formback@#
          </form>}
-@# TODO @back support
 
 @# Used for inserting back= elements
 @define {back} {} {}
 
 @# Used for inserting back= elements
 @define {back} {} {}