]> 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 86854cd0f43c14cdbc97d1b57dd0a86036c23417..640946341420440045a4a727029593cb26925bf3 100644 (file)
   <div>
 
   [% FOR p = r.parallels %]
   <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 %]" />
   <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" />
       <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" />
       <input type="hidden" name="show" value="true" />
       <input type="submit" value="Vis på storskjerm" />
-  [% END %]
+      [% END %]
     </p>
   </form>
     </p>
   </form>
+    [% END %]
   
   <form method="post" action="do-edit-scores.pl">
   <table class="scores">
   
   <form method="post" action="do-edit-scores.pl">
   <table class="scores">