Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c0714b3d

Von Moritz Bunkus vor fast 8 Jahren hinzugefügt

  • ID c0714b3dd66a355cc2c2a548cb82414f86dca456
  • Vorgänger 9c0b55ba
  • Nachfolger 22160ea4

ActionBar: Verwendung beim Lieferplan

Unterschiede anzeigen:

SL/Controller/DeliveryPlan.pm
41 41

  
42 42
  my $orderitems = $self->models->get;
43 43
  $self->calc_qtys($orderitems);
44
  $self->report_generator_list_objects(report => $self->{report}, objects => $orderitems);
44
  $self->setup_list_action_bar;
45
  $self->report_generator_list_objects(report => $self->{report}, objects => $orderitems, action_bar => 1);
45 46
}
46 47

  
47 48
# private functions
......
422 423
  }
423 424
}
424 425

  
426
sub setup_list_action_bar {
427
  my ($self, %params) = @_;
428

  
429
  for my $bar ($::request->layout->get('actionbar')) {
430
    $bar->add(
431
      action => [
432
        t8('Update'),
433
        submit    => [ '#filter_form', { action => 'DeliveryPlan/list' } ],
434
        accesskey => 'enter',
435
      ],
436
    );
437
  }
438
}
439

  
425 440
1;
templates/webpages/delivery_plan/_filter.html
94 94
  </tr>
95 95
 </table>
96 96

  
97
[% L.hidden_tag('action', 'DeliveryPlan/dispatch') %]
98 97
[% L.hidden_tag('sort_by', FORM.sort_by) %]
99 98
[% L.hidden_tag('sort_dir', FORM.sort_dir) %]
100 99
[% L.hidden_tag('page', FORM.page) %]
101 100
[% L.hidden_tag('vc', SELF.vc) %]
102 101
[% L.hidden_tag('mode', SELF.mode) %]
103
[% L.input_tag('action_list', LxERP.t8('Continue'), type = 'submit', class='submit')%]
104

  
105 102
[% L.button_tag('$("#filter_form").resetForm()', LxERP.t8('Reset')) %]
106 103
</div>
107 104

  

Auch abrufbar als: Unified diff