Revision 5dfa532c
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
SL/Controller/PartsPriceUpdate.pm | ||
---|---|---|
21 | 21 |
sub action_search_update_prices { |
22 | 22 |
my ($self) = @_; |
23 | 23 |
|
24 |
$self->setup_search_update_prices_action_bar; |
|
24 | 25 |
$self->render('ic/search_update_prices', |
25 | 26 |
title => t8('Update Prices'), |
26 | 27 |
); |
... | ... | |
64 | 65 |
|
65 | 66 |
my $key = $::auth->create_unique_sesion_value(SL::JSON::to_json($self->filter)); |
66 | 67 |
|
68 |
$self->setup_confirm_price_update_action_bar; |
|
67 | 69 |
$self->render('ic/confirm_price_update', |
68 | 70 |
num_matches => $num_matches, |
69 | 71 |
filter_key => $key, |
... | ... | |
278 | 280 |
$::form->{filter} || {}; |
279 | 281 |
} |
280 | 282 |
|
283 |
sub setup_search_update_prices_action_bar { |
|
284 |
my ($self, %params) = @_; |
|
285 |
|
|
286 |
for my $bar ($::request->layout->get('actionbar')) { |
|
287 |
$bar->add( |
|
288 |
action => [ |
|
289 |
t8('Continue'), |
|
290 |
submit => [ '#form', { action => 'PartsPriceUpdate/confirm_price_update' } ], |
|
291 |
accesskey => 'enter', |
|
292 |
], |
|
293 |
); |
|
294 |
} |
|
295 |
} |
|
296 |
|
|
297 |
sub setup_confirm_price_update_action_bar { |
|
298 |
my ($self, %params) = @_; |
|
299 |
|
|
300 |
for my $bar ($::request->layout->get('actionbar')) { |
|
301 |
$bar->add( |
|
302 |
action => [ |
|
303 |
t8('Continue'), |
|
304 |
submit => [ '#form', { action => 'PartsPriceUpdate/update_prices' } ], |
|
305 |
accesskey => 'enter', |
|
306 |
], |
|
307 |
|
|
308 |
action => [ |
|
309 |
t8('Back'), |
|
310 |
call => [ 'kivi.history_back' ], |
|
311 |
], |
|
312 |
); |
|
313 |
} |
|
314 |
} |
|
315 |
|
|
281 | 316 |
1; |
templates/webpages/ic/confirm_price_update.html | ||
---|---|---|
3 | 3 |
[%- USE LxERP %] |
4 | 4 |
[%- USE L %] |
5 | 5 |
|
6 |
<form method="post" action="controller.pl"> |
|
6 |
<form method="post" action="controller.pl" id="form">
|
|
7 | 7 |
|
8 | 8 |
<h2 class="confirm">[% 'Confirm!' | $T8 %]</h2> |
9 | 9 |
|
... | ... | |
11 | 11 |
|
12 | 12 |
<p>[% 'Are you sure you want to update the prices' | $T8 %]?</p> |
13 | 13 |
|
14 |
<p> |
|
15 |
[% L.hidden_tag('filter_key', filter_key) %] |
|
16 |
[% L.hidden_tag('action', 'PartsPriceUpdate/dispatch') %] |
|
17 |
<input name="action_update_prices" class="submit" type="submit" value="[% 'Continue' | $T8 %]"> |
|
18 |
<input type="button" class="submit" onclick="history.back()" value="[% 'Back' | $T8 %]"> |
|
19 |
</p> |
|
14 |
[% L.hidden_tag('filter_key', filter_key) %] |
|
20 | 15 |
</form> |
templates/webpages/ic/search_update_prices.html | ||
---|---|---|
6 | 6 |
|
7 | 7 |
[% PROCESS 'common/flash.html' %] |
8 | 8 |
|
9 |
<form method="post" action="controller.pl"> |
|
9 |
<form method="post" action="controller.pl" id="form">
|
|
10 | 10 |
<table> |
11 | 11 |
<tr> |
12 | 12 |
<th align="right" nowrap>[% 'Part Number' | $T8 %]</th> |
... | ... | |
102 | 102 |
[%- END %] |
103 | 103 |
|
104 | 104 |
</table> |
105 |
|
|
106 |
<hr size="3" noshade> |
|
107 |
|
|
108 |
[% L.hidden_tag('action', 'PartsPriceUpdate/dispatch') %] |
|
109 |
<input class="submit" type="submit" name="action_confirm_price_update" value="[% 'Continue' | $T8 %]"> |
|
110 | 105 |
</form> |
111 |
|
Auch abrufbar als: Unified diff
ActionBar: Verwendung bei »Preise aktualisieren«