Add buttons for setting paid/not paid (not validating, no backend).
authorSteinar H. Gunderson <sesse@samfundet.no>
Mon, 14 Feb 2005 15:43:33 +0000 (15:43 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Mon, 14 Feb 2005 15:43:33 +0000 (15:43 +0000)
html/templates/registration.tmpl

index 33b4162..bd0b4b5 100644 (file)
 [% ELSE %]
       <span class="notpaid">ikke betalt</span>
 [% END %]
+      <form method="post" action="do-set-paid.pl">
+        <input type="hidden" name="player" value="[% r.player %]" />
+[% IF r.paid %]
+        <input type="hidden" name="paid" value="f" />
+       <input type="submit" value="Sett som ikke betalt" />
+[% ELSE %]
+        <input type="hidden" name="paid" value="t" />
+       <input type="submit" value="Sett som betalt" />
+[% END %]
+      </form>
     </li>
 [% END %]
   </ul>