]> git.sesse.net Git - ccbs/blobdiff - html/templates/show-tournament.tmpl
Make it possible to edit scores.
[ccbs] / html / templates / show-tournament.tmpl
index 4c02f78acde730b7f92d245c4b76bf8ff8f4b411..decfe5ed8e2e60362029170af157aa2c67e7d7f5 100644 (file)
   <table class="scores">
     <tr>
     [% IF p.parallel == 0 %]
-      <th></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 %]" />
+      </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 == '' %]
     [% FOR pl = p.players %]
       [% IF pl.locked %]
     <tr>
-      <th>[% pl.nick %]</th>
+      <th>
+        [% pl.nick %]
+      </th>
         [% FOR s = pl.songs %]
       <td>[% s.score %]</td>
           [% IF s.chosen %]
       <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 %]