Revision e84b30f1
Von Tamino Steinert vor etwa 1 Monat hinzugefügt
SL/Presenter/Filter.pm | ||
---|---|---|
74 | 74 |
allow_extra => 1, |
75 | 75 |
); |
76 | 76 |
|
77 |
my $element_th = html_tag('th', $element_param->{text}, align => 'right'); |
|
77 |
my $element_th; |
|
78 |
|
|
79 |
if($element_param->{input_type} eq 'input_group') { |
|
80 |
$element_th = html_tag('th', $element_param->{text}, |
|
81 |
align => 'right', |
|
82 |
colspan => 2, |
|
83 |
class => "caption", |
|
84 |
); |
|
85 |
} else { |
|
86 |
$element_th = html_tag('th', $element_param->{text}, align => 'right'); |
|
87 |
} |
|
78 | 88 |
|
79 | 89 |
my $element_input = ''; |
80 | 90 |
|
81 |
if($element_param->{input_type} eq 'input_tag') { |
|
91 |
if($element_param->{input_type} eq 'input_group') { |
|
92 |
|
|
93 |
my @filter_element_params = |
|
94 |
sort { $a->{position} <=> $b->{position} } |
|
95 |
grep { $_->{active} } |
|
96 |
values %{$element_param->{input_values}}; |
|
97 |
|
|
98 |
|
|
99 |
my @filter_elements; |
|
100 |
for my $filter_element_param (@filter_element_params) { |
|
101 |
my $filter_element = _create_input_element($filter_element_param, %params); |
|
102 |
push @filter_elements, $filter_element; |
|
103 |
} |
|
104 |
|
|
105 |
$element_input = join('', map{html_tag('tr',$_)} @filter_elements); |
|
106 |
$element_input .= html_tag('tr'); |
|
107 |
} elsif($element_param->{input_type} eq 'input_tag') { |
|
82 | 108 |
|
83 | 109 |
$element_input = input_tag($element_param->{input_name}, $element_param->{input_default}); |
84 | 110 |
|
Auch abrufbar als: Unified diff
S:P:Filter: Gruppieren von Eingabeelementen