diff options
Diffstat (limited to 'tpl/default/linklist.html')
-rw-r--r-- | tpl/default/linklist.html | 51 |
1 files changed, 25 insertions, 26 deletions
diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index 57ef4567..685821e3 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html | |||
@@ -15,32 +15,25 @@ | |||
15 | {/if} | 15 | {/if} |
16 | </div> | 16 | </div> |
17 | 17 | ||
18 | <input type="hidden" name="token" value="{$token}"> | ||
19 | |||
18 | <div id="search-linklist"> | 20 | <div id="search-linklist"> |
19 | 21 | ||
20 | <div class="pure-g"> | 22 | <form method="GET" class="pure-form searchform" name="searchform"> |
21 | <div class="pure-u-1 pure-u-lg-1-2"> | 23 | <input type="text" tabindex="1" name="searchterm" class="searchterm" placeholder="{'Search text'|t}" |
22 | <form method="GET" class="searchform" name="searchform"> | 24 | {if="!empty($search_term)"} |
23 | <input type="text" tabindex="1" name="searchterm" placeholder="{'Search text'|t}" | 25 | value="{$search_term}" |
24 | {if="!empty($search_term)"} | 26 | {/if} |
25 | value="{$search_term}" | 27 | > |
26 | {/if} | 28 | <input type="text" tabindex="2" name="searchtags" class="searchtags" placeholder="{'Filter by tag'|t}" |
27 | > | 29 | {if="!empty($search_tags)"} |
28 | <button type="submit" class="search-button"><i class="fa fa-search"></i></button> | 30 | value="{$search_tags}" |
29 | </form> | 31 | {/if} |
30 | </div> | 32 | autocomplete="off" data-multiple data-autofirst data-minChars="1" |
31 | <div class="pure-u-1 pure-u-lg-1-2"> | 33 | data-list="{loop="$tags"}{$key}, {/loop}" |
32 | <form method="GET" class="tagfilter" name="tagfilter"> | 34 | > |
33 | <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> |
34 | {if="!empty($search_tags)"} | 36 | </form> |
35 | value="{$search_tags}" | ||
36 | {/if} | ||
37 | autocomplete="off" data-multiple data-autofirst data-minChars="1" | ||
38 | data-list="{loop="$tags"}{$key}, {/loop}" | ||
39 | > | ||
40 | <button type="submit" class="search-button"><i class="fa fa-search"></i></button> | ||
41 | </form> | ||
42 | </div> | ||
43 | </div> | ||
44 | </div> | 37 | </div> |
45 | 38 | ||
46 | {loop="$plugins_header.fields_toolbar"} | 39 | {loop="$plugins_header.fields_toolbar"} |
@@ -89,7 +82,7 @@ | |||
89 | <div id="searchcriteria">{'Nothing found.'|t}</div> | 82 | <div id="searchcriteria">{'Nothing found.'|t}</div> |
90 | </div> | 83 | </div> |
91 | </div> | 84 | </div> |
92 | {elseif="!empty($search_term) or !empty($search_tags) or !empty($visibility)"} | 85 | {elseif="!empty($search_term) or $search_tags !== '' or !empty($visibility) or $untaggedonly"} |
93 | <div class="pure-g pure-alert pure-alert-success search-result"> | 86 | <div class="pure-g pure-alert pure-alert-success search-result"> |
94 | <div class="pure-u-2-24"></div> | 87 | <div class="pure-u-2-24"></div> |
95 | <div class="pure-u-20-24"> | 88 | <div class="pure-u-20-24"> |
@@ -112,6 +105,11 @@ | |||
112 | {$visibility|t} | 105 | {$visibility|t} |
113 | </span> | 106 | </span> |
114 | {/if} | 107 | {/if} |
108 | {if="$untaggedonly"} | ||
109 | <span class="label label-private"> | ||
110 | {'without any tag'|t} | ||
111 | </span> | ||
112 | {/if} | ||
115 | </div> | 113 | </div> |
116 | </div> | 114 | </div> |
117 | {/if} | 115 | {/if} |
@@ -121,7 +119,7 @@ | |||
121 | <div class="pure-u-lg-20-24 pure-u-22-24"> | 119 | <div class="pure-u-lg-20-24 pure-u-22-24"> |
122 | {loop="links"} | 120 | {loop="links"} |
123 | <div class="anchor" id="{$value.shorturl}"></div> | 121 | <div class="anchor" id="{$value.shorturl}"></div> |
124 | <div class="linklist-item{if="$value.class"} {$value.class}{/if}"> | 122 | <div class="linklist-item linklist-item{if="$value.class"} {$value.class}{/if}" data-id="{$value.id}"> |
125 | 123 | ||
126 | <div class="linklist-item-title"> | 124 | <div class="linklist-item-title"> |
127 | {if="isLoggedIn()"} | 125 | {if="isLoggedIn()"} |
@@ -129,6 +127,7 @@ | |||
129 | {if="$value.private"} | 127 | {if="$value.private"} |
130 | <span class="label label-private">{'Private'|t}</span> | 128 | <span class="label label-private">{'Private'|t}</span> |
131 | {/if} | 129 | {/if} |
130 | <input type="checkbox" class="delete-checkbox" value="{$value.id}"> | ||
132 | <!-- FIXME! JS translation --> | 131 | <!-- FIXME! JS translation --> |
133 | <a href="?edit_link={$value.id}" title="{'Edit'|t}"><i class="fa fa-pencil-square-o edit-link"></i></a> | 132 | <a href="?edit_link={$value.id}" title="{'Edit'|t}"><i class="fa fa-pencil-square-o edit-link"></i></a> |
134 | <a href="#" title="{'Fold'|t}" class="fold-button"><i class="fa fa-chevron-up"></i></a> | 133 | <a href="#" title="{'Fold'|t}" class="fold-button"><i class="fa fa-chevron-up"></i></a> |