]> git.decadent.org.uk Git - memories.git/blobdiff - templates/photo/upload
Rather more lightweight (and functional) tag completion code.
[memories.git] / templates / photo / upload
index ad88ff84974eb0c8c6c483aaadfc8ef39a086bb1..02ef5e8f1cbf536efc4ff5b32de7d5dd4f78fa8e 100644 (file)
@@ -1,21 +1,4 @@
-<html>
-<head>
-    <title> Memories - Photo Sharing </title>
-    <link title="Maypole" href="[%base%]/static/memories.css" type="text/css" rel="stylesheet"/>
-    <script type="text/javascript" src="[%base%]/tag/list_js"></script>
-    <script type="text/javascript" src="[%base%]/static/upload.js"></script>
-</head>
-<body onload="init()">
-[% INCLUDE nav %]
-<table width="100%">
-    <tr>
-    <td valign="top">
-    [% IF messages %]
-    <div class="messages">
-    <ul> [% FOR m = messages %] <li> [%m%] </li> [% END %]
-    </ul></div>
-    [% END %]
-   <div id="main">
+[% INCLUDE header %]
 <h1> Upload a photo </h1>
 <p>
 This is where you can upload your photographs. At the moment, you must
@@ -38,6 +21,7 @@ server, so don't press stop or reload after pressing the Upload button.
     <td><input name="tags" id="tags"></td>
     <tr><td> &nbsp; </td> <td>
 <div class="messages"><small>
+<script type="text/javascript"> addHandler($("tags")) </script>
 <b>Tagging advice</b>: Tags should be words, (<i>portrait</i>, <i>henry</i>) or
 phrases surrounded by double quotes. (<i>"tall buildings"</i>) You can
 put any number of tags in the "add tags" box, like this: