Revision 8b967d77
Von Sven Schöling vor mehr als 8 Jahren hinzugefügt
css/kivitendo/main.css | ||
---|---|---|
392 | 392 |
} |
393 | 393 |
|
394 | 394 |
.part_picker { |
395 |
padding-right: 16px; |
|
396 | 395 |
} |
397 | 396 |
.chart_picker { |
398 | 397 |
padding-right: 16px; |
... | ... | |
430 | 429 |
float:left; |
431 | 430 |
width: 350px; |
432 | 431 |
} |
432 |
span.ppp_popup_button { |
|
433 |
position: absolute; |
|
434 |
margin-left: -24px; |
|
435 |
margin-top: 5px; |
|
436 |
width: 20px; |
|
437 |
height: 20px; |
|
438 |
cursor: pointer; |
|
439 |
background: url("../../image/search.svg") no-repeat center right; |
|
440 |
background-size: contain; |
|
441 |
} |
|
442 |
span.part_picker input { |
|
443 |
padding-right: 20px; |
|
444 |
box-sizing: padding-box; |
|
445 |
-moz-box-sizing: padding-box; |
|
446 |
-webkit-box-sizing: padding-box; |
|
447 |
} |
|
448 |
span.part_picker { |
|
449 |
white-space: nowrap; |
|
450 |
} |
|
433 | 451 |
/* div.cpc_block { */ |
434 | 452 |
/* overflow:hidden; */ |
435 | 453 |
/* float:left; */ |
css/lx-office-erp/main.css | ||
---|---|---|
25 | 25 |
|
26 | 26 |
select { |
27 | 27 |
-moz-appearance: none; |
28 |
-webkit-appearance: none; |
|
29 |
-o-appearance: none; |
|
28 | 30 |
appearance : none; |
29 | 31 |
background: white url('../../image/select-down.png') no-repeat scroll right center; |
30 | 32 |
padding: 0 14px 0 0; |
... | ... | |
389 | 391 |
} |
390 | 392 |
|
391 | 393 |
.part_picker { |
392 |
padding-right: 16px; |
|
393 | 394 |
} |
394 | 395 |
.chart_picker { |
395 | 396 |
padding-right: 16px; |
... | ... | |
425 | 426 |
float:left; |
426 | 427 |
width: 350px; |
427 | 428 |
} |
429 |
span.ppp_popup_button { |
|
430 |
display: inline-block; |
|
431 |
position: relative; |
|
432 |
margin-left: -18px; |
|
433 |
margin-top: 3px; |
|
434 |
height: 16px; |
|
435 |
width: 16px; |
|
436 |
cursor: pointer; |
|
437 |
} |
|
438 |
|
|
439 |
td span.ppp_popup_button, |
|
440 |
th span.ppp_popup_button { |
|
441 |
height: 9px; |
|
442 |
width: 9px; |
|
443 |
margin-left: -13px; |
|
444 |
} |
|
445 |
span.part_picker input { |
|
446 |
padding-right: 20px; |
|
447 |
background: white url("../../image/search.svg") no-repeat center right; |
|
448 |
background-size: contain; |
|
449 |
box-sizing: padding-box; |
|
450 |
-moz-box-sizing: padding-box; |
|
451 |
-webkit-box-sizing: padding-box; |
|
452 |
} |
|
453 |
|
|
454 |
td span.part_picker input, |
|
455 |
th span.part_picker input { |
|
456 |
padding-right: 15px; |
|
457 |
} |
|
458 |
|
|
459 |
span.part_picker { |
|
460 |
/* white-space: nowrap;*/ |
|
461 |
} |
|
462 |
|
|
428 | 463 |
div.ppp_block span.ppp_block_number, |
429 | 464 |
div.cpc_block span.cpc_block_number |
430 | 465 |
{ |
... | ... | |
481 | 516 |
background-color:#FF0000; |
482 | 517 |
border:none; |
483 | 518 |
} |
519 |
|
image/search.svg | ||
---|---|---|
1 |
<svg xmlns="http://www.w3.org/2000/svg" width="1000px" height="1000px" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1000 1000" preserveAspectRatio="xMidYMid meet" zoomAndPan="disable" > |
|
2 |
<rect id="svgEditorBackground" x="0" y="0" width="1000" height="1000" style="fill: none; stroke: none;"/> |
|
3 |
<circle id="e2_circle" cx="600" cy="400" style="stroke-width: 30px; vector-effect: non-scaling-stroke;" stroke="grey" r="250" fill="grey"/> |
|
4 |
<circle id="e3_circle" cx="600" cy="400" style="stroke-width: 30px; vector-effect: non-scaling-stroke;" stroke="lightgrey" r="190" fill="white"/> |
|
5 |
<rect x="-250" y="475" style="stroke-width: 1px; vector-effect: non-scaling-stroke;" stroke="black" id="e4_rectangle" width="200" height="50" fill="grey" transform="matrix(1, -1, 1, 1, 0, 0)"/> |
|
6 |
</svg> |
js/autocomplete_part.js | ||
---|---|---|
237 | 237 |
}); |
238 | 238 |
|
239 | 239 |
// now add a picker div after the original input |
240 |
var pcont = $('<span>').addClass('position-absolute'); |
|
241 |
var picker = $('<div>'); |
|
242 |
$dummy.after(pcont); |
|
243 |
pcont.append(picker); |
|
244 |
picker.addClass('icon16 search').click(open_dialog); |
|
240 |
var popup_button = $('<span>').addClass('ppp_popup_button'); |
|
241 |
$dummy.after(popup_button); |
|
242 |
popup_button.click(open_dialog); |
|
245 | 243 |
|
246 | 244 |
var pp = { |
247 | 245 |
real: function() { return $real }, |
templates/webpages/part/test_page.html | ||
---|---|---|
1 | 1 |
[% USE L %] |
2 | 2 |
|
3 |
<h1>Waren Picker Testpage</h1>
|
|
3 |
<h1>Part Picker Testpage</h1>
|
|
4 | 4 |
|
5 | 5 |
<br> |
6 | 6 |
Alle: <br> |
... | ... | |
11 | 11 |
[% L.part_picker('part_id3', undef, type='service') %]<br> |
12 | 12 |
Waren und Dienstleistungen: <br> |
13 | 13 |
[% L.part_picker('part_id4', undef, type='part,service') %]<br> |
14 |
|
|
15 | 14 |
Pre-filled:<br> |
16 |
[% L.part_picker('part_id', pre_filled_part) %]<br> |
|
15 |
[% L.part_picker('part_id5', pre_filled_part) %]<br> |
|
16 |
|
|
17 |
<h2>Styling</h2> |
|
18 |
|
|
19 |
Ina span: |
|
20 |
<span>Leading text: [% L.part_picker('p1', undef, type='part,service') %] and text after with spacing</span><br> |
|
21 |
<span>Leading text:[% L.part_picker('p2', undef, type='part,service') %]and text after without spacing</span><br> |
|
22 |
<div>Leading text: [% L.part_picker('p3', undef, type='part,service') %] and text after with spacing with div</div><br> |
|
23 |
<div>Leading text:[% L.part_picker('p4', undef, type='part,service') %]and text after with spacing with div</div><br> |
|
24 |
|
|
25 |
<span>Picker + input next to each other: [% L.part_picker('p5', undef, type='part,service', width="100%") %]<input type=text></span> |
|
26 |
|
|
27 |
<div>[% L.part_picker('p6', undef, type='part,service', style="width:500px") %] 500px width</div> |
|
28 |
<div>[% L.part_picker('p7', undef, type='part,service', style="width:200px") %] 200px width</div> |
|
29 |
<div>[% L.part_picker('p8', undef, type='part,service', style="height:40px") %] 40px height</div> |
|
17 | 30 |
|
18 | 31 |
[%# FOREACH i IN 1..50 %] |
19 | 32 |
[%# L.part_picker('part_id_' _ i) %] <br> |
20 | 33 |
[%# END %] |
34 |
|
|
35 |
<h2>In tables</h2> |
|
36 |
|
|
37 |
<p>No classes:</p> |
|
38 |
|
|
39 |
<table> |
|
40 |
<tr> |
|
41 |
<th>Part picker in table heading</th> |
|
42 |
<th>[% L.part_picker('p9', undef, type='part,service') %]</th> |
|
43 |
</tr> |
|
44 |
<tr> |
|
45 |
<td>Part picker in table cell</td> |
|
46 |
<td>[% L.part_picker('p10', undef, type='part,service') %]</td> |
|
47 |
</tr> |
|
48 |
</table> |
|
49 |
|
|
50 |
<p>With classes:</p> |
|
51 |
|
|
52 |
<table> |
|
53 |
<tr class=listheading> |
|
54 |
<th>Part picker in table heading</th> |
|
55 |
<th>[% L.part_picker('p11', undef, type='part,service') %]</th> |
|
56 |
</tr> |
|
57 |
<tr class=listrow> |
|
58 |
<td>Part picker in table cell</td> |
|
59 |
<td>[% L.part_picker('p12', undef, type='part,service') %]</td> |
|
60 |
</tr> |
|
61 |
</table> |
Auch abrufbar als: Unified diff
Reapply "Partpicker styling"
3.4.1 ist durch, also wieder rein, auf dass es bis zum nächsten Release
gefixt wird.