Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision df33875f

Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt

  • ID df33875fc30c508b60af9421d0061e66cdc0d55a
  • Vorgänger 880a2e9f
  • Nachfolger 35d63a9f

Partpicker: Filtermöglichkeit nach konvertierbaren Einheiten ('convertible_unit')

Unterschiede anzeigen:

SL/Presenter/Part.pm
15 15

  
16 16
  my $ret =
17 17
    $self->input_tag($name, (ref $value && $value->can('id') ? $value->id : ''), class => 'part_autocomplete', type => 'hidden', id => $id) .
18
    join('', map { $params{$_} ? $self->input_tag("", delete $params{$_}, id => "${id}_${_}", type => 'hidden') : '' } qw(column type unit)) .
18
    join('', map { $params{$_} ? $self->input_tag("", delete $params{$_}, id => "${id}_${_}", type => 'hidden') : '' } qw(column type unit convertible_unit)) .
19 19
    $self->input_tag("", (ref $value && $value->can('description')) ? $value->description : '', id => "${id}_name", %params);
20 20

  
21 21
  $self->html_tag('span', $ret, class => 'part_picker');
......
63 63
for autocompletion. You may comma separate multiple units as in
64 64
C<h,min>.
65 65

  
66
If C<%params> contains C<convertible_unit> only parts with a unit
67
that's convertible to unit will be used for autocompletion.
68

  
66 69
Obsolete parts will by default not displayed for selection. However they are
67 70
accepted as default values and can persist during updates. As with other
68 71
selectors though, they are not selectable once overridden.

Auch abrufbar als: Unified diff