Revision 4487bcbf
Von Kivitendo Admin vor mehr als 7 Jahren hinzugefügt
bin/mozilla/am.pl | ||
---|---|---|
84 | 84 |
$form->{callback} = "am.pl?action=list_account" unless $form->{callback}; |
85 | 85 |
|
86 | 86 |
&account_header; |
87 |
&form_footer; |
|
88 | 87 |
|
89 | 88 |
$main::lxdebug->leave_sub(); |
90 | 89 |
} |
... | ... | |
344 | 343 |
$main::lxdebug->leave_sub(); |
345 | 344 |
} |
346 | 345 |
|
347 |
sub form_footer { |
|
348 |
$::lxdebug->enter_sub; |
|
349 |
$::auth->assert('config'); |
|
350 |
|
|
351 |
print $::form->parse_html_template('am/form_footer', { |
|
352 |
show_save => !$::form->{id} |
|
353 |
|| ($::form->{id} && $::form->{orphaned}) |
|
354 |
|| ($::form->{type} eq "account" && !$::form->{new_chart_valid}), |
|
355 |
show_delete => $::form->{id} && $::form->{orphaned}, |
|
356 |
show_save_as_new => $::form->{id} && $::form->{type} eq "account", |
|
357 |
}); |
|
358 |
|
|
359 |
$::lxdebug->leave_sub; |
|
360 |
} |
|
361 |
|
|
362 | 346 |
sub save_account { |
363 | 347 |
$main::lxdebug->enter_sub(); |
364 | 348 |
|
templates/webpages/am/form_footer.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE L %] |
|
3 |
[%- USE HTML %] |
|
4 |
[%- USE LxERP %] |
|
5 |
[% L.hidden_tag('callback', callback) %] |
|
6 |
|
|
7 |
<br> |
|
8 |
[%- IF show_save %][% L.submit_tag('action', LxERP.t8('Save'), onclick = 'if ( typeof(callback_save) === "function" ) return callback_save(); ') %][% END %] |
|
9 |
[%- IF show_delete %][% L.submit_tag('action', LxERP.t8('Delete')) %][% END %] |
|
10 |
[%- IF show_save_as_new %][% L.submit_tag('action', LxERP.t8('Save as new')) %][% END %] |
|
11 |
|
|
12 |
</form> |
|
13 |
|
Auch abrufbar als: Unified diff
Konto erfassen - alte Speichern/Löschen-Knöpfe entfernt
wurden bei der ActionBar-Umstellung vergessen, trat nur bei Konto
erfassen auf.