Add hidden tournament and round form elements.
authorSteinar H. Gunderson <sesse@samfundet.no>
Wed, 16 Feb 2005 14:01:34 +0000 (14:01 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Wed, 16 Feb 2005 14:01:34 +0000 (14:01 +0000)
html/do-edit-scores.pl [new file with mode: 0755]
html/templates/show-tournament.tmpl

diff --git a/html/do-edit-scores.pl b/html/do-edit-scores.pl
new file mode 100755 (executable)
index 0000000..7d3d435
--- /dev/null
@@ -0,0 +1,16 @@
+#! /usr/bin/perl
+
+use ccbs;
+use strict;
+use warnings;
+
+my $dbh = ccbs::db_connect();
+my $cgi = new CGI;
+
+my $tournament = $cgi->param('tournament');
+
+$dbh->disconnect;
+
+ccbs::print_header();
+ccbs::print_see_other('show-tournament.pl?id=' . $tournament);
+
index 4c02f78..7adedb7 100644 (file)
     [% FOR pl = p.players %]
       [% IF pl.locked %]
     <tr>
-      <th>[% pl.nick %]</th>
+      <th>
+        <input type="hidden" name="tournament" value="[% tournament.tournament %]" />
+        <input type="hidden" name="round" value="[% r.round %]" />
+        [% pl.nick %]
+      </th>
         [% FOR s = pl.songs %]
       <td>[% s.score %]</td>
           [% IF s.chosen %]