]> git.sesse.net Git - ccbs/blobdiff - html/templates/player.tmpl
Lots of translation updates.
[ccbs] / html / templates / player.tmpl
index 5f25b8f81b74bcc1b38f7bf87f1ffb4915e0927a..35945ccdd88eef63477365a7f3610c34d00ca965 100644 (file)
@@ -3,18 +3,68 @@
 
   <div>
     <ul>
-      <li>Nick: [% player.nick %]</li>
-      <li>Land: [% player.countryname %]</li>
+      <li><_>Nick:</_> [% player.nick %]</li>
+      <li><_>Land:</_> [% player.countryname %]</li>
 [% IF player.clubname != '' %]
-      <li>Klubb: [% player.clubname %]</li>
+      <li><_>Klubb:</_> [% player.clubname %]</li>
 [% END %]      
     </ul>
   </div>
 
+[% IF !public %]
+  <h2>Rediger spiller</h2>
+
+  <div>
+    <form method="post" action="do-edit-player.pl">
+      <input type="hidden" name="player" value="[% player.player %]" />
+      <table>
+        <tr>
+          <th>Nick</th>
+          <td><input name="nick" value="[% player.nick %]" /></td>
+       </tr>
+        <tr>
+          <th>Land</th>
+          <td>
+            <select name="country">
+[% FOR c = countries %]
+  [% IF c.country == player.country %]
+    <option value="[% c.country %]" selected="selected">[% c.countrycode %] - [% c.countryname %]</option>
+  [% ELSE %]
+    <option value="[% c.country %]">[% c.countrycode %] - [% c.countryname %]</option>
+  [% END %]
+[% END %]
+            </select>
+          </td>
+        </tr>
+        <tr>
+          <th>Klubb</th>
+          <td>
+            <select name="club">
+              <option value="-1"></option>
+[% FOR c = clubs %]
+  [% IF c.club == player.club %]
+              <option value="[% c.club %]" selected="selected">[% c.clubname %]</option>
+  [% ELSE %]
+              <option value="[% c.club %]">[% c.clubname %]</option>
+  [% END %]
+[% END %]
+           </select>
+         </td>
+        </tr>
+        <tr>
+          <th colspan="2">
+           <input type="submit" value="Rediger" />
+         </th>
+       </tr>
+      </table>
+    </form>
+  </div>
+[% END %]
+
   <h2>Beste sanger</h2>
 
   <div>
-    <table>
+    <table class="scores">
       <tr>
         <th></th>
         <th>Sang</th>
   <h2>Alle sanger</h2>
   
   <div>
-    <table>
+    <table class="scores">
 [% FOR s = allsongs %]
       <tr>
-        <th>[% s.title %]</th>
+        <th><a href="song.pl?id=[% s.song %]">[% s.title %]</a></th>
 [% SET col = 0 %]
 [% FOR score = s.scores %]
         <td>[% score %]</td>