<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>
</tr>
<tr>
<th colspan="2">
+ <input type="hidden" name="tournament" value="[% tournament.tournament %]" />
<input type="submit" value="Legg til" />
</th>
</tr>