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' ],
- ],
);
}
}
[% USE HTML%]
[%- USE T8 %]
-[%- USE L %]
+[%- USE L %][%- USE LxERP -%]
[% L.paginate_controls(models=SELF.models) %]
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
[%- FOREACH item = HIDDEN %]
[% USE T8 %]
[% USE L %]
[% USE LxERP %]
-<form action="controller.pl" method="post" name="Form" id="form">
+<form action="controller.pl" method="post" name="Form" id="search_form">
<div class='filter_toggle'>
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a>
[% 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>