]> git.sesse.net Git - ccbs/blobdiff - html/templates/registration.tmpl
Sort list of registered people.
[ccbs] / html / templates / registration.tmpl
index 74f116758e5393c9cb86665bdb48c3901a2385a6..7d21ee50c0dfe29dc194b7b281115a69fc3affd9 100644 (file)
@@ -1,10 +1,47 @@
 [%# vim:set filetype=html: %]
+<h2>PĆ„melding</h2>
+
+<div>
+<form method="post" action="do-registration.pl">
+  <input type="hidden" name="tournament" value="[% tournament.tournament %]" />
+  <table>
+    <tr>
+      <th>Spiller</th>
+      <td>
+        <select name="player">
+[% FOR a = available %]
+          <option value="[% a.player %]">[% a.nick %]</option>
+[% END %]
+        </select>
+      </td>
+    </tr>
+    <tr>
+      <th>Betalt</th>
+      <td>
+        <select name="paid">
+         <option value="f">Nei</option>
+         <option value="t">Ja</option>
+       </select>
+      </td>
+    </tr>
+    <tr>
+      <th colspan="2">
+        <input type="submit" value="Legg til" />
+      </th>
+    </tr>
+  </table>
+</form>
+</div>
+
 <h2>PĆ„meldte</h2>
 
 <div>
   <ul>
-[% FOR p = people %]
-    <li>[% p.nick %]</li>
+[% FOR r = registered %]
+    <li>[% r.nick %]</li>
 [% END %]
   </ul>
 </div>
+
+
+