diff options
author | ArthurHoaro <arthur@hoa.ro> | 2015-12-27 10:08:20 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2016-01-06 19:53:04 +0100 |
commit | 822bffced8212e7f34bcb2ad063b31a78bd57bdb (patch) | |
tree | 04cd1efe9d2f015669a451fc7c853c23e38a44cb /tpl/linklist.html | |
parent | ba83317573a1477d731cbd3d974b601cf9afdba3 (diff) | |
download | Shaarli-822bffced8212e7f34bcb2ad063b31a78bd57bdb.tar.gz Shaarli-822bffced8212e7f34bcb2ad063b31a78bd57bdb.tar.zst Shaarli-822bffced8212e7f34bcb2ad063b31a78bd57bdb.zip |
Link filter refactoring
* introduce class LinkFilter to handle link filter operation (and lighten LinkDB).
* handle 'private only' in filtering.
* update template to prefill search fields with current search terms.
* coding style.
* unit test (mostly move from LinkDB to LinkFilter).
PS: preparation for #358 #315 and 'AND' search.
Diffstat (limited to 'tpl/linklist.html')
-rw-r--r-- | tpl/linklist.html | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/tpl/linklist.html b/tpl/linklist.html index 666748a7..09860baf 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"} |