539ccb679697fd9862df9fe3daac23a805f7ccb5
[ccbs] / html / templates / registration.tmpl
1 [%# vim:set filetype=html: %]
2 <h2>PĆ„melding</h2>
3
4 <div>
5 <form method="post" action="do-registration.pl">
6   <table>
7     <tr>
8       <th>Spiller</th>
9       <td>
10         <select name="player">
11 [% FOR a = available %]
12           <option value="[% a.player %]">[% a.nick %]</option>
13 [% END %]
14         </select>
15       </td>
16     </tr>
17     <tr>
18       <th>Betalt</th>
19       <td>
20         <select name="paid">
21           <option value="f">Nei</option>
22           <option value="t">Ja</option>
23         </select>
24       </td>
25     </tr>
26     <tr>
27       <th colspan="2">
28         <input type="hidden" name="tournament" value="[% tournament.tournament %]" />
29         <input type="submit" value="Legg til" />
30       </th>
31     </tr>
32   </table>
33 </form>
34 </div>
35
36 <h2>PĆ„meldte</h2>
37
38 <div>
39   <table>
40 [% FOR r = registered %]
41     <tr>
42       <td>[% r.nick %]</td>
43 [% IF r.paid %]
44       <td>betalt</td>
45 [% ELSE %]
46       <td class="notpaid">ikke betalt</td>
47 [% END %]
48       <td>
49         <form method="post" action="do-set-paid.pl">
50           <p class="button">
51             <input type="hidden" name="tournament" value="[% tournament.tournament %]" />
52             <input type="hidden" name="player" value="[% r.player %]" />
53 [% IF r.paid %]
54             <input type="hidden" name="paid" value="f" />
55             <input type="submit" value="Sett som ikke betalt" />
56 [% ELSE %]
57             <input type="hidden" name="paid" value="t" />
58             <input type="submit" value="Sett som betalt" />
59 [% END %]
60           </p>
61         </form>
62       </td>
63     </tr>
64 [% END %]
65   </table>
66 </div>
67