]> git.sesse.net Git - ccbs/blobdiff - html/templates/show-tournament.tmpl
Only show the bigscreen buttons on the tournament that is actually on the bigscreen.
[ccbs] / html / templates / show-tournament.tmpl
index a5c539ea951e940461da31176732b9b1787d4bf7..640946341420440045a4a727029593cb26925bf3 100644 (file)
   <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" />
+      [% 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 %]