]> git.sesse.net Git - ccbs/blobdiff - html/templates/show-tournament.tmpl
Add starting frontend code for deciding which rounds are shown on the big screen.
[ccbs] / html / templates / show-tournament.tmpl
index ee2be73e69f0e8a4ff3e5a573296fcabd1bcecca..82a05d3464e70d15c2b385b624ae553a685e7db1 100644 (file)
 
   <div>
 
+  <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 %]" />
+  [% 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>
+  
   [% FOR p = r.parallels %]
   <form method="post" action="do-edit-scores.pl">
   <table class="scores">