]> git.sesse.net Git - ccbs/blobdiff - html/templates/player.tmpl
Switch to English as a default language, and make a matching nb_NO.po instead.
[ccbs] / html / templates / player.tmpl
index 91a4d7970cd9499b9f584c82ca03f45a9eb31d4f..a5a447d1a1e78f8b6d934e026c4f149a47c7c13e 100644 (file)
@@ -1,25 +1,75 @@
 [%# vim:set filetype=html: %]
-  <h2>Generelle fakta</h2>
+  <h2>General facts</h2>
 
   <div>
     <ul>
-      <li>Nick: [% player.nick %]</li>
-      <li>Land: [% player.countryname %]</li>
+      <li><_>Nick:</_> [% player.nick %]</li>
+      <li><_>Country:</_> [% player.countryname %]</li>
 [% IF player.clubname != '' %]
-      <li>Klubb: [% player.clubname %]</li>
+      <li><_>Club:</_> [% player.clubname %]</li>
 [% END %]      
     </ul>
   </div>
 
-  <h2>Beste sanger</h2>
+[% IF !public %]
+  <h2>Edit player</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>Country</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>Club</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="Edit" />
+         </th>
+       </tr>
+      </table>
+    </form>
+  </div>
+[% END %]
+
+  <h2>Best songs</h2>
 
   <div>
     <table class="scores">
       <tr>
         <th></th>
-        <th>Sang</th>
-        <th>Poengsum</th>
-        <th>Arrangement</th>
+        <th>Song</th>
+        <th>Score</th>
+        <th>Occasion</th>
       </tr>
 
 [% SET rowno = 1 %]
@@ -35,7 +85,7 @@
     </table>
   </div>
 
-  <h2>Alle sanger</h2>
+  <h2>All songs</h2>
   
   <div>
     <table class="scores">