Revision 2003e056
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
SL/Controller/BankTransaction.pm | ||
---|---|---|
48 | 48 |
|
49 | 49 |
my $bank_accounts = SL::DB::Manager::BankAccount->get_all_sorted( query => [ obsolete => 0 ] ); |
50 | 50 |
|
51 |
$self->setup_search_action_bar; |
|
51 | 52 |
$self->render('bank_transactions/search', |
52 | 53 |
BANK_ACCOUNTS => $bank_accounts); |
53 | 54 |
} |
... | ... | |
58 | 59 |
$self->make_filter_summary; |
59 | 60 |
$self->prepare_report; |
60 | 61 |
|
62 |
$self->setup_list_all_action_bar; |
|
61 | 63 |
$self->report_generator_list_objects(report => $self->{report}, objects => $self->models->get); |
62 | 64 |
} |
63 | 65 |
|
... | ... | |
893 | 895 |
); |
894 | 896 |
} |
895 | 897 |
|
898 |
sub setup_search_action_bar { |
|
899 |
my ($self, %params) = @_; |
|
900 |
|
|
901 |
for my $bar ($::request->layout->get('actionbar')) { |
|
902 |
$bar->add( |
|
903 |
action => [ |
|
904 |
t8('Filter'), |
|
905 |
submit => [ '#search_form', { action => 'BankTransaction/list' } ], |
|
906 |
accesskey => 'enter', |
|
907 |
], |
|
908 |
); |
|
909 |
} |
|
910 |
} |
|
911 |
|
|
912 |
sub setup_list_all_action_bar { |
|
913 |
my ($self, %params) = @_; |
|
914 |
|
|
915 |
for my $bar ($::request->layout->get('actionbar')) { |
|
916 |
$bar->add( |
|
917 |
action => [ |
|
918 |
t8('Filter'), |
|
919 |
submit => [ '#filter_form', { action => 'BankTransaction/list_all' } ], |
|
920 |
accesskey => 'enter', |
|
921 |
], |
|
922 |
); |
|
923 |
} |
|
924 |
} |
|
925 |
|
|
896 | 926 |
1; |
897 | 927 |
__END__ |
898 | 928 |
|
templates/webpages/bank_transactions/_filter.html | ||
---|---|---|
61 | 61 |
</tr> |
62 | 62 |
</table> |
63 | 63 |
|
64 |
[% L.hidden_tag('action', 'BankTransaction/dispatch') %] |
|
65 | 64 |
[% L.hidden_tag('sort_by', FORM.sort_by) %] |
66 | 65 |
[% L.hidden_tag('sort_dir', FORM.sort_dir) %] |
67 | 66 |
[% L.hidden_tag('page', FORM.page) %] |
68 |
[% L.input_tag('action_list_all', LxERP.t8('Continue'), type = 'submit', class='submit')%] |
|
69 |
|
|
70 | 67 |
|
71 | 68 |
[% L.button_tag('$("#filter_form").resetForm()', LxERP.t8('Reset')) %] |
72 | 69 |
</div> |
templates/webpages/bank_transactions/search.html | ||
---|---|---|
5 | 5 |
|
6 | 6 |
[%- INCLUDE 'common/flash.html' %] |
7 | 7 |
|
8 |
<form method="post" action="controller.pl"> |
|
8 |
<form method="post" action="controller.pl" id="search_form">
|
|
9 | 9 |
|
10 | 10 |
<div class="listtop">[% 'Search bank transactions' | $T8 %]</div> |
11 | 11 |
|
... | ... | |
28 | 28 |
</tr> |
29 | 29 |
</table> |
30 | 30 |
</p> |
31 |
|
|
32 |
<hr size="3" noshade> |
|
33 |
|
|
34 |
[% L.hidden_tag('action', 'BankTransaction/list') %] |
|
35 |
|
|
36 |
<p>[% L.submit_tag('dummy', LxERP.t8('Continue')) %]</p> |
|
37 | 31 |
</form> |
Auch abrufbar als: Unified diff
ActionBar: Vernwendung bei Bankbewegungen