From: Moritz Bunkus Date: Wed, 6 Jul 2016 12:06:55 +0000 (+0200) Subject: PartPicker: in Testseite auch einen vorausgefüllten Picker anzeigen X-Git-Tag: release-3.5.4~2249 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=bf0b9c5e0df43050015e079d3f5cb4360b4cfa1f;p=kivitendo-erp.git PartPicker: in Testseite auch einen vorausgefüllten Picker anzeigen --- diff --git a/SL/Controller/Part.pm b/SL/Controller/Part.pm index bd5fe6a30..4050ce72a 100644 --- a/SL/Controller/Part.pm +++ b/SL/Controller/Part.pm @@ -58,7 +58,7 @@ sub action_ajax_autocomplete { } sub action_test_page { - $_[0]->render('part/test_page'); + $_[0]->render('part/test_page', pre_filled_part => SL::DB::Manager::Part->get_first); } sub action_part_picker_search { diff --git a/templates/webpages/part/test_page.html b/templates/webpages/part/test_page.html index 61aa10593..33bea4e35 100644 --- a/templates/webpages/part/test_page.html +++ b/templates/webpages/part/test_page.html @@ -12,6 +12,8 @@ Nur Dienstleistungen:
Waren und Dienstleistungen:
[% L.part_picker('part_id4', undef, type='part,service') %]
+Pre-filled:
+[% L.part_picker('part_id', pre_filled_part) %]
[%# FOREACH i IN 1..50 %] [%# L.part_picker('part_id_' _ i) %]