]> git.sesse.net Git - ccbs/blobdiff - html/templates/registration.tmpl
Add a box for adding people.
[ccbs] / html / templates / registration.tmpl
index 74f116758e5393c9cb86665bdb48c3901a2385a6..6bbb528114764aef1714b3160d6ea0cad1780962 100644 (file)
@@ -3,8 +3,42 @@
 
 <div>
   <ul>
 
 <div>
   <ul>
-[% FOR p = people %]
-    <li>[% p.nick %]</li>
+[% FOR r = registered %]
+    <li>[% r.nick %]</li>
 [% END %]
   </ul>
 </div>
 [% 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>