]> git.sesse.net Git - ccbs/blobdiff - html/templates/show-tournament.tmpl
Add name= to the submit buttons, and some information fixes.
[ccbs] / html / templates / show-tournament.tmpl
index 3c1839b248025fe0c8c06213d15a71b6e1e69fb5..4c02f78acde730b7f92d245c4b76bf8ff8f4b411 100644 (file)
@@ -74,6 +74,7 @@
   <div>
 
   [% FOR p = r.parallels %]
+  <form method="post" action="do-edit-scores.pl">
   <table class="scores">
     <tr>
     [% IF p.parallel == 0 %]
     <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="nowrap">
+        <input name="score[% pl.player %]-[% s.songnumber %]" value="[% s.score %]" size="5" />
+       <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 %]">
+       <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 %]">
+        <select name="song[% pl.player %]-[% s.songnumber %]">
           <option value=""> </option>
             [% FOR ss = songs %]
               [% IF s.song == ss.song %]
         [% IF p.num_songs > 1 %]
      <td>[% pl.total %]</td>
         [% END %]
-     <td><input type="submit" value="Oppdater" /></td>
+     <td><input type="submit" name="update[% pl.player %]" value="Oppdater" /></td>
     </tr>
       [% END %]
     [% END %]
   </table>
+  </form> 
   [% END %]
 
   </div>