From 132c52d7690c30ccb3f1e1b74d90d757e87a376f Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 16 Jan 2017 12:50:57 +0100 Subject: [PATCH] ActionBar: Verwendung bei Briefen standardisiert MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit • »Suchen« → »Erneuern« • »Zurücksetzen« in Form verschoben --- SL/Controller/Letter.pm | 9 ++------- templates/webpages/letter/report_bottom.html | 2 +- templates/webpages/letter/search.html | 4 ++-- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/SL/Controller/Letter.pm b/SL/Controller/Letter.pm index 69e2bdf43..d0ef0c953 100644 --- a/SL/Controller/Letter.pm +++ b/SL/Controller/Letter.pm @@ -724,15 +724,10 @@ sub setup_list_action_bar { for my $bar ($::request->layout->get('actionbar')) { $bar->add( action => [ - t8('Search'), - submit => [ '#form', { action => 'Letter/list' } ], - checks => [ 'kivi.SalesPurchase.check_required_email_fields' ], + t8('Update'), + submit => [ '#search_form', { action => 'Letter/list' } ], accesskey => 'enter', ], - action => [ - t8('Reset'), - call => [ 'kivi.call_jquery', '#form', 'resetForm' ], - ], ); } } diff --git a/templates/webpages/letter/report_bottom.html b/templates/webpages/letter/report_bottom.html index f66e2d265..a27818a5e 100644 --- a/templates/webpages/letter/report_bottom.html +++ b/templates/webpages/letter/report_bottom.html @@ -1,6 +1,6 @@ [% USE HTML%] [%- USE T8 %] -[%- USE L %] +[%- USE L %][%- USE LxERP -%] [% L.paginate_controls(models=SELF.models) %] [%- FOREACH item = HIDDEN %] diff --git a/templates/webpages/letter/search.html b/templates/webpages/letter/search.html index 4ae49823e..fa89fd699 100644 --- a/templates/webpages/letter/search.html +++ b/templates/webpages/letter/search.html @@ -2,7 +2,7 @@ [% USE T8 %] [% USE L %] [% USE LxERP %] -
+
[% 'Show Filter' | $T8 %] @@ -55,6 +55,6 @@ [% 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")) %]
-
-- 2.20.1