summaryrefslogtreecommitdiff
path: root/root
diff options
context:
space:
mode:
authordakkar <dakkar@luxion>2005-11-10 17:57:01 +0000
committerdakkar <dakkar@luxion>2005-11-10 17:57:01 +0000
commitdb8feb39b618eca0ab6bb0000f1d7ed3d6678a7a (patch)
tree0092ed285e1ea4992e0e2af43e3ef8fe5ea29679 /root
parentfatto stile per la lista di link, messo il JS in file (diff)
downloadBookmarks-db8feb39b618eca0ab6bb0000f1d7ed3d6678a7a.tar.gz
Bookmarks-db8feb39b618eca0ab6bb0000f1d7ed3d6678a7a.tar.bz2
Bookmarks-db8feb39b618eca0ab6bb0000f1d7ed3d6678a7a.zip
* cambiato ordinamento dei tag (ora รจ sempre alfabetico)
* riordinata e migliorata la form di add * stile per la form di add * corretto il caricamento delle favicon * corretta la pulitura tags
Diffstat (limited to 'root')
-rw-r--r--root/add_form22
-rw-r--r--root/links2
-rw-r--r--root/style.css24
3 files changed, 39 insertions, 9 deletions
diff --git a/root/add_form b/root/add_form
index b403a3d..d6a32d6 100644
--- a/root/add_form
+++ b/root/add_form
@@ -7,28 +7,36 @@
</head>
<body>
<form action="[% href.add_action() %]" method="post">
+
<p>
<label for="url">Link:</label>
- <input id="url" name="url" type="text" value="[% link.url %]" />
+ <input id="url" name="url" type="text" size="30" value="[% link.url %]" />
</p>
+
<p>
<label for="title">Title:</label>
- <input id="title" name="title" type="text" value="[% link.title %]" />
- </p>
- <p>
- <label for="descr">Description:</label>
- <input id="descr" name="descr" type="text" value="[% link.descr %]" />
+ <input id="title" name="title" type="text" size="30" value="[% link.title %]" />
</p>
+
<p>
<label for="tag_field">Tags:</label>
- <input autocomplete="off" id="tag_field" name="tag" type="text" value="[% tags.join(' ') %]" />
+ <input autocomplete="off" id="tag_field" name="tag" type="text" size="30" 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>
+
+ <p>
+ <label for="descr">Description:</label>
+ <textarea id="descr" name="descr" cols="30" rows="4">
+ [%- link.descr -%]
+ </textarea>
+ </p>
+
<input type="submit" name="add" value="Submit" />
[% IF mode=='edit' -%]
<input type="submit" name="delete" value="Delete" />
[%- END %]
+ <input type="hidden" name="close" value="[% close %]" />
</form>
</body>
</html> \ No newline at end of file
diff --git a/root/links b/root/links
index c2fa4db..ee07953 100644
--- a/root/links
+++ b/root/links
@@ -35,7 +35,7 @@
[% FOR tag IN tagset.tags %]
<li>
<span class="tag name">
- <a href="[% href.tag_info(tag) %]" target="_self">[% tag.name %]</a>
+ <a href="[% href.to_tag(tag) %]" target="_self">[% tag.name %]</a>
</span>
[% IF tagset.size() > 1 %]
<span class="tag remove">
diff --git a/root/style.css b/root/style.css
index d7c9dfe..ff8aa36 100644
--- a/root/style.css
+++ b/root/style.css
@@ -48,6 +48,7 @@ div#related
width: 49%; height: 80px;
border: solid thin black;
background-color: white;
+ z-index: 2;
}
div#tagset h2,
div#related h2
@@ -129,13 +130,17 @@ div#links ol > li
position: relative;
display: block;
}
+div#links ol > li:hover
+{
+ background-color: rgb(180,180,180);
+}
div#links ol > li div.link.head span.link.appear
{
display: block;
position: absolute;bottom:0;right:1px;
text-align: right;
background-color: red;
- width: 15px;
+ width: 15px;height: 100%;
text-align: center;
}
div#links ol > li div.link.details span.link.edit
@@ -154,4 +159,21 @@ div#links ol > li div.link.details ul li
display: inline;
padding:0;margin:0;border:0;
padding-left: 5px; margin-left: 5px; border-left: solid thin black;
+}
+
+/* add form */
+label {
+ display: block;
+}
+input[type=text],
+textarea
+{
+ width: 100%;
+ border: none;
+ border-bottom: solid thin black;
+}
+input[type=submit]
+{
+ border: none;
+ background-color: red;
} \ No newline at end of file