Revision e8983996
Von Bernd Bleßmann vor 3 Monaten hinzugefügt
SL/Controller/Part.pm | ||
---|---|---|
26 | 26 |
use SL::DB::Shop; |
27 | 27 |
use SL::Helper::Flash; |
28 | 28 |
use SL::Helper::PrintOptions; |
29 |
use SL::Helper::UserPreferences::PartPickerSearch; |
|
29 | 30 |
use SL::JSON; |
30 | 31 |
use SL::Locale::String qw(t8); |
31 | 32 |
use SL::MoreCommon qw(save_form); |
... | ... | |
742 | 743 |
$search_term ||= $self->models->filtered->laundered->{all_with_makemodel_substr_multi__ilike}; |
743 | 744 |
$search_term ||= $self->models->filtered->laundered->{all_with_customer_partnumber_substr_multi__ilike}; |
744 | 745 |
|
745 |
$_[0]->render('part/part_picker_search', { layout => 0 }, search_term => $search_term); |
|
746 |
my $all_as_list = SL::Helper::UserPreferences::PartPickerSearch->new()->get_all_as_list_default; |
|
747 |
|
|
748 |
$_[0]->render('part/part_picker_search', { layout => 0 }, search_term => $search_term, all_as_list => $all_as_list); |
|
746 | 749 |
} |
747 | 750 |
|
748 | 751 |
sub action_part_picker_result { |
templates/design40_webpages/part/part_picker_search.html | ||
---|---|---|
6 | 6 |
<div class="select-item control-panel"> |
7 | 7 |
[% L.hidden_tag('part_picker_real_id', FORM.real_id) %] |
8 | 8 |
[% LxERP.t8("Filter") %]: [% L.input_tag('part_picker_filter', search_term, class='part_picker_filter') %] |
9 |
[% L.checkbox_tag('no_paginate', checked=FORM.no_paginate, id='no_paginate', for_submit=1, label=LxERP.t8('All as list')) %] |
|
9 |
[% L.checkbox_tag('no_paginate', checked=FORM.no_paginate, id='no_paginate', checked=all_as_list, for_submit=1, label=LxERP.t8('All as list')) %]
|
|
10 | 10 |
</div> |
11 | 11 |
|
12 | 12 |
<div id="part_picker_result"></div> |
templates/webpages/part/part_picker_search.html | ||
---|---|---|
9 | 9 |
[% LxERP.t8("Filter") %]: [% L.input_tag('part_picker_filter', search_term, class='part_picker_filter') %] |
10 | 10 |
|
11 | 11 |
<div class='float-right'> |
12 |
[% L.checkbox_tag('no_paginate', checked=FORM.no_paginate, id='no_paginate', for_submit=1, label=LxERP.t8('All as list')) %] |
|
12 |
[% L.checkbox_tag('no_paginate', checked=FORM.no_paginate, id='no_paginate', checked=all_as_list, for_submit=1, label=LxERP.t8('All as list')) %]
|
|
13 | 13 |
</div> |
14 | 14 |
|
15 | 15 |
<div style='clear:both'></div> |
Auch abrufbar als: Unified diff
Part-Picker Such-Dialog: Defaultwert für "Alle als Liste" berücksichtigen