diff options
author | Arthur <arthur@hoa.ro> | 2016-01-06 19:57:42 +0100 |
---|---|---|
committer | Arthur <arthur@hoa.ro> | 2016-01-06 19:57:42 +0100 |
commit | 88c15abb2a2b24f05ca926c0ddbdec18a407e47d (patch) | |
tree | 90f783c69dc51866dc01dc34e740023bd1e0c4ec /tpl | |
parent | a327d891b3a2762bb6aabba3a6572b077f6003c0 (diff) | |
parent | eefb636cea7acef9ddfd02a90749820f5fafc9f6 (diff) | |
download | Shaarli-88c15abb2a2b24f05ca926c0ddbdec18a407e47d.tar.gz Shaarli-88c15abb2a2b24f05ca926c0ddbdec18a407e47d.tar.zst Shaarli-88c15abb2a2b24f05ca926c0ddbdec18a407e47d.zip |
Merge pull request #424 from ArthurHoaro/search
Link filter refactoring
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/linklist.html | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/tpl/linklist.html b/tpl/linklist.html index 666748a7..6ce59dd8 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html | |||
@@ -7,15 +7,24 @@ | |||
7 | <body> | 7 | <body> |
8 | <div id="pageheader"> | 8 | <div id="pageheader"> |
9 | {include="page.header"} | 9 | {include="page.header"} |
10 | |||
10 | <div id="headerform" class="search"> | 11 | <div id="headerform" class="search"> |
11 | <form method="GET" class="searchform" name="searchform"> | 12 | <form method="GET" class="searchform" name="searchform"> |
12 | <input type="text" tabindex="1" id="searchform_value" name="searchterm" placeholder="Search text" value=""> | 13 | <input type="text" tabindex="1" id="searchform_value" name="searchterm" placeholder="Search text" |
14 | {if="!empty($search_crits) && $search_type=='fulltext'"} | ||
15 | value="{$search_crits}" | ||
16 | {/if} | ||
17 | > | ||
13 | <input type="submit" value="Search" class="bigbutton"> | 18 | <input type="submit" value="Search" class="bigbutton"> |
14 | </form> | 19 | </form> |
15 | <form method="GET" class="tagfilter" name="tagfilter"> | 20 | <form method="GET" class="tagfilter" name="tagfilter"> |
16 | <input type="text" tabindex="2" name="searchtags" id="tagfilter_value" placeholder="Filter by tag" value="" | 21 | <input type="text" tabindex="2" name="searchtags" id="tagfilter_value" placeholder="Filter by tag" |
17 | autocomplete="off" class="awesomplete" data-multiple data-minChars="1" | 22 | {if="!empty($search_crits) && $search_type=='tags'"} |
18 | data-list="{loop="$tags"}{$key}, {/loop}"> | 23 | value="{function="implode(' ', $search_crits)"}" |
24 | {/if} | ||
25 | autocomplete="off" class="awesomplete" data-multiple data-minChars="1" | ||
26 | data-list="{loop="$tags"}{$key}, {/loop}"> | ||
27 | > | ||
19 | <input type="submit" value="Search" class="bigbutton"> | 28 | <input type="submit" value="Search" class="bigbutton"> |
20 | </form> | 29 | </form> |
21 | {loop="$plugins_header.fields_toolbar"} | 30 | {loop="$plugins_header.fields_toolbar"} |
@@ -44,7 +53,7 @@ | |||
44 | <div id="searchcriteria">{$result_count} results for tags <i> | 53 | <div id="searchcriteria">{$result_count} results for tags <i> |
45 | {loop="search_crits"} | 54 | {loop="search_crits"} |
46 | <span class="linktag" title="Remove tag"> | 55 | <span class="linktag" title="Remove tag"> |
47 | <a href="?removetag={$value}">{$value} <span class="remove">x</span></a> | 56 | <a href="?removetag={function="urlencode($value)"}">{$value} <span class="remove">x</span></a> |
48 | </span> | 57 | </span> |
49 | {/loop}</i></div> | 58 | {/loop}</i></div> |
50 | {/if} | 59 | {/if} |