From 92879200ffaa0361108cea1cb69b86db3f10e90b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 22 Mar 2016 18:00:17 +0100 Subject: [PATCH] TopQuickSearch: Doku --- SL/Controller/TopQuickSearch.pm | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/SL/Controller/TopQuickSearch.pm b/SL/Controller/TopQuickSearch.pm index b72174928..978eb95db 100644 --- a/SL/Controller/TopQuickSearch.pm +++ b/SL/Controller/TopQuickSearch.pm @@ -115,13 +115,14 @@ SL::Controller::TopQuickSearch - Framework for pluggable quicksearch fields in t =head1 SYNOPSIS -use SL::Controller::TopQuickSearch; -my $search = SL::Controller::TopQuickSearch->new; + use SL::Controller::TopQuickSearch; + my $search = SL::Controller::TopQuickSearch->new; + $::request->layout->add_javascripts('kivi.QuickSearch.js'); -# in layout -[%- FOREACH module = search.available_modules %] - -[%- END %] + # in template + [%- FOREACH module = search.enabled_modules %] + + [%- END %] =head1 DESCRIPTION @@ -167,6 +168,10 @@ redirect should occur. Each search must check rights and must not present a backdoor into data that the user should not see. +=item * + +By design the search must not try to guess C. + =back =head1 INTERFACE @@ -175,7 +180,8 @@ The full interface is described in L =head1 TODO - - toggling with cofiguration doesn't work yet + * user configuration + * searches for orders, customers, vendors =head1 BUGS -- 2.20.1