|
package SL::Controller::EmailJournal;
|
|
|
|
use strict;
|
|
|
|
use parent qw(SL::Controller::Base);
|
|
|
|
use SL::Controller::Helper::GetModels;
|
|
use SL::DB::Employee;
|
|
use SL::DB::EmailJournal;
|
|
use SL::DB::EmailJournalAttachment;
|
|
use SL::DB::Order;
|
|
use SL::Helper::Flash;
|
|
use SL::Locale::String;
|
|
use SL::System::TaskServer;
|
|
use SL::Presenter::EmailJournal;
|
|
|
|
use Rose::Object::MakeMethods::Generic
|
|
(
|
|
scalar => [ qw(entry) ],
|
|
'scalar --get_set_init' => [ qw(models can_view_all filter_summary) ],
|
|
);
|
|
|
|
__PACKAGE__->run_before('add_stylesheet');
|
|
__PACKAGE__->run_before('add_js');
|
|
|
|
my %RECORD_TYPES_INFO = (
|
|
# Order
|
|
Order => {
|
"EmailJournal.pm.html#L334" data-txt="334">
}
|
|
}
|
|
|
|
sub setup_show_action_bar {
|
|
my ($self) = @_;
|
|
|
|
for my $bar ($::request->layout->get('actionbar')) {
|
|
$bar->add(
|
|
action => [
|
|
t8('Back'),
|
|
call => [ 'kivi.history_back' ],
|
|
],
|
|
);
|
|
}
|
|
}
|
|
|
|
|