Add buttons for setting paid/not paid (not validating, no backend).
[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   <input type="hidden" name="tournament" value="[% tournament.tournament %]" />
7   <table>
8     <tr>
9       <th>Spiller</th>
10       <td>
11         <select name="player">
12 [% FOR a = available %]
13           <option value="[% a.player %]">[% a.nick %]</option>
14 [% END %]
15         </select>
16       </td>
17     </tr>
18     <tr>
19       <th>Betalt</th>
20       <td>
21         <select name="paid">
22           <option value="f">Nei</option>
23           <option value="t">Ja</option>
24         </select>
25       </td>
26     </tr>
27     <tr>
28       <th colspan="2">
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   <ul>
40 [% FOR r = registered %]
41     <li>
42       [% r.nick %] - 
43 [% IF r.paid %]
44       betalt
45 [% ELSE %]
46       <span class="notpaid">ikke betalt</span>
47 [% END %]
48       <form method="post" action="do-set-paid.pl">
49         <input type="hidden" name="player" value="[% r.player %]" />
50 [% IF r.paid %]
51         <input type="hidden" name="paid" value="f" />
52         <input type="submit" value="Sett som ikke betalt" />
53 [% ELSE %]
54         <input type="hidden" name="paid" value="t" />
55         <input type="submit" value="Sett som betalt" />
56 [% END %]
57       </form>
58     </li>
59 [% END %]
60   </ul>
61 </div>
62