sub action_search {
my ($self) = @_;
+ $self->setup_search_action_bar;
$self->render('reconciliation/search');
}
$self->_get_balances;
+ $self->setup_reconciliation_action_bar;
$self->render('reconciliation/form',
ui_tab => scalar(@{$self->{PROPOSALS}}) > 0?1:0,
title => t8('Reconciliation'));
SL::DB::Manager::BankAccount->get_all_sorted( query => [ obsolete => 0 ] );
}
+sub setup_search_action_bar {
+ my ($self, %params) = @_;
+
+ for my $bar ($::request->layout->get('actionbar')) {
+ $bar->add(
+ action => [
+ t8('Show'),
+ submit => [ '#search_form', { action => 'Reconciliation/reconciliation' } ],
+ accesskey => 'enter',
+ ],
+ );
+ }
+}
+
+sub setup_reconciliation_action_bar {
+ my ($self, %params) = @_;
+
+ for my $bar ($::request->layout->get('actionbar')) {
+ $bar->add(
+ action => [
+ t8('Filter'),
+ call => [ 'filter_table' ],
+ accesskey => 'enter',
+ ],
+ );
+ }
+}
+
1;
<div class="listtop">[% title %]</div>
[%- INCLUDE 'common/flash.html' %]
-<form id="reconciliation_form" method="post" action="controller.pl" style="height:100%">
+<form id="reconciliation_form" method="post" action="controller.pl" style="height:100%" id="filter_form">
<table>
<tr>
<th align="right">[% 'Bank account' | $T8 %]</th>
</tr>
</table>
- [% L.submit_tag('submit_filter', LxERP.t8("Filter"), onclick='filter_table();return false;', style='display: none') %]
-
<div id="reconc_tabs" class="tabwidget" style="height:100%">
<ul>
<li><a href="#overview" onclick="load_overview();">[% 'Overview' | $T8 %]</a></li>
//-->
</script>
-
[%- USE L %]
[%- USE LxERP %]
-<form method="post" action="controller.pl">
+<form method="post" action="controller.pl" id="search_form">
<div class="listtop">[% 'Choose bank account for reconciliation' | $T8 %]</div>
</tr>
</table>
</p>
-
-<hr size="3" noshade>
-
-[% L.hidden_tag('action', FORM.next_sub) %]
-
-<p>[% L.submit_tag('dummy', LxERP.t8('Continue')) %]</p>
</form>