Add a box for adding people.
[ccbs] / html / templates / registration.tmpl
index 74f1167..6bbb528 100644 (file)
@@ -3,8 +3,42 @@
 
 <div>
   <ul>
-[% FOR p = people %]
-    <li>[% p.nick %]</li>
+[% FOR r = registered %]
+    <li>[% r.nick %]</li>
 [% END %]
   </ul>
 </div>
+
+<h2>PĂ„melding</h2>
+
+<div>
+<form method="post" action="do-registration.pl">
+  <input type="hidden" name="tournament" value="[% tournament.id %]" />
+  <table>
+    <tr>
+      <th>Spiller</th>
+      <td>
+        <select name="player">
+[% FOR a = available %]
+          <option value="[% a.id %]">[% 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>