]> git.sesse.net Git - ccbs/blob - html/templates/player.tmpl
Lots of translation updates.
[ccbs] / html / templates / player.tmpl
1 [%# vim:set filetype=html: %]
2   <h2>Generelle fakta</h2>
3
4   <div>
5     <ul>
6       <li><_>Nick:</_> [% player.nick %]</li>
7       <li><_>Land:</_> [% player.countryname %]</li>
8 [% IF player.clubname != '' %]
9       <li><_>Klubb:</_> [% player.clubname %]</li>
10 [% END %]      
11     </ul>
12   </div>
13
14 [% IF !public %]
15   <h2>Rediger spiller</h2>
16
17   <div>
18     <form method="post" action="do-edit-player.pl">
19       <input type="hidden" name="player" value="[% player.player %]" />
20       <table>
21         <tr>
22           <th>Nick</th>
23           <td><input name="nick" value="[% player.nick %]" /></td>
24         </tr>
25         <tr>
26           <th>Land</th>
27           <td>
28             <select name="country">
29 [% FOR c = countries %]
30   [% IF c.country == player.country %]
31     <option value="[% c.country %]" selected="selected">[% c.countrycode %] - [% c.countryname %]</option>
32   [% ELSE %]
33     <option value="[% c.country %]">[% c.countrycode %] - [% c.countryname %]</option>
34   [% END %]
35 [% END %]
36             </select>
37           </td>
38         </tr>
39         <tr>
40           <th>Klubb</th>
41           <td>
42             <select name="club">
43               <option value="-1"></option>
44 [% FOR c = clubs %]
45   [% IF c.club == player.club %]
46               <option value="[% c.club %]" selected="selected">[% c.clubname %]</option>
47   [% ELSE %]
48               <option value="[% c.club %]">[% c.clubname %]</option>
49   [% END %]
50 [% END %]
51             </select>
52           </td>
53         </tr>
54         <tr>
55           <th colspan="2">
56             <input type="submit" value="Rediger" />
57           </th>
58         </tr>
59       </table>
60     </form>
61   </div>
62 [% END %]
63
64   <h2>Beste sanger</h2>
65
66   <div>
67     <table class="scores">
68       <tr>
69         <th></th>
70         <th>Sang</th>
71         <th>Poengsum</th>
72         <th>Arrangement</th>
73       </tr>
74
75 [% SET rowno = 1 %]
76 [% FOR s = bestsongs %]
77       <tr>
78         <th>[% rowno %]</th>
79 [% SET rowno = rowno + 1 %]
80         <td><a href="song.pl?id=[% s.song %]">[% s.title %]</a></td>
81         <td>[% s.score %]</td>
82         <td><a href="show-tournament.pl?id=[% s.tournament %]">[% s.tournamentname %]</a></td>
83       </tr>
84 [% END %]
85     </table>
86   </div>
87
88   <h2>Alle sanger</h2>
89   
90   <div>
91     <table class="scores">
92 [% FOR s = allsongs %]
93       <tr>
94         <th><a href="song.pl?id=[% s.song %]">[% s.title %]</a></th>
95 [% SET col = 0 %]
96 [% FOR score = s.scores %]
97         <td>[% score %]</td>
98 [% SET col = col + 1 %]
99 [% END %]
100 [% WHILE col != columns %]
101         <td class="empty"></td>
102 [% SET col = col + 1 %]
103 [% WEND %]
104 [% END %]
105       </tr>
106 [% END %]
107     </table>
108   </div>