Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision fb1da87c

Von Moritz Bunkus vor mehr als 7 Jahren hinzugefügt

  • ID fb1da87cc688c778ea8fcb9a2baf69aced38d875
  • Vorgänger 22faee92
  • Nachfolger 21b1fba6

ActionBar: Verwendung bei Hinzufügen-zu-Beleg-Artikel-Auswahlliste

Unterschiede anzeigen:

bin/mozilla/io.pl
507 507
  $main::lxdebug->leave_sub();
508 508
}
509 509

  
510
sub setup_io_select_item_action_bar {
511
  my %params = @_;
512

  
513
  for my $bar ($::request->layout->get('actionbar')) {
514
    $bar->add(
515
      action => [
516
        t8('Continue'),
517
        submit    => [ '#form' ],
518
        accesskey => 'enter',
519
      ],
520
    );
521
  }
522
}
523

  
510 524
sub select_item {
511 525
  $main::lxdebug->enter_sub();
512 526

  
......
515 529
  my $pre_entered_qty = $params{pre_entered_qty} || 1;
516 530
  _check_io_auth();
517 531

  
532
  setup_io_select_item_action_bar();
533

  
518 534
  my $previous_form = $::auth->save_form_in_session(form => $::form);
519 535
  $::form->{title}  = $::myconfig{item_multiselect} ?
520 536
      $::locale->text('Set count for one or more of the items to select them'):
templates/webpages/io/select_item.html
2 2
[% SET COLS = 8 %]
3 3
<h1>[% title %]</h1>
4 4

  
5
 <form method="post" action="[% HTML.escape(script) %]">
5
 <form method="post" action="[% HTML.escape(script) %]" id="form">
6 6

  
7 7
  <table width="100%">
8 8
   <tr class="listheading">
......
56 56

  
57 57
  [% L.hidden_tag('select_item_mode', MODE) %]
58 58
  [% L.hidden_tag('select_item_previous_form', PREVIOUS_FORM) %]
59
  [% L.hidden_tag('nextsub', 'item_selected') %]
60

  
61
  [% L.submit_tag('action', LxERP.t8('Continue')) %]
59
  [% L.hidden_tag('action', 'item_selected') %]
62 60
 </form>
63 61

  
64 62
[%- IF MYCONFIG.item_multiselect %]

Auch abrufbar als: Unified diff