]> git.sesse.net Git - ccbs/blobdiff - html/templates/registration.tmpl
Add form (no backend yet) for registering new players.
[ccbs] / html / templates / registration.tmpl
index 44d7ab7523c8f18d4293fd51bd0d7e2e0fd8d01c..38d2d65031e41cae528629bb93e5ac12a494c06d 100644 (file)
 </form>
 </div>
 
+<h2>Registrering av ny spiller</h2>
+
+<div>
+<form method="post" action="do-add-player.pl">
+  <table>
+    <tr>
+      <th>Nick</th>
+      <td><input name="nick" /></td>
+    </tr>
+    <tr>
+      <th colspan="2">
+        <input type="submit" value="Legg til" />
+      </th>
+    </tr>
+  </table>
+</form>
+</div>
+
 <h2>PĆ„meldte</h2>
 
 <div>
 [% END %]
       <td>
         <form method="post" action="do-set-paid.pl">
-          <input type="hidden" name="player" value="[% r.player %]" />
+          <p class="button">
+            <input type="hidden" name="tournament" value="[% tournament.tournament %]" />
+            <input type="hidden" name="player" value="[% r.player %]" />
 [% IF r.paid %]
-          <input type="hidden" name="paid" value="f" />
-         <input type="submit" value="Sett som ikke betalt" />
+            <input type="hidden" name="paid" value="f" />
+           <input type="submit" value="Sett som ikke betalt" />
 [% ELSE %]
-          <input type="hidden" name="paid" value="t" />
-         <input type="submit" value="Sett som betalt" />
+            <input type="hidden" name="paid" value="t" />
+           <input type="submit" value="Sett som betalt" />
 [% END %]
+          </p>
+        </form>
+      </td>
+      <td>
+        <form method="post" action="do-unregister.pl">
+          <p class="button">
+            <input type="hidden" name="tournament" value="[% tournament.tournament %]" />
+            <input type="hidden" name="player" value="[% r.player %]" />
+           <input type="submit" value="Fjern" />
+          </p>
         </form>
       </td>
     </tr>