diff options
author | dakkar <dakkar@luxion> | 2005-11-09 17:14:54 +0000 |
---|---|---|
committer | dakkar <dakkar@luxion> | 2005-11-09 17:14:54 +0000 |
commit | 27cff350e9e5fb832185bc14dee35b5b8f942a81 (patch) | |
tree | e89f9b5d457b711cce6d908ef0b33792cab20e75 /root | |
parent | ora il BookmarksManager gestisce per bene i tag multipli, e i template sono f... (diff) | |
download | Bookmarks-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_form | 13 | ||||
-rw-r--r-- | root/links | 6 | ||||
-rw-r--r-- | root/tags | 3 |
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 @@ -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> @@ -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> |