Revision a92341e3
Von Bernd Bleßmann vor 4 Monaten hinzugefügt
SL/Presenter/Warehouse.pm | ||
---|---|---|
6 | 6 |
use SL::DB::Warehouse; |
7 | 7 |
use SL::Locale::String qw(t8); |
8 | 8 |
use SL::Presenter::EscapedText qw(escape is_escaped); |
9 |
use SL::Presenter::Tag qw(name_to_id div_tag select_tag); |
|
9 |
use SL::Presenter::Tag qw(name_to_id div_tag select_tag html_tag);
|
|
10 | 10 |
|
11 | 11 |
use Exporter qw(import); |
12 | 12 |
our @EXPORT_OK = qw( |
... | ... | |
36 | 36 |
: $all_warehouses->[0]->bins_sorted_naturally; |
37 | 37 |
|
38 | 38 |
my $show_if_empty = delete $attributes{show_if_empty}; |
39 |
my $one_row = delete $attributes{one_row}; |
|
39 | 40 |
|
40 | 41 |
return if (!@$all_warehouses && !$show_if_empty); |
41 | 42 |
|
... | ... | |
65 | 66 |
|
66 | 67 |
$::request->layout->add_javascripts('kivi.Warehouse.js'); |
67 | 68 |
|
69 |
my $linebreak = $one_row ? '' : html_tag('br'); |
|
68 | 70 |
div_tag(select_tag($wh_name, $all_warehouses, %wh_attributes) . |
71 |
$linebreak . |
|
69 | 72 |
select_tag($bin_name, $all_bins, %bin_attributes), |
70 | 73 |
%div_attributes); |
71 | 74 |
} |
Auch abrufbar als: Unified diff
Presenter Lagerplatz: zweizeilig rendern; optional einzeilig