$::request->layout->use_javascript("${_}.js") for qw(jquery.selectboxes jquery.multiselect2side kivi.File);
+ $self->setup_edit_form_action_bar;
$self->render('client_config/form', title => t8('Client Configuration'),
make_chart_title => sub { $_[0]->accno . '--' . $_[0]->description },
make_templates_value => sub { 'templates/' . $_[0] },
);
}
+sub setup_edit_form_action_bar {
+ my ($self) = @_;
+
+ for my $bar ($::request->layout->get('actionbar')) {
+ $bar->add(
+ action => [
+ t8('Save'),
+ submit => [ '#form', { action => 'ClientConfig/save' } ],
+ accesskey => 'enter',
+ ],
+ );
+ }
+}
+
1;
[% PROCESS 'common/flash.html' %]
-<form action='controller.pl' method='POST'>
+<form action='controller.pl' method='POST' id='form'>
<div class="tabwidget">
<ul>
<li><a href="#miscellaneous">[% LxERP.t8('Miscellaneous') %]</a></li>
[% PROCESS 'client_config/_warehouse.html' %]
[% PROCESS 'client_config/_features.html' %]
[% PROCESS 'client_config/_miscellaneous.html' %]
-
- <div>
- [%- L.hidden_tag('action', 'ClientConfig/dispatch') %]
- [%- L.submit_tag('action_save', LxERP.t8('Save')) %]
- </div>
-
</form>