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 |
} |
templates/webpages/cp/form_footer.html | ||
---|---|---|
5 | 5 |
</tr> |
6 | 6 |
</table> |
7 | 7 |
<input type=hidden name=rowcount value="[% rowcount | html %]"> |
8 |
|
|
9 |
<br> |
|
10 |
<input class=submit type=submit name=action value="[% 'Update' | $T8 %]"> |
|
11 |
<input class=submit type=submit name=action value="[% 'Post' | $T8 %]"> |
|
12 | 8 |
</form> |
13 |
|
templates/webpages/cp/form_header.html | ||
---|---|---|
2 | 2 |
[%- USE HTML %] |
3 | 3 |
[%- USE T8 %] |
4 | 4 |
[%- USE LxERP %][%- USE P -%] |
5 |
<form method=post action=cp.pl>
|
|
5 |
<form method="post" action="cp.pl" id="form">
|
|
6 | 6 |
|
7 | 7 |
[% SET vc_id = vc _ '_id' |
8 | 8 |
style = "width: 250px" %] |
Auch abrufbar als: Unified diff
ActionBar: Verwendung bei Zahlungsein-/-ausgang