Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c20fe7f4

Von Bernd Bleßmann vor 25 Tagen hinzugefügt

  • ID c20fe7f4f6552e4359d26bfe0c382af7644ceca6
  • Vorgänger 99399a6c
  • Nachfolger fbf7abba

Presenter Lagerplatz: POD-Update

Unterschiede anzeigen:

SL/Presenter/Warehouse.pm
111 111

  
112 112
Returns a rendered version of select tags surrounded by a div tag for selecting
113 113
a warehouse and a bin. The surrounding div tag gets the name C<$name>.
114
The tags get the class attributes C<wh-bin-select-presenter-div>,
115
C<wh-bin-select-presenter-wh> and C<wh-bin-select-presenter-bin>.
116

  
117
By default, the two select tags are separated by a linebreak, but see the
118
parameter C<one_row>.
114 119

  
115 120
The presenter takes care of updating the bin selection (via js) when the
116 121
warehose selection is changed (see also
117 122
L<SL::Controller::Warehouse::action_wh_bin_select_update_bins> and
118 123
L<js/kivi.Warehouse.js>).
119 124

  
120
All valid warehouses are presented for selection.
125
All valid warehouses are presented for selection. If no valid warehouses
126
are present, nothing is rendered (undef is returned). But see the paramerter
127
C<show_if_empty>.
121 128

  
122 129
Remaining C<%attributes> not listed here are passed to the
123 130
div and select tag presenters.
......
163 170

  
164 171
Show an empty selection for the warehouse if this is truish.
165 172

  
173
=item * show_if_empty
174

  
175
Show the warehouse selection even if there are no warehouses are present.
176

  
177
=item * one_row
178

  
179
Do not render a linebreak between the select tags of warehouses and bins.
180

  
166 181
=back
167 182

  
168 183
=back

Auch abrufbar als: Unified diff