diff options
author | VirtualTam <virtualtam+github@flibidi.net> | 2017-08-03 16:27:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-03 16:27:59 +0200 |
commit | f09e1e318e0b1c72aa659c20b715be508009175f (patch) | |
tree | 68d84f2583d5aa799128e3ec418e20eda4ba2c5f /tpl/default/linklist.html | |
parent | f5568f87b1a23b36f8d3623aacfbb810d1d60dc0 (diff) | |
parent | f210d94f716acd86fd22c9651f591a778490e8a9 (diff) | |
download | Shaarli-f09e1e318e0b1c72aa659c20b715be508009175f.tar.gz Shaarli-f09e1e318e0b1c72aa659c20b715be508009175f.tar.zst Shaarli-f09e1e318e0b1c72aa659c20b715be508009175f.zip |
Merge pull request #889 from Lucas-C/master
Using only one form in linklist.html - fix #885
Diffstat (limited to 'tpl/default/linklist.html')
-rw-r--r-- | tpl/default/linklist.html | 50 |
1 files changed, 21 insertions, 29 deletions
diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index 2568a5d6..685821e3 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html | |||
@@ -19,30 +19,21 @@ | |||
19 | 19 | ||
20 | <div id="search-linklist"> | 20 | <div id="search-linklist"> |
21 | 21 | ||
22 | <div class="pure-g"> | 22 | <form method="GET" class="pure-form searchform" name="searchform"> |
23 | <div class="pure-u-1 pure-u-lg-1-2"> | 23 | <input type="text" tabindex="1" name="searchterm" class="searchterm" placeholder="{'Search text'|t}" |
24 | <form method="GET" class="searchform" name="searchform"> | 24 | {if="!empty($search_term)"} |
25 | <input type="text" tabindex="1" name="searchterm" placeholder="{'Search text'|t}" | 25 | value="{$search_term}" |
26 | {if="!empty($search_term)"} | 26 | {/if} |
27 | value="{$search_term}" | 27 | > |
28 | {/if} | 28 | <input type="text" tabindex="2" name="searchtags" class="searchtags" placeholder="{'Filter by tag'|t}" |
29 | > | 29 | {if="!empty($search_tags)"} |
30 | <button type="submit" class="search-button"><i class="fa fa-search"></i></button> | 30 | value="{$search_tags}" |
31 | </form> | 31 | {/if} |
32 | </div> | 32 | autocomplete="off" data-multiple data-autofirst data-minChars="1" |
33 | <div class="pure-u-1 pure-u-lg-1-2"> | 33 | data-list="{loop="$tags"}{$key}, {/loop}" |
34 | <form method="GET" class="tagfilter" name="tagfilter"> | 34 | > |
35 | <input type="text" tabindex="2" name="searchtags" placeholder="{'Filter by tag'|t}" | 35 | <button type="submit" class="search-button"><i class="fa fa-search"></i></button> |
36 | {if="!empty($search_tags)"} | 36 | </form> |
37 | value="{$search_tags}" | ||
38 | {/if} | ||
39 | autocomplete="off" data-multiple data-autofirst data-minChars="1" | ||
40 | data-list="{loop="$tags"}{$key}, {/loop}" | ||
41 | > | ||
42 | <button type="submit" class="search-button"><i class="fa fa-search"></i></button> | ||
43 | </form> | ||
44 | </div> | ||
45 | </div> | ||
46 | </div> | 37 | </div> |
47 | 38 | ||
48 | {loop="$plugins_header.fields_toolbar"} | 39 | {loop="$plugins_header.fields_toolbar"} |
@@ -91,7 +82,7 @@ | |||
91 | <div id="searchcriteria">{'Nothing found.'|t}</div> | 82 | <div id="searchcriteria">{'Nothing found.'|t}</div> |
92 | </div> | 83 | </div> |
93 | </div> | 84 | </div> |
94 | {elseif="!empty($search_term) or $search_tags !== '' or !empty($visibility)"} | 85 | {elseif="!empty($search_term) or $search_tags !== '' or !empty($visibility) or $untaggedonly"} |
95 | <div class="pure-g pure-alert pure-alert-success search-result"> | 86 | <div class="pure-g pure-alert pure-alert-success search-result"> |
96 | <div class="pure-u-2-24"></div> | 87 | <div class="pure-u-2-24"></div> |
97 | <div class="pure-u-20-24"> | 88 | <div class="pure-u-20-24"> |
@@ -107,10 +98,6 @@ | |||
107 | <a href="?removetag={function="urlencode($value)"}">{$value}<span class="remove"><i class="fa fa-times"></i></span></a> | 98 | <a href="?removetag={function="urlencode($value)"}">{$value}<span class="remove"><i class="fa fa-times"></i></span></a> |
108 | </span> | 99 | </span> |
109 | {/loop} | 100 | {/loop} |
110 | {elseif="$search_tags === false"} | ||
111 | <span class="label label-tag" title="{'Remove tag'|t}"> | ||
112 | <a href="?">{'untagged'|t}<span class="remove"><i class="fa fa-times"></i></span></a> | ||
113 | </span> | ||
114 | {/if} | 101 | {/if} |
115 | {if="!empty($visibility)"} | 102 | {if="!empty($visibility)"} |
116 | {'with status'|t} | 103 | {'with status'|t} |
@@ -118,6 +105,11 @@ | |||
118 | {$visibility|t} | 105 | {$visibility|t} |
119 | </span> | 106 | </span> |
120 | {/if} | 107 | {/if} |
108 | {if="$untaggedonly"} | ||
109 | <span class="label label-private"> | ||
110 | {'without any tag'|t} | ||
111 | </span> | ||
112 | {/if} | ||
121 | </div> | 113 | </div> |
122 | </div> | 114 | </div> |
123 | {/if} | 115 | {/if} |