Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 22160ea4

Von Moritz Bunkus vor fast 8 Jahren hinzugefügt

  • ID 22160ea4c5a22844f77b3309c03ca6f4c84da6ac
  • Vorgänger c0714b3d
  • Nachfolger 8395e0d0

ActionBar: Verwendung beim Lieferwertbericht

Unterschiede anzeigen:

SL/Controller/DeliveryValueReport.pm
55 55

  
56 56
  my $orderitems = $self->models->get;
57 57
  $self->calc_qtys_price($orderitems);
58
  $self->report_generator_list_objects(report => $self->{report}, objects => $orderitems);
58
  $self->setup_list_action_bar;
59
  $self->report_generator_list_objects(report => $self->{report}, objects => $orderitems, action_bar => 1);
59 60
}
60 61

  
61 62
sub prepare_report {
......
293 294
  }
294 295
}
295 296

  
296

  
297

  
297
sub setup_list_action_bar {
298
  my ($self, %params) = @_;
299

  
300
  for my $bar ($::request->layout->get('actionbar')) {
301
    $bar->add(
302
      action => [
303
        t8('Update'),
304
        submit    => [ '#filter_form', { action => 'DeliveryValueReport/list' } ],
305
        accesskey => 'enter',
306
      ],
307
    );
308
  }
309
}
298 310

  
299 311
1;
300 312

  
templates/webpages/delivery_value_report/_filter.html
88 88
  </tr>
89 89
 </table>
90 90

  
91
[% L.hidden_tag('action', 'DeliveryValueReport/dispatch') %]
92 91
[% L.hidden_tag('sort_by', FORM.sort_by) %]
93 92
[% L.hidden_tag('sort_dir', FORM.sort_dir) %]
94 93
[% L.hidden_tag('page', FORM.page) %]
95 94
[% L.hidden_tag('vc', SELF.vc) %]
96
[% L.input_tag('action_list', LxERP.t8('Continue'), type = 'submit', class='submit')%]
97 95
[% L.button_tag('$("#filter_form").resetForm()', LxERP.t8('Reset')) %]
98 96
</div>
99 97

  

Auch abrufbar als: Unified diff