Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d281eedf

Von Moritz Bunkus vor mehr als 7 Jahren hinzugefügt

  • ID d281eedf12fcb699ebddbaa8395d6f15a06cff1f
  • Vorgänger dcef8eb0
  • Nachfolger a6cf76a2

ActionBar: Verwendung in Berichtsfunktion in oe.pl

Unterschiede anzeigen:

bin/mozilla/oe.pl
420 420
  }
421 421
}
422 422

  
423
sub setup_oe_search_action_bar {
424
  my %params = @_;
425

  
426
  for my $bar ($::request->layout->get('actionbar')) {
427
    $bar->add(
428
      action => [
429
        t8('Search'),
430
        submit    => [ '#form' ],
431
        accesskey => 'enter',
432
      ],
433
    );
434
  }
435
}
436

  
423 437
sub form_header {
424 438
  $main::lxdebug->enter_sub();
425 439
  my @custom_hiddens;
......
891 905

  
892 906
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(autocomplete_project));
893 907

  
908
  setup_oe_search_action_bar();
909

  
894 910
  $form->header();
895 911

  
896 912
  print $form->parse_html_template('oe/search', {
......
1219 1235
  $report->add_separator();
1220 1236
  $report->add_data(create_subtotal_row(\%totals, \@columns, \%column_alignment, \@subtotal_columns, 'listtotal'));
1221 1237

  
1222
  $report->generate_with_headers();
1238
  $report->generate_with_headers(action_bar => 1);
1223 1239

  
1224 1240
  $main::lxdebug->leave_sub();
1225 1241
}
templates/webpages/oe/search.html
10 10
[%- SET vcdefault = 'old' _ vc %]
11 11
[%- SET style="width: 250px" %]
12 12

  
13
<form method="post" action="oe.pl">
13
<form method="post" action="oe.pl" id="form">
14 14

  
15 15
<table width="100%">
16 16
 <tr>
......
316 316
 </tr>
317 317
</table>
318 318

  
319
<br>
320
<input type="hidden" name="nextsub" value="orders">
321 319
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
322 320
<input type="hidden" name="type" value="[% HTML.escape(type) %]">
323
<input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
321
<input type="hidden" name="action" value="orders">
324 322
</form>

Auch abrufbar als: Unified diff