X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fpart%2Ftest_page.html;h=0101db1e5756f3e2c14cc8da4259d4bf0d6c622c;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hp=202b5d3cddf51d94fe1f9e5e2b80a49691fab244;hpb=9be50d3a150fde70377e0f10bc25d10cd155557b;p=kivitendo-erp.git diff --git a/templates/webpages/part/test_page.html b/templates/webpages/part/test_page.html index 202b5d3cd..0101db1e5 100644 --- a/templates/webpages/part/test_page.html +++ b/templates/webpages/part/test_page.html @@ -1,13 +1,101 @@ [% USE L %] +[% USE P %] -

Waren Picker Testpage

+

Part Picker Testpage


Alle:
-[% L.part_picker('part_id') %]
+[% P.part.picker('part_id') %] text
Nur Waren:
-[% L.part_picker('part_id2', undef, type='part') %]
+[% P.part.picker('part_id2', undef, part_type='part') %]
Nur Dienstleistungen:
-[% L.part_picker('part_id3', undef, type='service') %]
+[% P.part.picker('part_id3', undef, part_type='service') %]
+Nur Erzeugnisse:
+[% P.part.picker('part_id4', undef, part_type='assembly') %]
Waren und Dienstleistungen:
-[% L.part_picker('part_id4', undef, type='part,service') %]
+[% P.part.picker('part_id5', undef, part_type='part,service') %]
+Artikel-Klassifizierung: Einkauf
+[% P.part.picker('part_id10', undef, classification_id='1') %]
+Artikel-Klassifizierung: Verkauf
+[% P.part.picker('part_id11', undef, classification_id='2') %]
+Artikel-Klassifizierung: Handelsware
+[% P.part.picker('part_id12', undef, classification_id='3') %]
+Artikel-Klassifizierung: Produktion
+[% P.part.picker('part_id13', undef, classification_id='4') %]
+Artikel-Klassifizierung: Eink.,Verk.,Prod.
+[% P.part.picker('part_id14', undef, classification_id='1,2,4') %]
+Artikel-Status: Aktiv (default)
+[% P.part.picker('part_id15') %]
+Artikel-Status: Aktiv (explizit)
+[% P.part.picker('part_id16', undef, status="active") %]
+Artikel-Status: Ungültig
+[% P.part.picker('part_id17', undef, status="obsolete") %]
+Artikel-Status: Alle
+[% P.part.picker('part_id18', undef, status="all") %]
+
+Pre-filled:
+[% P.part.picker('part_id6', pre_filled_part) %]
+Convertible unit 'Std': (only select parts with unit Tag/Std/Min)
+[% P.part.picker('part_id7', undef, convertible_unit='Std') %]
+
+With multi select popup
+[% P.part.picker('part_id8', undef, multiple=1) %]
+With multi select popup (only obsolete)
+[% P.part.picker('part_id9', undef, multiple=1, status='obsolete') %]
+
+All parts including make models of all vendors:
+[% P.part.picker('part_id21', undef, with_makemodel=1) %]
+All parts including make models of all vendors with multi select popup:
+[% P.part.picker('part_id22', undef, with_makemodel=1, multiple=1) %]
+All parts including customer partnumbers of all customers:
+[% P.part.picker('part_id23', undef, with_customer_partnumber=1) %]
+
+single select dialog for glass-popup-button; multi select with extra button (and limited to 5 results):
+[% P.part.picker('part_id31', undef, multiple=0, multiple_limit=5) %] +[% L.button_tag('$("#part_id31").data("part_picker").o.multiple=1; $("#part_id31").data("part_picker").open_dialog()', 'Add multiple items') %]
+ +

Styling

+ +In a span: +Leading text: [% P.part.picker('p1', undef, part_type='part,service') %] and text after with spacing
+Leading text:[% P.part.picker('p2', undef, part_type='part,service') %]and text after without spacing
+
Leading text: [% P.part.picker('p3', undef, part_type='part,service') %] and text after with spacing with div

+
Leading text:[% P.part.picker('p4', undef, part_type='part,service') %]and text after with spacing with div

+ +Picker + input next to each other: [% P.part.picker('p5', undef, part_type='part,service', width="100%") %] + +
[% P.part.picker('p6', undef, part_type='part,service', style="width:500px") %] 500px width
+
[% P.part.picker('p7', undef, part_type='part,service', style="width:200px") %] 200px width
+
[% P.part.picker('p8', undef, part_type='part,service', style="height:40px") %] 40px height
+ +[%# FOREACH i IN 1..50 %] +[%# P.part.picker('part_id_' _ i) %]
+[%# END %] + +

In tables

+ +

No classes:

+ + + + + + + + + + +
Part picker in table heading[% P.part.picker('p9', undef, part_type='part,service') %]
Part picker in table cell[% P.part.picker('p10', undef, part_type='part,service') %]
+ +

With classes:

+ + + + + + + + + + +
Part picker in table heading[% P.part.picker('p11', undef, part_type='part,service') %]
Part picker in table cell[% P.part.picker('p12', undef, part_type='part,service') %]