Revision 497da0ff
Von Werner Hahn vor etwa 6 Jahren hinzugefügt
SL/Controller/TopQuickSearch.pm | ||
---|---|---|
71 | 71 |
); |
72 | 72 |
|
73 | 73 |
my %enabled_names; |
74 |
if ($user_prefs) { |
|
75 |
my $prefs_val = $user_prefs->get('quick_search_modules'); |
|
74 |
if (my $prefs_val = $user_prefs->get('quick_search_modules')) { |
|
76 | 75 |
my @quick_search_modules = split ',', $prefs_val; |
77 | 76 |
|
78 | 77 |
%enabled_names = map { |
templates/webpages/am/config.html | ||
---|---|---|
169 | 169 |
<div class="clearfix"> |
170 | 170 |
[% L.select_tag("quick_search_modules[]", |
171 | 171 |
ENABLED_QUICK_SEARCHMODULES, |
172 |
value_key = "name", |
|
173 |
title_key = "description_config", |
|
174 |
id = "quick_searches", |
|
175 |
multiple = 1, |
|
176 |
size = ENABLED_QUICK_SEARCHMODULES.size, |
|
177 |
default = DEFAULT_QUICK_SEARCHMODULES) %] |
|
172 |
value_key = "name", |
|
173 |
title_key = "description_config", |
|
174 |
id = "quick_searches", |
|
175 |
multiple = 1, |
|
176 |
with_empty = 1 |
|
177 |
size = ENABLED_QUICK_SEARCHMODULES.size, |
|
178 |
default = DEFAULT_QUICK_SEARCHMODULES) %] |
|
178 | 179 |
[% # L.multiselect2side("quick_searches", labelsx=LxERP.t8("All modules"), labeldx=LxERP.t8("Enabled modules")) %] |
179 | 180 |
</div> |
180 | 181 |
</td> |
Auch abrufbar als: Unified diff
TopQuickSearch: Syntax Logik bei den Userpreferences. with_empty bei der
Auswahl