diff options
Diffstat (limited to 'tpl/linklist.html')
-rw-r--r-- | tpl/linklist.html | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/tpl/linklist.html b/tpl/linklist.html index 9ed28853..f6e9e82b 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html | |||
@@ -9,12 +9,13 @@ | |||
9 | {include="page.header"} | 9 | {include="page.header"} |
10 | <div id="headerform" class="search"> | 10 | <div id="headerform" class="search"> |
11 | <form method="GET" class="searchform" name="searchform"> | 11 | <form method="GET" class="searchform" name="searchform"> |
12 | <input type="text" tabindex="1" id="searchform_value" name="searchterm" placeholder="Search text" value=""> <input type="submit" value="Search" class="bigbutton"></form> | 12 | <input type="text" tabindex="1" id="searchform_value" name="searchterm" placeholder="Search text" value=""> |
13 | <input type="submit" value="Search" class="bigbutton"> | ||
14 | </form> | ||
13 | <form method="GET" class="tagfilter" name="tagfilter"> | 15 | <form method="GET" class="tagfilter" name="tagfilter"> |
14 | <input type="text" tabindex="2" name="searchtags" id="tagfilter_value" placeholder="Filter by tag" value="" list="tagsList" autocomplete="off" class="awesomplete" data-minChars="1"> | 16 | <input type="text" tabindex="2" name="searchtags" id="tagfilter_value" placeholder="Filter by tag" value="" |
15 | <datalist id="tagsList"> | 17 | autocomplete="off" class="awesomplete" data-multiple data-minChars="1" |
16 | {loop="$tags"}<option>{$key}</option>{/loop} | 18 | data-list="{loop="$tags"}{$key}, {/loop}"> |
17 | </datalist> | ||
18 | <input type="submit" value="Search" class="bigbutton"> | 19 | <input type="submit" value="Search" class="bigbutton"> |
19 | </form> | 20 | </form> |
20 | {loop="$plugins_header.fields_toolbar"} | 21 | {loop="$plugins_header.fields_toolbar"} |
@@ -42,7 +43,9 @@ | |||
42 | {if="$search_type=='tags'"} | 43 | {if="$search_type=='tags'"} |
43 | <div id="searchcriteria">{$result_count} results for tags <i> | 44 | <div id="searchcriteria">{$result_count} results for tags <i> |
44 | {loop="search_crits"} | 45 | {loop="search_crits"} |
45 | <span class="linktag" title="Remove tag"><a href="?removetag={$value}">{$value} <span class="remove">x</span></a></span> | 46 | <span class="linktag" title="Remove tag"> |
47 | <a href="?removetag={$value}">{$value} <span class="remove">x</span></a> | ||
48 | </span> | ||
46 | {/loop}</i></div> | 49 | {/loop}</i></div> |
47 | {/if} | 50 | {/if} |
48 | {/if} | 51 | {/if} |
@@ -54,9 +57,17 @@ | |||
54 | <div class="linkcontainer"> | 57 | <div class="linkcontainer"> |
55 | {if="isLoggedIn()"} | 58 | {if="isLoggedIn()"} |
56 | <div class="linkeditbuttons"> | 59 | <div class="linkeditbuttons"> |
57 | <form method="GET" class="buttoneditform"><input type="hidden" name="edit_link" value="{$value.linkdate}"><input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit"></form><br> | 60 | <form method="GET" class="buttoneditform"> |
58 | <form method="POST" class="buttoneditform"><input type="hidden" name="lf_linkdate" value="{$value.linkdate}"> | 61 | <input type="hidden" name="edit_link" value="{$value.linkdate}"> |
59 | <input type="hidden" name="token" value="{$token}"><input type="hidden" name="delete_link"><input type="image" alt="Delete" src="images/delete_icon.png#" title="Delete" class="button_delete" onClick="return confirmDeleteLink();"></form> | 62 | <input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit"> |
63 | </form><br> | ||
64 | <form method="POST" class="buttoneditform"> | ||
65 | <input type="hidden" name="lf_linkdate" value="{$value.linkdate}"> | ||
66 | <input type="hidden" name="token" value="{$token}"> | ||
67 | <input type="hidden" name="delete_link"> | ||
68 | <input type="image" alt="Delete" src="images/delete_icon.png#" title="Delete" | ||
69 | class="button_delete" onClick="return confirmDeleteLink();"> | ||
70 | </form> | ||
60 | </div> | 71 | </div> |
61 | {/if} | 72 | {/if} |
62 | <span class="linktitle"><a href="{$redirector}{$value.url}">{$value.title}</a></span> | 73 | <span class="linktitle"><a href="{$redirector}{$value.url}">{$value.title}</a></span> |
@@ -98,5 +109,9 @@ | |||
98 | {include="page.footer"} | 109 | {include="page.footer"} |
99 | 110 | ||
100 | <script src="inc/awesomplete.min.js#"></script> | 111 | <script src="inc/awesomplete.min.js#"></script> |
112 | <script src="inc/awesomplete-multiple-tags.js#"></script> | ||
113 | <script> | ||
114 | awesompleteUniqueTag('#tagfilter_value'); | ||
115 | </script> | ||
101 | </body> | 116 | </body> |
102 | </html> | 117 | </html> |