Add buttons for setting paid/not paid (not validating, no backend).
[ccbs] / 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>