]> git.sesse.net Git - ccbs/blobdiff - html/templates/shorttitles.tmpl
Add a simple web interface for adding/updating short titles. (No backend yet.)
[ccbs] / html / templates / shorttitles.tmpl
diff --git a/html/templates/shorttitles.tmpl b/html/templates/shorttitles.tmpl
new file mode 100644 (file)
index 0000000..e721666
--- /dev/null
@@ -0,0 +1,24 @@
+[%# vim:set filetype=html: %]
+
+  <div>
+    <form method="post" action="do-update-shorttitles.pl">
+      <table class="scores">
+        <tr>
+          <th>Sang</th>
+          <th>Kort tittel</th>
+        </tr>
+
+[% FOR s = songs %]
+        <tr>
+          <td>[% s.title %]</td>
+          <td><input name="st[% s.song %]" value="[% s.shorttitle %]" /></td>
+        </tr>
+[% END %]
+        <tr>
+         <td colspan="2">
+           <input type="submit" value="Oppdater" />
+         </td>
+       </tr>
+      </table>
+    </form>
+  </div>