]> git.sesse.net Git - ccbs/blobdiff - html/templates/show-tournament.tmpl
Remove/hide some borders between the score/playmode/difficulty settings.
[ccbs] / html / templates / show-tournament.tmpl
index 4c55422b610a786d725da42b35e78baf3569f545..8169e6a4b1ef175dfde6a750fae757f4e93461ea 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 == '' %]
-      <th colspan="2">Selvvalgt</th>
+      <th colspan="4">Selvvalgt</th>
       [% ELSE %]
-      <th>[% s %]</th>
+      <th colspan="3">[% s %]</th>
       [% END %]
     [% END %]
     [% IF p.num_songs > 1 %]
     </tr>
     
     [% FOR pl = p.players %]
-      [% IF pl.locked %]
+      [% IF r.locked %]
     <tr>
-      <th>[% pl.nick %]</th>
+      <th>
+        [% pl.nick %]
+      </th>
         [% FOR s = pl.songs %]
-      <td>[% s.score %]</td>
+      <td class="score">[% s.score %]</td>
+      <td class="playmode">[% s.playmode %]</td>
+      <td class="difficulty">[% s.difficulty %]</td>
           [% IF s.chosen %]
       <td>[% s.title %]</td>
           [% END %]
     <tr>
       <th>[% pl.nick %]</th>
         [% FOR s = pl.songs %]
-      <td nowrap="nowrap">
-        <input name="score[% s.songnumber %]" value="[% s.score %]" size="5" />
-       <select name="playmode[% s.songnumber %]">
+      <td class="score">
+        <input type="hidden" name="old-score[% pl.player %]-[% s.songnumber %]" value="[% s.score %]" />
+        <input name="score[% pl.player %]-[% s.songnumber %]" value="[% s.score %]" size="5" />
+      </td>
+      <td class="playmode">
+        <input type="hidden" name="old-playmode[% pl.player %]-[% s.songnumber %]" value="[% s.playmode %]" />
+       <select name="playmode[% pl.player %]-[% s.songnumber %]">
          <option value=""> </option>
          [% IF s.playmode == 'single' %]
          <option value="single" selected="selected">S</option>
          <option value="double">D</option>
         [% END %]
        </select>
-       <select name="difficulty[% s.songnumber %]">
+      </td>
+      <td class="difficulty">
+        <input type="hidden" name="old-difficulty[% pl.player %]-[% s.songnumber %]" value="[% s.difficulty %]" />
+       <select name="difficulty[% pl.player %]-[% s.songnumber %]">
          <option value=""> </option>
          [% IF s.difficulty == 'beginner' %]
          <option value="beginner" selected="selected">B</option>
       </td>
           [% IF s.chosen %]
       <td>
-        <select name="song[% s.songnumber %]">
+        <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 %]
               [% IF s.song == ss.song %]