Revision 0ede1996
Von Sven Schöling vor etwa 7 Jahren hinzugefügt
bin/mozilla/do.pl | ||
---|---|---|
247 | 247 |
[ t8('Update'), |
248 | 248 |
submit => [ '#form', { action => "update" } ], |
249 | 249 |
id => 'update_button', |
250 |
checks => [ 'kivi.validate_form' ], |
|
250 | 251 |
accesskey => 'enter', |
251 | 252 |
], |
252 | 253 |
|
... | ... | |
254 | 255 |
action => [ |
255 | 256 |
t8('Save'), |
256 | 257 |
submit => [ '#form', { action => "save" } ], |
257 |
checks => [ @req_trans_desc ],
|
|
258 |
checks => [ 'kivi.validate_form' ],
|
|
258 | 259 |
disabled => $::form->{delivered} ? t8('This record has already been delivered.') : undef, |
259 | 260 |
], |
260 | 261 |
action => [ |
261 | 262 |
t8('Save as new'), |
262 | 263 |
submit => [ '#form', { action => "save_as_new" } ], |
263 |
checks => [ @req_trans_desc ],
|
|
264 |
checks => [ 'kivi.validate_form' ],
|
|
264 | 265 |
disabled => !$::form->{id}, |
265 | 266 |
], |
266 | 267 |
action => [ |
267 | 268 |
t8('Mark as closed'), |
268 | 269 |
submit => [ '#form', { action => "mark_closed" } ], |
269 |
checks => [ @req_trans_desc ],
|
|
270 |
checks => [ 'kivi.validate_form' ],
|
|
270 | 271 |
confirm => t8('This will remove the delivery order from showing as open even if contents are not delivered. Proceed?'), |
271 | 272 |
disabled => !$::form->{id} ? t8('This record has not been saved yet.') |
272 | 273 |
: $::form->{closed} ? t8('This record has already been closed.') |
... | ... | |
289 | 290 |
action => [ |
290 | 291 |
t8('Transfer out'), |
291 | 292 |
submit => [ '#form', { action => "transfer_out" } ], |
292 |
checks => [ @req_trans_desc, @transfer_qty ],
|
|
293 |
checks => [ 'kivi.validate_form', @transfer_qty ],
|
|
293 | 294 |
disabled => $::form->{delivered} ? t8('This record has already been delivered.') : undef, |
294 | 295 |
only_if => $is_customer, |
295 | 296 |
], |
296 | 297 |
action => [ |
297 | 298 |
t8('Transfer out via default'), |
298 | 299 |
submit => [ '#form', { action => "transfer_out_default" } ], |
299 |
checks => [ @req_trans_desc ],
|
|
300 |
checks => [ 'kivi.validate_form' ],
|
|
300 | 301 |
disabled => $::form->{delivered} ? t8('This record has already been delivered.') : undef, |
301 | 302 |
only_if => $is_customer && $::instance_conf->get_transfer_default, |
302 | 303 |
], |
303 | 304 |
action => [ |
304 | 305 |
t8('Transfer in'), |
305 | 306 |
submit => [ '#form', { action => "transfer_in" } ], |
306 |
checks => [ @req_trans_desc, @transfer_qty ],
|
|
307 |
checks => [ 'kivi.validate_form', @transfer_qty ],
|
|
307 | 308 |
disabled => $::form->{delivered} ? t8('This record has already been delivered.') : undef, |
308 | 309 |
only_if => !$is_customer, |
309 | 310 |
], |
310 | 311 |
action => [ |
311 | 312 |
t8('Transfer in via default'), |
312 | 313 |
submit => [ '#form', { action => "transfer_in_default" } ], |
313 |
checks => [ @req_trans_desc ],
|
|
314 |
checks => [ 'kivi.validate_form' ],
|
|
314 | 315 |
disabled => $::form->{delivered} ? t8('This record has already been delivered.') : undef, |
315 | 316 |
only_if => !$is_customer && $::instance_conf->get_transfer_default, |
316 | 317 |
], |
... | ... | |
330 | 331 |
action => [ |
331 | 332 |
t8('Print'), |
332 | 333 |
call => [ 'kivi.SalesPurchase.show_print_dialog' ], |
333 |
checks => [ @req_trans_desc ],
|
|
334 |
checks => [ 'kivi.validate_form' ],
|
|
334 | 335 |
], |
335 | 336 |
action => [ |
336 | 337 |
t8('E Mail'), |
337 | 338 |
call => [ 'kivi.SalesPurchase.show_email_dialog' ], |
338 |
checks => [ @req_trans_desc ],
|
|
339 |
checks => [ 'kivi.validate_form' ],
|
|
339 | 340 |
], |
340 | 341 |
], # end of combobox "Export" |
341 | 342 |
|
... | ... | |
354 | 355 |
], # end if combobox "more" |
355 | 356 |
); |
356 | 357 |
} |
358 |
$::request->layout->add_javascripts('kivi.Validator.js'); |
|
357 | 359 |
} |
358 | 360 |
|
359 | 361 |
sub setup_do_search_action_bar { |
... | ... | |
365 | 367 |
t8('Search'), |
366 | 368 |
submit => [ '#form' ], |
367 | 369 |
accesskey => 'enter', |
370 |
checks => [ 'kivi.validate_form' ], |
|
368 | 371 |
], |
369 | 372 |
); |
370 | 373 |
} |
374 |
$::request->layout->add_javascripts('kivi.Validator.js'); |
|
371 | 375 |
} |
372 | 376 |
|
373 | 377 |
sub setup_do_orders_action_bar { |
Auch abrufbar als: Unified diff
kivi.Validator: In DO Suche und Normaler Maske als check registriert