Revision 9e02b1f2
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
templates/webpages/oe/search.html | ||
---|---|---|
1 | 1 |
[%- USE HTML %] |
2 | 2 |
[%- USE T8 %] |
3 | 3 |
[%- USE LxERP %] |
4 |
[%- USE L %] |
|
4 |
[%- USE L %][%- USE P -%]
|
|
5 | 5 |
<h1>[% HTML.escape(title) %]</h1> |
6 | 6 |
|
7 | 7 |
[%- SET vclabel = vc == 'customer' ? LxERP.t8('Customer') : LxERP.t8('Vendor') %] |
8 | 8 |
[%- SET vcnumberlabel = vc == 'customer' ? LxERP.t8('Customer Number') : LxERP.t8('Vendor Number') %] |
9 | 9 |
[%- SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %] |
10 |
[%- SET vcdefault = 'old' _ vc %] |
|
11 |
[%- SET style="width: 250px" %] |
|
10 | 12 |
|
11 | 13 |
<form method="post" action="oe.pl"> |
12 | 14 |
|
... | ... | |
16 | 18 |
<table> |
17 | 19 |
<tr> |
18 | 20 |
<th align="right">[% HTML.escape(vclabel) %]</th> |
19 |
<td colspan="3"> |
|
20 |
[%- INCLUDE 'generic/multibox.html' |
|
21 |
name = vc, |
|
22 |
default = vc == 'customer' ? oldcustomer : oldvendor, |
|
23 |
style = 'width: 250px', |
|
24 |
DATA = ALL_VC, |
|
25 |
id_sub = 'vc_keys', |
|
26 |
label_key = 'name', |
|
27 |
select = vc_select, |
|
28 |
limit = MYCONFIG.vclimit, |
|
29 |
show_empty = 1, |
|
30 |
allow_textbox = 1, |
|
31 |
class = 'initial_focus', |
|
32 |
-%] |
|
33 |
</td> |
|
21 |
<td colspan="3">[% L.input_tag(vc, $vcdefault, style=style, class="initial_focus") %]</td> |
|
34 | 22 |
</tr> |
35 | 23 |
<tr> |
36 | 24 |
<th align="right" nowrap>[% 'Contact Person' | $T8 %]</th> |
... | ... | |
76 | 64 |
<td><input name="parts_description" style="width: 250px"></td> |
77 | 65 |
</tr> |
78 | 66 |
<tr> |
79 |
<th align="right">[% 'Project Number' | $T8 %]</th> |
|
80 |
<td> |
|
81 |
[%- INCLUDE 'generic/multibox.html' |
|
82 |
name = MYCONFIG.vclimit < ALL_PROJECTS.size ? 'projectnumber' : 'project_id', |
|
83 |
style = "width: 250px", |
|
84 |
DATA = ALL_PROJECTS, |
|
85 |
id_key = 'id', |
|
86 |
label_key = 'projectnumber', |
|
87 |
limit = MYCONFIG.vclimit, |
|
88 |
show_empty = 1, |
|
89 |
allow_textbox = 1, |
|
90 |
-%] |
|
91 |
</td> |
|
67 |
<th align="right">[% 'Project' | $T8 %]</th> |
|
68 |
<td>[% P.project_picker("project_id", '', style=style) %]</td> |
|
92 | 69 |
|
93 | 70 |
<th align="right">[% 'Part Number' | $T8 %]</th> |
94 | 71 |
<td><input name="parts_partnumber" style="width: 250px"></td> |
Auch abrufbar als: Unified diff
Angebots/Auftragssuche: keine Multibox verwenden