]> git.sesse.net Git - ccbs/blobdiff - html/templates/show-tournament.tmpl
Clarified the meaning of players_per_machine in the templates.
[ccbs] / html / templates / show-tournament.tmpl
index a5c539ea951e940461da31176732b9b1787d4bf7..3a6c34fb85ae81eb64b0b16ce0ae85798f7f3673 100644 (file)
 [% END %]
 
 [% FOR r = rounds %]
-  <h2>Runde [% r.round %]</h2>
+  <h2><a name="round[% r.round %]">Runde [% r.round %]</a></h2>
 
   <div>
 
   [% FOR p = r.parallels %]
+    [% IF bigscreen %]
+  <form method="post" action="do-set-active-round.pl">
+    <p>
+      <input type="hidden" name="tournament" value="[% tournament.tournament %]" />
+      <input type="hidden" name="round" value="[% r.round %]" />
+      <input type="hidden" name="parallel" value="[% p.parallel %]" />
+      [% IF p.bigscreen %]
+      <input type="hidden" name="show" value="false" />
+      <input type="submit" value="Fjern fra storskjerm" />
+      [% ELSE %]
+      <input type="hidden" name="show" value="true" />
+      <input type="submit" value="Vis på storskjerm" />
+      Antall maskiner: <input name="nummachines" value="1" size="1" />
+      Antall spillere samtidig på hver maskin: <input name="playerspermachine" value="1" size="1" />
+      [% END %]
+    </p>
+  </form>
+    [% END %]
+  
   <form method="post" action="do-edit-scores.pl">
   <table class="scores">
     <tr>
       </th>
     [% END %]
     [% FOR s = p.songs %]
-      [% IF s == '' %]
+      [% IF s.song == -1 %]
       <th colspan="4">Selvvalgt</th>
       [% ELSE %]
-      <th colspan="3">[% s %]</th>
+      <th colspan="3"><a href="song.pl?id=[% s.song %]">[% s.title %]</a></th>
       [% END %]
     [% END %]
     [% IF p.num_songs > 1 %]
       <td class="playmode">[% s.playmode %]</td>
       <td class="difficulty">[% s.difficulty %]</td>
           [% IF s.chosen %]
-      <td>[% s.title %]</td>
+      <td><a href="song.pl?id=[% s.song %]">[% s.title %]</a></td>
           [% END %]
         [% END %]
         [% IF p.num_songs > 1 %]