Revision 132c52d7
Von Moritz Bunkus vor mehr als 7 Jahren hinzugefügt
SL/Controller/Letter.pm | ||
---|---|---|
724 | 724 |
for my $bar ($::request->layout->get('actionbar')) { |
725 | 725 |
$bar->add( |
726 | 726 |
action => [ |
727 |
t8('Search'), |
|
728 |
submit => [ '#form', { action => 'Letter/list' } ], |
|
729 |
checks => [ 'kivi.SalesPurchase.check_required_email_fields' ], |
|
727 |
t8('Update'), |
|
728 |
submit => [ '#search_form', { action => 'Letter/list' } ], |
|
730 | 729 |
accesskey => 'enter', |
731 | 730 |
], |
732 |
action => [ |
|
733 |
t8('Reset'), |
|
734 |
call => [ 'kivi.call_jquery', '#form', 'resetForm' ], |
|
735 |
], |
|
736 | 731 |
); |
737 | 732 |
} |
738 | 733 |
} |
templates/webpages/letter/report_bottom.html | ||
---|---|---|
1 | 1 |
[% USE HTML%] |
2 | 2 |
[%- USE T8 %] |
3 |
[%- USE L %] |
|
3 |
[%- USE L %][%- USE LxERP -%]
|
|
4 | 4 |
[% L.paginate_controls(models=SELF.models) %] |
5 | 5 |
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]"> |
6 | 6 |
[%- FOREACH item = HIDDEN %] |
templates/webpages/letter/search.html | ||
---|---|---|
2 | 2 |
[% USE T8 %] |
3 | 3 |
[% USE L %] |
4 | 4 |
[% USE LxERP %] |
5 |
<form action="controller.pl" method="post" name="Form" id="form"> |
|
5 |
<form action="controller.pl" method="post" name="Form" id="search_form">
|
|
6 | 6 |
|
7 | 7 |
<div class='filter_toggle'> |
8 | 8 |
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a> |
... | ... | |
55 | 55 |
[% L.hidden_tag('sort_by', FORM.sort_by) %] |
56 | 56 |
[% L.hidden_tag('sort_dir', FORM.sort_dir) %] |
57 | 57 |
[% L.hidden_tag('page', FORM.page) %] |
58 |
[% L.button_tag("\$('#search_form').resetForm()", LxERP.t8("Reset")) %] |
|
58 | 59 |
</div> |
59 |
|
|
60 | 60 |
</form> |
Auch abrufbar als: Unified diff
ActionBar: Verwendung bei Briefen standardisiert
• »Suchen« → »Erneuern«
• »Zurücksetzen« in Form verschoben