summaryrefslogtreecommitdiff
path: root/root
diff options
context:
space:
mode:
authordakkar <dakkar@luxion>2005-11-09 17:14:54 +0000
committerdakkar <dakkar@luxion>2005-11-09 17:14:54 +0000
commit27cff350e9e5fb832185bc14dee35b5b8f942a81 (patch)
treee89f9b5d457b711cce6d908ef0b33792cab20e75 /root
parentora il BookmarksManager gestisce per bene i tag multipli, e i template sono f... (diff)
downloadBookmarks-27cff350e9e5fb832185bc14dee35b5b8f942a81.tar.gz
Bookmarks-27cff350e9e5fb832185bc14dee35b5b8f942a81.tar.bz2
Bookmarks-27cff350e9e5fb832185bc14dee35b5b8f942a81.zip
* passati i template a HTML4, altrimenti l'autocompletamento non va
* aggiunto autocompletamento per i nomi di tag * migliorato il caricatore da YAML * aggiunto un convertitore XBEL -> YAML * aggiunto campo 'tipo icona' * aggiunta funzionalità di edit e delete di link * dopo ogni update di un link, i tag non più riferiti vengono cancellati * migliorato il recupero favicon, con tipo
Diffstat (limited to 'root')
-rw-r--r--root/add_form13
-rw-r--r--root/links6
-rw-r--r--root/tags3
3 files changed, 13 insertions, 9 deletions
diff --git a/root/add_form b/root/add_form
index 10e83bb..ce0d181 100644
--- a/root/add_form
+++ b/root/add_form
@@ -1,15 +1,18 @@
-<?xml version="1.0" encoding="utf-8"?>
-<html xmlns="http://www.w3.org/1999/xhtml">
+<html>
<head>
-<title>add</title>
+<title>[% IF mode=='edit'; 'Edit link'; ELSE; 'Add link'; END %]</title>
+[% c.prototype.auto_complete_stylesheet() %]
+[% c.prototype.define_javascript_functions() %]
</head>
<body>
<form action="[% href.add_action() %]" method="post">
<p>Link: <input name="url" type="text" value="[% link.url %]" /></p>
<p>Title: <input name="title" type="text" value="[% link.title %]" /></p>
<p>Description: <input name="descr" type="text" value="[% link.descr %]" /></p>
-<p>Tags: <input name="tag" type="text" value="[% tags.join(' ') %]" /></p>
-<input type="submit" />
+<p>Tags: <input autocomplete="off" id="tag_field" name="tag" type="text" value="[% tags.join(' ') %]" /></p>
+<div id="tag_field_auto_complete" class="auto_complete"></div>
+<script type="text/javascript">new Ajax.Autocompleter('tag_field', 'tag_field_auto_complete', '[% href.tag_autocomplete() %]', { tokens: ' ' })</script>
+<input type="submit" name="add" value="Submit" /> [% IF mode=='edit' %]<input type="submit" name="delete" value="Delete" />[% END %]
</form>
</body>
</html> \ No newline at end of file
diff --git a/root/links b/root/links
index 210a7e9..a23eaff 100644
--- a/root/links
+++ b/root/links
@@ -1,5 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
-<html xmlns="http://www.w3.org/1999/xhtml">
+<html>
<head>
<title>
Links for
@@ -51,6 +50,9 @@
<span class="link title">
<a href="[% href.link(link) %]">»[% link.title %]«</a>
</span>
+ <span class="link edit">
+ <a href="[% href.edit_link(link) %]">edit</a>
+ </span>
<ul>
[% FOR rtag IN link.tags %]
<li>
diff --git a/root/tags b/root/tags
index 888f50e..2df62e5 100644
--- a/root/tags
+++ b/root/tags
@@ -1,5 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
-<html xmlns="http://www.w3.org/1999/xhtml">
+<html>
<head>
<title>tags</title>
</head>