]> git.sesse.net Git - ccbs/blobdiff - html/templates/registration.tmpl
Fix some validation errors, more remain.
[ccbs] / html / templates / registration.tmpl
index c2d873b6dcb70cea33da88b95ac199c2602e020e..44d7ab7523c8f18d4293fd51bd0d7e2e0fd8d01c 100644 (file)
@@ -3,7 +3,6 @@
 
 <div>
 <form method="post" action="do-registration.pl">
-  <input type="hidden" name="tournament" value="[% tournament.id %]" />
   <table>
     <tr>
       <th>Spiller</th>
@@ -26,6 +25,7 @@
     </tr>
     <tr>
       <th colspan="2">
+        <input type="hidden" name="tournament" value="[% tournament.tournament %]" />
         <input type="submit" value="Legg til" />
       </th>
     </tr>
 <h2>PĆ„meldte</h2>
 
 <div>
-  <ul>
+  <table>
 [% FOR r = registered %]
-    <li>[% r.nick %]</li>
+    <tr>
+      <td>[% r.nick %]</td>
+[% IF r.paid %]
+      <td>betalt</td>
+[% ELSE %]
+      <td class="notpaid">ikke betalt</td>
+[% END %]
+      <td>
+        <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>
+      </td>
+    </tr>
 [% END %]
-  </ul>
+  </table>
 </div>
 
-
-