Revision 9cd9a517
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
bin/mozilla/am.pl | ||
---|---|---|
109 | 109 |
} |
110 | 110 |
|
111 | 111 |
&account_header; |
112 |
&form_footer; |
|
113 | 112 |
|
114 | 113 |
$main::lxdebug->leave_sub(); |
115 | 114 |
} |
... | ... | |
372 | 371 |
my $ChartTypeIsAccount = ($form->{charttype} eq "A") ? "1":""; |
373 | 372 |
my $AccountIsPosted = ($form->{orphaned} ) ? "":"1"; |
374 | 373 |
|
374 |
setup_am_edit_account_action_bar(); |
|
375 |
|
|
375 | 376 |
$form->header(); |
376 | 377 |
|
377 | 378 |
my $parameters_ref = { |
... | ... | |
1394 | 1395 |
); |
1395 | 1396 |
} |
1396 | 1397 |
} |
1398 |
|
|
1399 |
sub setup_am_edit_account_action_bar { |
|
1400 |
my %params = @_; |
|
1401 |
|
|
1402 |
for my $bar ($::request->layout->get('actionbar')) { |
|
1403 |
$bar->add( |
|
1404 |
combobox => [ |
|
1405 |
action => [ |
|
1406 |
t8('Save'), |
|
1407 |
submit => [ '#form', { action => "save_account" } ], |
|
1408 |
disabled => $::form->{id} && !$::form->{orphaned} ? t8('The object is in use and cannot be changed.') |
|
1409 |
: undef, |
|
1410 |
accesskey => 'enter', |
|
1411 |
], |
|
1412 |
|
|
1413 |
action => [ |
|
1414 |
t8('Save as new'), |
|
1415 |
submit => [ '#form', { action => "save_as_new_account" } ], |
|
1416 |
disabled => !$::form->{id} ? t8('The object has not been saved yet.') : undef, |
|
1417 |
], |
|
1418 |
], |
|
1419 |
|
|
1420 |
action => [ |
|
1421 |
t8('Delete'), |
|
1422 |
submit => [ '#form', { action => "delete_account" } ], |
|
1423 |
disabled => !$::form->{id} ? t8('The object has not been saved yet.') |
|
1424 |
: $::form->{id} && !$::form->{orphaned} ? t8('The object is in use and cannot be deleted.') |
|
1425 |
: undef, |
|
1426 |
confirm => t8('Do you really want to delete this object?'), |
|
1427 |
], |
|
1428 |
); |
|
1429 |
} |
|
1430 |
} |
locale/de/all | ||
---|---|---|
3029 | 3029 |
'The object has been deleted.' => 'Das Objekt wurde gelöscht..', |
3030 | 3030 |
'The object has been saved.' => 'Das Objekt wurde gespeichert.', |
3031 | 3031 |
'The object has not been saved yet.' => 'Das Objekt wurde noch nicht gespeichert.', |
3032 |
'The object is in use and cannot be changed.' => 'Das Objekt ist in Benutzung und kann nicht geändert werden.', |
|
3032 | 3033 |
'The object is in use and cannot be deleted.' => 'Das Objekt ist in Benutzung und kann nicht gelöscht werden.', |
3033 | 3034 |
'The option field is empty.' => 'Das Optionsfeld ist leer.', |
3034 | 3035 |
'The order has been deleted' => 'Der Auftrag wurde gelöscht.', |
templates/webpages/am/edit_accounts.html | ||
---|---|---|
16 | 16 |
}); |
17 | 17 |
</script> |
18 | 18 |
|
19 |
<form method="post" name="EditAccount" action="am.pl"> |
|
19 |
<form method="post" name="EditAccount" action="am.pl" id="form">
|
|
20 | 20 |
|
21 | 21 |
<input type="hidden" name="id" value="[% HTML.escape(id) %]"> |
22 | 22 |
<input type="hidden" name="type" value="account"> |
... | ... | |
308 | 308 |
} |
309 | 309 |
</script> |
310 | 310 |
[% END %] |
311 |
[% L.hidden_tag('callback', callback) %] |
|
312 |
</form> |
Auch abrufbar als: Unified diff
ActionBar: Verwendung bei »Konto erfassen/bearbeiten«