]> git.sesse.net Git - ccbs/blobdiff - html/templates/registration.tmpl
Automatically zoom to the new player when adding a new one.
[ccbs] / html / templates / registration.tmpl
index 5a2239f9ad944c2e8026454cdd22806f5dd81aee..a51778fd15c81c8caaf9685038f29d58fce71975 100644 (file)
@@ -9,7 +9,11 @@
       <td>
         <select name="player">
 [% FOR a = available %]
-          <option value="[% a.player %]">[% a.nick %]</option>
+[% IF a.player == selected_player %]
+           <option value="[% a.player %]" selected="selected">[% a.nick %]</option>
+[% ELSE %]
+           <option value="[% a.player %]">[% a.nick %]</option>
+[% END %]
 [% END %]
         </select>
       </td>
 </form>
 </div>
 
+<h2>Registrering av ny spiller</h2>
+
+<div>
+<form method="post" action="do-add-player.pl">
+  <table>
+    <tr>
+      <th>Nick</th>
+      <td><input name="nick" /></td>
+    </tr>
+    <tr>
+      <th colspan="2">
+        <input type="hidden" name="tournament" value="[% tournament.tournament %]" />
+        <input type="submit" value="Legg til" />
+      </th>
+    </tr>
+  </table>
+</form>
+</div>
+
 <h2>PĆ„meldte</h2>
 
 <div>