]> git.sesse.net Git - ccbs/blobdiff - html/templates/add-tournament.tmpl
Added a form (no logic yet) for adding tournaments.
[ccbs] / html / templates / add-tournament.tmpl
diff --git a/html/templates/add-tournament.tmpl b/html/templates/add-tournament.tmpl
new file mode 100644 (file)
index 0000000..832167c
--- /dev/null
@@ -0,0 +1,62 @@
+[%# vim:set filetype=html: %]
+<div>
+<form action="do-add-tournament.pl" method="post">
+  <table>
+    <tr>
+      <th>Sesong:</th>
+      <td>
+        <select name="season">
+[% FOR season = seasons %]
+           <option value="[% season.season %]">[% season.seasonname %]</option>
+[% END %]         
+       </select>
+      </td>
+    </tr>
+    <tr>
+      <th>Navn:</th>
+      <td><input name="name" /></td>
+    </tr>
+    <tr>
+      <th>Land:</th>
+      <td>
+        <select name="country">
+[% FOR country = countries %]
+           <option value="[% country.country %]">[% country.countryname %]</option>
+[% END %]         
+       </select>
+      </td>
+    </tr>
+    <tr>
+      <th>Sted:</th>
+      <td><input name="place" /></td>
+    </tr>
+    <tr>
+      <th>Dato:</th>
+      <td><input name="date" /></td>
+    </tr>
+    <tr>
+      <th>Maskin:</th>
+      <td>
+        <select name="machine">
+[% FOR machine = machines %]
+           <option value="[% machine.machine %]">[% machine.machinename %]</option>
+[% END %]         
+       </select>
+      </td>
+    </tr>
+    <tr>
+      <th>Scoresystem:</th>
+      <td>
+        <select name="scoringsystem">
+[% FOR scoringsystem = scoringsystems %]
+           <option value="[% scoringsystem.scoringsystem %]">[% scoringsystem.scoringsystemname %]</option>
+[% END %]         
+       </select>
+      </td>
+    </tr>
+    <tr>
+      <td colspan="2"><input type="submit" value="Legg inn" /></td>
+    </tr>
+  </table>
+</form>
+</div>