From bf0b9c5e0df43050015e079d3f5cb4360b4cfa1f Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 6 Jul 2016 14:06:55 +0200 Subject: [PATCH] =?utf8?q?PartPicker:=20in=20Testseite=20auch=20einen=20vo?= =?utf8?q?rausgef=C3=BCllten=20Picker=20anzeigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/Part.pm | 2 +- templates/webpages/part/test_page.html | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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) %]
-- 2.20.1