Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / reconciliation / form.html
index d8c0844..926ff79 100644 (file)
@@ -24,10 +24,9 @@ html, body {
 </style>
 
 <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>
@@ -78,16 +77,20 @@ html, body {
     </tr>
   </table>
 
-  [% L.submit_tag('submit_filter', LxERP.t8("Filter"), onclick='filter_table();return false;', style='display: none') %]
-
-  <div class="tabwidget" style="height:100%">
+  <div id="reconc_tabs" class="tabwidget" style="height:100%">
     <ul>
       <li><a href="#overview" onclick="load_overview();">[% 'Overview' | $T8 %]</a></li>
       <li><a href="#automatic" onclick="load_proposals();">[% 'Proposals' | $T8 %]</a></li>
     </ul>
 
-    <div id="overview" style="height:calc(100% - 60px);overflow: auto;">[% PROCESS "reconciliation/tabs/overview.html" %]</div>
-    <div id="automatic" style="height:calc(100% - 60px);overflow: auto;"></div>
+    <div id="overview" style="height:calc(100% - 60px);overflow: auto;">
+    [%- IF ui_tab == 0 %]
+    [% PROCESS "reconciliation/tabs/overview.html" %]
+    [%- END %]</div>
+    <div id="automatic" style="height:calc(100% - 60px);overflow: auto;">
+    [%- IF ui_tab == 1 %]
+    [% PROCESS "reconciliation/tabs/automatic.html" %]
+    [%- END %]    </div>
   </div>
 
 </form>
@@ -121,6 +124,7 @@ function load_overview () {
   });
 }
 
+$.cookie('jquery_ui_tab_reconc_tabs', [% ui_tab %] );
+
 //-->
 </script>
-