Revision 9205a42e
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
bin/mozilla/bp.pl | ||
---|---|---|
33 | 33 |
#====================================================================== |
34 | 34 |
|
35 | 35 |
use SL::BP; |
36 |
use SL::Locale::String qw(t8); |
|
36 | 37 |
use Data::Dumper; |
37 | 38 |
use List::Util qw(first); |
38 | 39 |
|
... | ... | |
83 | 84 |
my $bp_accounts = $::form->{type} =~ /check|receipt/ |
84 | 85 |
&& BP->payment_accounts(\%::myconfig, $::form); |
85 | 86 |
|
87 |
setup_bp_search_action_bar(); |
|
88 |
|
|
86 | 89 |
$::form->header; |
87 | 90 |
print $::form->parse_html_template('bp/search', { |
88 | 91 |
label => \%label, |
... | ... | |
183 | 186 |
|
184 | 187 |
$::form->get_lists(printers => "ALL_PRINTERS"); |
185 | 188 |
|
189 |
setup_bp_list_spool_action_bar(); |
|
190 |
|
|
186 | 191 |
$::form->header; |
187 | 192 |
print $::form->parse_html_template('bp/list_spool', { |
188 | 193 |
href => build_std_url('bp.pl', @href_options), |
... | ... | |
195 | 200 |
$::lxdebug->leave_sub; |
196 | 201 |
} |
197 | 202 |
|
198 |
sub continue { call_sub($::form->{"nextsub"}); } |
|
203 |
sub setup_bp_search_action_bar { |
|
204 |
my %params = @_; |
|
205 |
|
|
206 |
for my $bar ($::request->layout->get('actionbar')) { |
|
207 |
$bar->add( |
|
208 |
action => [ |
|
209 |
t8('Show'), |
|
210 |
submit => [ '#form', { action => "list_spool" } ], |
|
211 |
accesskey => 'enter', |
|
212 |
], |
|
213 |
); |
|
214 |
} |
|
215 |
} |
|
216 |
|
|
217 |
sub setup_bp_list_spool_action_bar { |
|
218 |
my %params = @_; |
|
219 |
|
|
220 |
for my $bar ($::request->layout->get('actionbar')) { |
|
221 |
$bar->add( |
|
222 |
action => [ |
|
223 |
t8('Remove'), |
|
224 |
submit => [ '#form', { action => "remove" } ], |
|
225 |
checks => [ [ 'kivi.check_if_entries_selected', '.check_all' ] ], |
|
226 |
confirm => t8('Are you sure you want to remove the marked entries from the queue?'), |
|
227 |
], |
|
228 |
action => [ |
|
229 |
t8('Print'), |
|
230 |
submit => [ '#form', { action => "print" } ], |
|
231 |
checks => [ [ 'kivi.check_if_entries_selected', '.check_all' ] ], |
|
232 |
], |
|
233 |
); |
|
234 |
} |
|
235 |
} |
templates/webpages/bp/list_spool.html | ||
---|---|---|
7 | 7 |
|
8 | 8 |
<h1>[% title | html %]</h1> |
9 | 9 |
|
10 |
<form method=post action=bp.pl> |
|
10 |
<form method="post" action="bp.pl" id="form"> |
|
11 |
|
|
12 |
<p> |
|
13 |
[% LxERP.t8("Printer") %]: [% L.select_tag('printer', ALL_PRINTERS, title_key = 'printer_description') %] |
|
14 |
</p> |
|
11 | 15 |
|
12 | 16 |
<p> |
13 | 17 |
[% FOREACH option IN options %] |
... | ... | |
54 | 58 |
|
55 | 59 |
</table> |
56 | 60 |
|
57 |
<hr size=3 noshade> |
|
58 |
<br> |
|
59 |
|
|
60 | 61 |
[% L.hidden_tag('callback', callback) %] |
61 | 62 |
[% L.hidden_tag('title', title) %] |
62 | 63 |
[% L.hidden_tag('vc', vc) %] |
... | ... | |
71 | 72 |
[% L.hidden_tag('quonumber', quonumber) %] |
72 | 73 |
[% L.hidden_tag('customer', customer) %] |
73 | 74 |
[% L.hidden_tag('vendor', vendor) %] |
74 |
|
|
75 |
[% L.submit_tag('action', LxERP.t8('Remove'), confirm=LxERP.t8('Are you sure you want to remove the marked entries from the queue?')) %] |
|
76 |
[% L.submit_tag('action', LxERP.t8('Print')) %] |
|
77 |
|
|
78 |
[% L.select_tag('printer', ALL_PRINTERS, title_key = 'printer_description') %] |
|
79 |
|
|
80 | 75 |
</form> |
templates/webpages/bp/search.html | ||
---|---|---|
2 | 2 |
[%- USE T8 %] |
3 | 3 |
[%- USE LxERP %] |
4 | 4 |
[%- USE HTML %] |
5 |
<form method=post action=bp.pl>
|
|
5 |
<form method="post" action="bp.pl" id="form">
|
|
6 | 6 |
|
7 | 7 |
<h1>[% 'Print' | $T8 %] [% label.$type.title %]</h1>[% L.hidden_tag('title', LxERP.t8('Print') _ ' ' _ label.$type.title) %] |
8 | 8 |
|
... | ... | |
55 | 55 |
</tr> |
56 | 56 |
</table> |
57 | 57 |
|
58 |
<hr size=3 noshade> |
|
59 |
<br> |
|
60 | 58 |
|
61 | 59 |
[% L.hidden_tag('sort', 'transdate') %] |
62 | 60 |
[% L.hidden_tag('vc', vc) %] |
63 | 61 |
[% L.hidden_tag('type', type) %] |
64 |
[% L.hidden_tag('nextsub', 'list_spool') %] |
|
65 |
|
|
66 |
[% L.submit_tag('action', LxERP.t8('Continue')) %] |
|
67 |
|
|
68 | 62 |
</form> |
Auch abrufbar als: Unified diff
ActionBar: Verwendung beim Massendruck