]> git.sesse.net Git - ccbs/blobdiff - html/templates/registration.tmpl
Add buttons for setting paid/not paid (not validating, no backend).
[ccbs] / html / templates / registration.tmpl
index c2d873b6dcb70cea33da88b95ac199c2602e020e..bd0b4b53361474e220b799832d8d6afc1e4daaed 100644 (file)
@@ -3,7 +3,7 @@
 
 <div>
 <form method="post" action="do-registration.pl">
-  <input type="hidden" name="tournament" value="[% tournament.id %]" />
+  <input type="hidden" name="tournament" value="[% tournament.tournament %]" />
   <table>
     <tr>
       <th>Spiller</th>
 <div>
   <ul>
 [% FOR r = registered %]
-    <li>[% r.nick %]</li>
+    <li>
+      [% r.nick %] - 
+[% IF r.paid %]
+      betalt
+[% 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>
 </div>
 
-
-