ActionBar: Verwendung bei Massenerstellen von Rechnungen standardisiert
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 16 Jan 2017 12:21:07 +0000 (13:21 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 28 Feb 2017 09:44:00 +0000 (10:44 +0100)
SL/Controller/MassInvoiceCreatePrint.pm
templates/webpages/mass_invoice_create_print_from_do/_filter.html

index 54313a6..bccd4a2 100644 (file)
@@ -341,14 +341,10 @@ sub setup_list_invoices_action_bar {
   for my $bar ($::request->layout->get('actionbar')) {
     $bar->add(
       action => [
-        t8('Search'),
+        t8('Update'),
         submit    => [ '#search_form', { action => 'MassInvoiceCreatePrint/list_invoices' } ],
         accesskey => 'enter',
       ],
-      action => [
-        t8('Reset'),
-        call => [ 'kivi.call_jquery', '#search_form', 'resetForm' ],
-      ],
       action => [
         $::locale->text('Print'),
         call     => [ 'kivi.MassInvoiceCreatePrint.showMassPrintOptionsOrDownloadDirectly' ],
@@ -364,14 +360,10 @@ sub setup_list_sales_delivery_orders_action_bar {
   for my $bar ($::request->layout->get('actionbar')) {
     $bar->add(
       action => [
-        t8('Search'),
+        $params{show_creation_buttons} ? t8('Update') : t8('Search'),
         submit    => [ '#search_form', { action => 'MassInvoiceCreatePrint/list_sales_delivery_orders' } ],
         accesskey => 'enter',
       ],
-      action => [
-        t8('Reset'),
-        call => [ 'kivi.call_jquery', '#search_form', 'resetForm' ],
-      ],
 
       combobox => [
         action => [
index a7b5d93..67666ba 100644 (file)
@@ -26,6 +26,7 @@
    [% L.hidden_tag('sort_by', FORM.sort_by) %]
    [% L.hidden_tag('sort_dir', FORM.sort_dir) %]
    [% L.hidden_tag('page', FORM.page) %]
+   [% L.button_tag('$("#search_form").resetForm()', LxERP.t8('Reset')) %]
   </div>
 
  </form>