Only show the bigscreen buttons on the tournament that is actually on the bigscreen.
[ccbs] / html / templates / show-tournament.tmpl
index 86854cd..6409463 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 %]
+      [% IF p.bigscreen %]
       <input type="hidden" name="show" value="false" />
       <input type="submit" value="Fjern fra storskjerm" />
-  [% ELSE %]
+      [% ELSE %]
       <input type="hidden" name="show" value="true" />
       <input type="submit" value="Vis på storskjerm" />
-  [% END %]
+      [% END %]
     </p>
   </form>
+    [% END %]
   
   <form method="post" action="do-edit-scores.pl">
   <table class="scores">