if ( $::instance_conf->get_email_journal == 0 ) {
flash('info', $::locale->text('Storing the emails in the journal is currently disabled in the client configuration.'));
}
+ $self->setup_list_action_bar;
$self->render('email_journal/list',
title => $::locale->text('Email journal'),
ENTRIES => $self->models->get,
$::form->error(t8('You do not have permission to access this entry.'));
}
+ $self->setup_show_action_bar;
$self->render('email_journal/show',
title => $::locale->text('View sent email'),
back_to => $back_to);
return join ', ', @filter_strings;
}
+sub setup_list_action_bar {
+ my ($self) = @_;
+
+ for my $bar ($::request->layout->get('actionbar')) {
+ $bar->add(
+ action => [
+ t8('Filter'),
+ submit => [ '#filter_form', { action => 'EmailJournal/list' } ],
+ accesskey => 'enter',
+ ],
+ );
+ }
+}
+
+sub setup_show_action_bar {
+ my ($self) = @_;
+
+ for my $bar ($::request->layout->get('actionbar')) {
+ $bar->add(
+ action => [
+ t8('Back'),
+ call => [ 'kivi.history_back' ],
+ ],
+ );
+ }
+}
+
1;
</tr>
</table>
- [% L.hidden_tag("action", "EmailJournal/dispatch") %]
[% L.hidden_tag("sort_by", FORM.sort_by) %]
[% L.hidden_tag("sort_dir", FORM.sort_dir) %]
[% L.hidden_tag("page", FORM.page) %]
- [% L.submit_tag("action_list", LxERP.t8("Continue"))%]
[% L.button_tag('$("#filter_form").resetForm()', LxERP.t8('Reset')) %]