Revision 0ba48077
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/Controller/RequirementSpec.pm | ||
---|---|---|
33 | 33 |
); |
34 | 34 |
|
35 | 35 |
__PACKAGE__->run_before('setup'); |
36 |
__PACKAGE__->run_before('set_default_filter_args', only => [ qw(list) ]); |
|
36 | 37 |
|
37 | 38 |
my %sort_columns = ( |
38 | 39 |
customer => t8('Customer'), |
... | ... | |
446 | 447 |
->jstree->open_node( '#tree', "#tb-${front_back}"); |
447 | 448 |
} |
448 | 449 |
|
450 |
sub set_default_filter_args { |
|
451 |
my ($self) = @_; |
|
452 |
|
|
453 |
if (!$::form->{filter}) { |
|
454 |
$::form->{filter} = { |
|
455 |
status_id => [ map { $_->{id} } grep { $_->name ne 'done' } @{ $self->statuses } ], |
|
456 |
}; |
|
457 |
} |
|
458 |
|
|
459 |
return 1; |
|
460 |
} |
|
461 |
|
|
449 | 462 |
sub render_pasted_section { |
450 | 463 |
my ($self, $item, $parent_id) = @_; |
451 | 464 |
|
templates/webpages/requirement_spec/_filter.html | ||
---|---|---|
35 | 35 |
|
36 | 36 |
<tr> |
37 | 37 |
<th align="right">[% LxERP.t8("Requirement Spec Status") %]</th> |
38 |
<td>[% L.select_tag('filter.status_id', SELF.statuses, default=filter.status_id, title_key="description", with_empty=1) %]</td>
|
|
38 |
<td>[% L.select_tag('filter.status_id[]', SELF.statuses, default=filter.status_id_, title_key="description", multiple=1) %][%# NOTE: the trailing '_' is NOT a mistake -- look at SL::Controller::Helper::Filtered for the explanation! %]</td>
|
|
39 | 39 |
</tr> |
40 | 40 |
|
41 | 41 |
<tr> |
Auch abrufbar als: Unified diff
Pflichtenhefte: per Default die abgeschlossenen nicht anzeigen