Revision 47df98d0
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
bin/mozilla/cp.pl | ||
---|---|---|
38 | 38 |
use SL::AR; |
39 | 39 |
use SL::AP; |
40 | 40 |
use Data::Dumper; |
41 |
use SL::Locale::String qw(t8); |
|
41 | 42 |
use strict; |
42 | 43 |
#use warnings; |
43 | 44 |
|
... | ... | |
126 | 127 |
# $locale->text('AR') |
127 | 128 |
# $locale->text('AP') |
128 | 129 |
|
130 |
setup_cp_form_action_bar(can_post => !!$form->{rowcount}); |
|
131 |
|
|
129 | 132 |
$form->header; |
130 | 133 |
|
131 | 134 |
$arap = lc $form->{ARAP}; |
... | ... | |
396 | 399 |
|
397 | 400 |
$lxdebug->leave_sub(); |
398 | 401 |
} |
402 |
|
|
403 |
sub setup_cp_form_action_bar { |
|
404 |
my (%params) = @_; |
|
405 |
|
|
406 |
for my $bar ($::request->layout->get('actionbar')) { |
|
407 |
$bar->add( |
|
408 |
action => [ |
|
409 |
t8('Update'), |
|
410 |
submit => [ '#form', { action => "update" } ], |
|
411 |
accesskey => 'enter', |
|
412 |
], |
|
413 |
action => [ |
|
414 |
t8('Post'), |
|
415 |
submit => [ '#form', { action => "post" } ], |
|
416 |
], |
|
417 |
); |
|
418 |
} |
|
419 |
} |
Auch abrufbar als: Unified diff
ActionBar: Verwendung bei Zahlungsein-/-ausgang