Revision 7e4d9e8e
Von Bernd Bleßmann vor 10 Monaten hinzugefügt
SL/Presenter/CustomerVendor.pm | ||
---|---|---|
|
||
my $show_details = delete $params{show_details} // 0;
|
||
|
||
# If there is no 'onClick' parameter, set it to 'this.select()',
|
||
# so that the user can type directly in the input field
|
||
# to search another customer/vendor.
|
||
if (!grep { m{onclick}i } keys %params) {
|
||
$params{onClick} = 'this.select()';
|
||
}
|
||
|
||
my $ret =
|
||
input_tag($name, (ref $value && $value->can('id') ? $value->id : ''), class => "@classes", type => 'hidden', id => $id,
|
||
'data-customer-vendor-picker-data' => JSON::to_json(\%params),
|
SL/Presenter/Part.pm | ||
---|---|---|
my @classes = $params{class} ? ($params{class}) : ();
|
||
push @classes, 'part_autocomplete';
|
||
|
||
# If there is no 'onClick' parameter, set it to 'this.select()',
|
||
# so that the user can type directly in the input field
|
||
# to search another part.
|
||
if (!grep { m{onclick}i } keys %params) {
|
||
$params{onClick} = 'this.select()';
|
||
}
|
||
|
||
my $ret =
|
||
input_tag($name, (ref $value && $value->can('id') ? $value->id : ''), class => "@classes", type => 'hidden', id => $id,
|
||
'data-part-picker-data' => JSON::to_json(\%params),
|
SL/Presenter/Project.pm | ||
---|---|---|
|
||
my %data_params = map { $_ => delete $params{$_} } grep { defined $params{$_} } qw(customer_id active valid description_style);
|
||
|
||
# If there is no 'onClick' parameter, set it to 'this.select()',
|
||
# so that the user can type directly in the input field
|
||
# to search another project.
|
||
if (!grep { m{onclick}i } keys %params) {
|
||
$params{onClick} = 'this.select()';
|
||
}
|
||
|
||
my $ret =
|
||
input_tag($name, (ref $value && $value->can('id') ? $value->id : ''), class => "@classes", type => 'hidden', id => $id,
|
||
'data-project-picker-data' => JSON::to_json(\%data_params),
|
Auch abrufbar als: Unified diff
weitere Picker: Zum direkten Lostippen bei Klick das Input-Feld selektieren.