Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6da55ef4

Von Moritz Bunkus vor mehr als 8 Jahren hinzugefügt

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

ActionBar: Verwendung beim GoDB-Export

Unterschiede anzeigen:

SL/Controller/GoBD.pm
$self->to(DateTime->today) if !$self->to;
$::request->layout->add_javascripts('kivi.GoBD.js');
$self->setup_filter_action_bar;
$self->render('gobd/filter', current_year => DateTime->today->year, title => t8('GoBD Export'));
}
......
sub init_from { DateTime->from_kivitendo($::form->{from}) }
sub init_to { DateTime->from_kivitendo($::form->{to}) }
sub setup_filter_action_bar {
my ($self) = @_;
for my $bar ($::request->layout->get('actionbar')) {
$bar->add(
action => [
t8('Export'),
submit => [ '#filter_form', { action => 'GoBD/export' } ],
accesskey => 'enter',
],
);
}
}
1;
templates/webpages/gobd/filter.html
<td>[% L.date_tag('to', SELF.to) %]</td>
</tr>
</table>
[% L.hidden_tag('action', 'GoBD/dispatch') %]
[% L.submit_tag('action_export', LxERP.t8('Export')) %]
</form>

Auch abrufbar als: Unified diff