Revision 92879200
Von Sven Schöling vor fast 9 Jahren hinzugefügt
SL/Controller/TopQuickSearch.pm | ||
---|---|---|
115 | 115 |
|
116 | 116 |
=head1 SYNOPSIS |
117 | 117 |
|
118 |
use SL::Controller::TopQuickSearch; |
|
119 |
my $search = SL::Controller::TopQuickSearch->new; |
|
118 |
use SL::Controller::TopQuickSearch; |
|
119 |
my $search = SL::Controller::TopQuickSearch->new; |
|
120 |
$::request->layout->add_javascripts('kivi.QuickSearch.js'); |
|
120 | 121 |
|
121 |
# in layout
|
|
122 |
[%- FOREACH module = search.available_modules %]
|
|
123 |
<input type='text' id='top-search-[% module.name %]'> |
|
124 |
[%- END %] |
|
122 |
# in template
|
|
123 |
[%- FOREACH module = search.enabled_modules %]
|
|
124 |
<input type='text' id='top-search-[% module.name %]'>
|
|
125 |
[%- END %]
|
|
125 | 126 |
|
126 | 127 |
=head1 DESCRIPTION |
127 | 128 |
|
... | ... | |
167 | 168 |
Each search must check rights and must not present a backdoor into data that |
168 | 169 |
the user should not see. |
169 | 170 |
|
171 |
=item * |
|
172 |
|
|
173 |
By design the search must not try to guess C<exact matches>. |
|
174 |
|
|
170 | 175 |
=back |
171 | 176 |
|
172 | 177 |
=head1 INTERFACE |
... | ... | |
175 | 180 |
|
176 | 181 |
=head1 TODO |
177 | 182 |
|
178 |
- toggling with cofiguration doesn't work yet |
|
183 |
* user configuration |
|
184 |
* searches for orders, customers, vendors |
|
179 | 185 |
|
180 | 186 |
=head1 BUGS |
181 | 187 |
|
Auch abrufbar als: Unified diff
TopQuickSearch: Doku