Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6da55ef4

Von Moritz Bunkus vor mehr als 7 Jahren hinzugefügt

  • ID 6da55ef409e53ffcc707e639ee02cf92a98e5442
  • Vorgänger 15cc7149
  • Nachfolger cb0414d6

ActionBar: Verwendung beim GoDB-Export

Unterschiede anzeigen:

SL/Controller/GoBD.pm
24 24
  $self->to(DateTime->today)                                     if !$self->to;
25 25

  
26 26
  $::request->layout->add_javascripts('kivi.GoBD.js');
27
  $self->setup_filter_action_bar;
27 28
  $self->render('gobd/filter', current_year => DateTime->today->year, title => t8('GoBD Export'));
28 29
}
29 30

  
......
102 103
sub init_from { DateTime->from_kivitendo($::form->{from}) }
103 104
sub init_to { DateTime->from_kivitendo($::form->{to}) }
104 105

  
106
sub setup_filter_action_bar {
107
  my ($self) = @_;
108

  
109
  for my $bar ($::request->layout->get('actionbar')) {
110
    $bar->add(
111
      action => [
112
        t8('Export'),
113
        submit    => [ '#filter_form', { action => 'GoBD/export' } ],
114
        accesskey => 'enter',
115
      ],
116
    );
117
  }
118
}
119

  
105 120
1;
templates/webpages/gobd/filter.html
25 25
    <td>[% L.date_tag('to', SELF.to) %]</td>
26 26
  </tr>
27 27
</table>
28

  
29
[% L.hidden_tag('action', 'GoBD/dispatch') %]
30

  
31
[% L.submit_tag('action_export', LxERP.t8('Export')) %]
32

  
33 28
</form>

Auch abrufbar als: Unified diff