Revision f16c5520
Von Sven Schöling vor mehr als 10 Jahren hinzugefügt
SL/Template/Plugin/L.pm | ||
---|---|---|
67 | 67 |
sub truncate { return _call_presenter('truncate', @_); } |
68 | 68 |
sub simple_format { return _call_presenter('simple_format', @_); } |
69 | 69 |
sub part_picker { return _call_presenter('part_picker', @_); } |
70 |
sub customer_vendor_picker { return _call_presenter('customer_vendor_picker', @_); } |
|
70 | 71 |
|
71 | 72 |
sub _set_id_attribute { |
72 | 73 |
my ($attributes, $name, $unique) = @_; |
... | ... | |
241 | 242 |
); |
242 | 243 |
} |
243 | 244 |
|
244 |
sub customer_picker { |
|
245 |
my ($self, $name, $value, %params) = _hashify(3, @_); |
|
246 |
my $name_e = _H($name); |
|
247 |
|
|
248 |
$::request->{layout}->add_javascripts('autocomplete_customer.js'); |
|
249 |
|
|
250 |
$self->hidden_tag($name, (ref $value && $value->can('id') ? $value->id : ''), class => 'customer_autocomplete') . |
|
251 |
$self->input_tag('', (ref $value && $value->can('name')) ? $value->name : '', id => $self->name_to_id("$name_e\_name"), %params); |
|
252 |
} |
|
253 |
|
|
254 | 245 |
# simple version with select_tag |
255 | 246 |
sub vendor_selector { |
256 | 247 |
my ($self, $name, $value, %params) = _hashify(3, @_); |
Auch abrufbar als: Unified diff
CustomerVendor: Picker nach Art von PartPicker
- reinit_widgets fähig
- Tab und Enter atomar
- unterstützt onChange und set_item:CustomerVendorPicker trigger
- unterstützt fat_set_item