]> git.sesse.net Git - ccbs/blobdiff - html/templates/set-active-tournament.tmpl
Added a front end for setting the active tournament.
[ccbs] / html / templates / set-active-tournament.tmpl
diff --git a/html/templates/set-active-tournament.tmpl b/html/templates/set-active-tournament.tmpl
new file mode 100644 (file)
index 0000000..cce163a
--- /dev/null
@@ -0,0 +1,28 @@
+[%# vim:set filetype=html: %]
+<h2>Sett aktiv turnering</h2>
+
+<div>
+  <p>Denne funksjonen styrer hvilken turnering som er aktiv, dvs. hvilken storskjermen
+    skal vise informasjon fra.</p>
+
+<form method="post" action="do-set-active-tournament.pl">
+  <p>
+    <select name="tournament">
+[% IF active_tournament == -1 %]
+      <option value="-1" selected="selected"> </option>
+[% ELSE %]
+      <option value="-1"> </option>
+[% END %]
+[% FOR t = tournaments %]
+[% IF t.tournament == selected_tournament %]
+      <option value="[% t.tournament %]" selected="selected">[% t.tournamentname %]</option>
+[% ELSE %]
+      <option value="[% t.tournament %]">[% t.tournamentname %]</option>
+[% END %]
+[% END %]
+    </select>
+    <input type="submit" value="Velg" />
+  </p>
+</form>
+
+</div>