]> git.sesse.net Git - ccbs/blobdiff - html/templates/show-tournament.tmpl
Make it possible to edit scores.
[ccbs] / html / templates / show-tournament.tmpl
index d8aae62547784ae87ff21623e0503e32040c18f8..decfe5ed8e2e60362029170af157aa2c67e7d7f5 100644 (file)
       <th>
         <input type="hidden" name="tournament" value="[% tournament.tournament %]" />
         <input type="hidden" name="round" value="[% r.round %]" />
+        <input type="hidden" name="group" value="[% p.parallel %]" />
       </th>
     [% ELSE %]
-      <th>Gruppe [% p.parallel %]</th>
+      <th>
+        <input type="hidden" name="tournament" value="[% tournament.tournament %]" />
+        <input type="hidden" name="round" value="[% r.round %]" />
+        <input type="hidden" name="group" value="[% p.parallel %]" />
+        Gruppe [% p.parallel %]
+      </th>
     [% END %]
     [% FOR s = p.songs %]
       [% IF s == '' %]
       <th>[% pl.nick %]</th>
         [% FOR s = pl.songs %]
       <td class="nowrap">
+        <input type="hidden" name="old-score[% pl.player %]-[% s.songnumber %]" value="[% s.score %]" />
+        <input type="hidden" name="old-playmode[% pl.player %]-[% s.songnumber %]" value="[% s.playmode %]" />
+        <input type="hidden" name="old-difficulty[% pl.player %]-[% s.songnumber %]" value="[% s.difficulty %]" />
         <input name="score[% pl.player %]-[% s.songnumber %]" value="[% s.score %]" size="5" />
        <select name="playmode[% pl.player %]-[% s.songnumber %]">
          <option value=""> </option>
       </td>
           [% IF s.chosen %]
       <td>
+        <input type="hidden" name="old-song[% pl.player %]-[% s.songnumber %]" value="[% ss.song %]" />
         <select name="song[% pl.player %]-[% s.songnumber %]">
           <option value=""> </option>
             [% FOR ss = songs %]