]> git.sesse.net Git - ccbs/blobdiff - html/templates/registration.tmpl
Fix so registration works.
[ccbs] / html / templates / registration.tmpl
index 6bbb528114764aef1714b3160d6ea0cad1780962..7d21ee50c0dfe29dc194b7b281115a69fc3affd9 100644 (file)
@@ -1,26 +1,16 @@
 [%# vim:set filetype=html: %]
-<h2>Påmeldte</h2>
-
-<div>
-  <ul>
-[% 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 %]" />
+  <input type="hidden" name="tournament" value="[% tournament.tournament %]" />
   <table>
     <tr>
       <th>Spiller</th>
       <td>
         <select name="player">
 [% FOR a = available %]
-          <option value="[% a.id %]">[% a.nick %]</option>
+          <option value="[% a.player %]">[% a.nick %]</option>
 [% END %]
         </select>
       </td>
   </table>
 </form>
 </div>
+
+<h2>Påmeldte</h2>
+
+<div>
+  <ul>
+[% FOR r = registered %]
+    <li>[% r.nick %]</li>
+[% END %]
+  </ul>
+</div>
+
+
+