Revision ed458620
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
SL/Controller/ClientConfig.pm | ||
---|---|---|
214 | 214 |
|
215 | 215 |
$::request->layout->use_javascript("${_}.js") for qw(jquery.selectboxes jquery.multiselect2side kivi.File); |
216 | 216 |
|
217 |
$self->setup_edit_form_action_bar; |
|
217 | 218 |
$self->render('client_config/form', title => t8('Client Configuration'), |
218 | 219 |
make_chart_title => sub { $_[0]->accno . '--' . $_[0]->description }, |
219 | 220 |
make_templates_value => sub { 'templates/' . $_[0] }, |
220 | 221 |
); |
221 | 222 |
} |
222 | 223 |
|
224 |
sub setup_edit_form_action_bar { |
|
225 |
my ($self) = @_; |
|
226 |
|
|
227 |
for my $bar ($::request->layout->get('actionbar')) { |
|
228 |
$bar->add( |
|
229 |
action => [ |
|
230 |
t8('Save'), |
|
231 |
submit => [ '#form', { action => 'ClientConfig/save' } ], |
|
232 |
accesskey => 'enter', |
|
233 |
], |
|
234 |
); |
|
235 |
} |
|
236 |
} |
|
237 |
|
|
223 | 238 |
1; |
templates/webpages/client_config/form.html | ||
---|---|---|
79 | 79 |
|
80 | 80 |
[% PROCESS 'common/flash.html' %] |
81 | 81 |
|
82 |
<form action='controller.pl' method='POST'> |
|
82 |
<form action='controller.pl' method='POST' id='form'>
|
|
83 | 83 |
<div class="tabwidget"> |
84 | 84 |
<ul> |
85 | 85 |
<li><a href="#miscellaneous">[% LxERP.t8('Miscellaneous') %]</a></li> |
... | ... | |
108 | 108 |
[% PROCESS 'client_config/_warehouse.html' %] |
109 | 109 |
[% PROCESS 'client_config/_features.html' %] |
110 | 110 |
[% PROCESS 'client_config/_miscellaneous.html' %] |
111 |
|
|
112 |
<div> |
|
113 |
[%- L.hidden_tag('action', 'ClientConfig/dispatch') %] |
|
114 |
[%- L.submit_tag('action_save', LxERP.t8('Save')) %] |
|
115 |
</div> |
|
116 |
|
|
117 | 111 |
</form> |
Auch abrufbar als: Unified diff
ActionBar: Verwendung bei Mandantenkonfiguration