Revision 0c23c415
Von Moritz Bunkus vor etwa 7 Jahren hinzugefügt
SL/Controller/RequirementSpec.pm | ||
---|---|---|
53 | 53 |
sub action_list { |
54 | 54 |
my ($self) = @_; |
55 | 55 |
|
56 |
$self->_setup_search_action_bar; |
|
56 | 57 |
$self->prepare_report; |
57 |
$self->report_generator_list_objects(report => $self->{report}, objects => $self->models->get); |
|
58 |
$self->report_generator_list_objects(report => $self->{report}, objects => $self->models->get, action_bar => 1);
|
|
58 | 59 |
} |
59 | 60 |
|
60 | 61 |
sub action_new { |
... | ... | |
703 | 704 |
} |
704 | 705 |
} |
705 | 706 |
|
707 |
sub _setup_search_action_bar { |
|
708 |
my ($self, %params) = @_; |
|
709 |
|
|
710 |
for my $bar ($::request->layout->get('actionbar')) { |
|
711 |
$bar->add( |
|
712 |
action => [ |
|
713 |
t8('Search'), |
|
714 |
submit => [ '#search_form', { action => 'RequirementSpec/list' } ], |
|
715 |
accesskey => 'enter', |
|
716 |
], |
|
717 |
link => [ |
|
718 |
t8('Add'), |
|
719 |
link => $self->url_for(action => 'new', is_template => $::form->{is_template}), |
|
720 |
], |
|
721 |
); |
|
722 |
} |
|
723 |
} |
|
724 |
|
|
706 | 725 |
1; |
Auch abrufbar als: Unified diff
ActionBar: Verwendung bei Pflichtenheft(vorlagen)suche