Kontenabgleich mit Bank: Fehlermeldungen auch dem Benutzer mitteilen
[kivitendo-erp.git] / templates / webpages / reconciliation / form.html
index 2c1a4db..926ff79 100644 (file)
@@ -24,17 +24,17 @@ 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>
      <td>[% L.select_tag('filter.local_bank_account_id:number',
                           SELF.BANK_ACCOUNTS,
                           default=FORM.filter.local_bank_account_id_number,
-                          title_sub=\label_sub, with_empty=0,
+                          title_key='displayable_name',
+                          with_empty=0,
                           style='width:450px',
                           onchange='filter_table();') %]</td>
     </tr>
@@ -77,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>
@@ -95,29 +99,32 @@ html, body {
 <!--
 
 function load_proposals () {
-  var url="controller.pl?action=Reconciliation/load_proposals&" + $('#reconciliation_form') . serialize();
+  var url="controller.pl?action=Reconciliation/load_proposals";
   $.ajax({
     url: url,
+    type: "POST",
+    data: $('#reconciliation_form').serialize(),
     success: function(new_data) {
       $('#overview').html('');
       $('#automatic').html(new_data['html']);
-      $('#set_cleared').html('');
     }
   });
 }
 
 function load_overview () {
-  var url="controller.pl?action=Reconciliation/load_overview&" + $('#reconciliation_form') . serialize();
+  var url="controller.pl?action=Reconciliation/load_overview";
   $.ajax({
     url: url,
+    type: "GET",
+    data: $('#reconciliation_form').serialize(),
     success: function(new_data) {
       $('#overview').html(new_data['html']);
       $('#automatic').html('');
-      $('#set_cleared').html('');
     }
   });
 }
 
+$.cookie('jquery_ui_tab_reconc_tabs', [% ui_tab %] );
+
 //-->
 </script>
-