]> git.sesse.net Git - ccbs/blobdiff - html/templates/show-tournament.tmpl
We want to show _groups_ on the big screen, not _rounds_
[ccbs] / html / templates / show-tournament.tmpl
index 0c4e350899baf0926475a41d63bbfef2d4bd2665..86854cd0f43c14cdbc97d1b57dd0a86036c23417 100644 (file)
   <div>
 
   [% FOR p = r.parallels %]
+  <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" />
+  [% END %]
+    </p>
+  </form>
+  
   <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 %]
       <th>Total</th>
     [% END %]      
+      <th>Rank</th>
     [% IF !r.locked %]
       <th></th>
     [% END %]      
       <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 %]
      <td>[% pl.total %]</td>
         [% END %]      
+     <td>[% pl.rank %]</td>
     </tr>
       [% ELSE %]
     <tr>
         [% IF p.num_songs > 1 %]
      <td>[% pl.total %]</td>
         [% END %]
+     <td>[% pl.rank %]</td>
      <td><input type="submit" value="Oppdater" /></td>
     </tr>
       [% END %]