Revision ae15b9a0
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
SL/Controller/EmailJournal.pm | ||
---|---|---|
32 | 32 |
if ( $::instance_conf->get_email_journal == 0 ) { |
33 | 33 |
flash('info', $::locale->text('Storing the emails in the journal is currently disabled in the client configuration.')); |
34 | 34 |
} |
35 |
$self->setup_list_action_bar; |
|
35 | 36 |
$self->render('email_journal/list', |
36 | 37 |
title => $::locale->text('Email journal'), |
37 | 38 |
ENTRIES => $self->models->get, |
... | ... | |
51 | 52 |
$::form->error(t8('You do not have permission to access this entry.')); |
52 | 53 |
} |
53 | 54 |
|
55 |
$self->setup_show_action_bar; |
|
54 | 56 |
$self->render('email_journal/show', |
55 | 57 |
title => $::locale->text('View sent email'), |
56 | 58 |
back_to => $back_to); |
... | ... | |
134 | 136 |
return join ', ', @filter_strings; |
135 | 137 |
} |
136 | 138 |
|
139 |
sub setup_list_action_bar { |
|
140 |
my ($self) = @_; |
|
141 |
|
|
142 |
for my $bar ($::request->layout->get('actionbar')) { |
|
143 |
$bar->add( |
|
144 |
action => [ |
|
145 |
t8('Filter'), |
|
146 |
submit => [ '#filter_form', { action => 'EmailJournal/list' } ], |
|
147 |
accesskey => 'enter', |
|
148 |
], |
|
149 |
); |
|
150 |
} |
|
151 |
} |
|
152 |
|
|
153 |
sub setup_show_action_bar { |
|
154 |
my ($self) = @_; |
|
155 |
|
|
156 |
for my $bar ($::request->layout->get('actionbar')) { |
|
157 |
$bar->add( |
|
158 |
action => [ |
|
159 |
t8('Back'), |
|
160 |
call => [ 'kivi.history_back' ], |
|
161 |
], |
|
162 |
); |
|
163 |
} |
|
164 |
} |
|
165 |
|
|
137 | 166 |
1; |
templates/webpages/email_journal/_filter.html | ||
---|---|---|
30 | 30 |
</tr> |
31 | 31 |
</table> |
32 | 32 |
|
33 |
[% L.hidden_tag("action", "EmailJournal/dispatch") %] |
|
34 | 33 |
[% L.hidden_tag("sort_by", FORM.sort_by) %] |
35 | 34 |
[% L.hidden_tag("sort_dir", FORM.sort_dir) %] |
36 | 35 |
[% L.hidden_tag("page", FORM.page) %] |
37 |
[% L.submit_tag("action_list", LxERP.t8("Continue"))%] |
|
38 | 36 |
|
39 | 37 |
[% L.button_tag('$("#filter_form").resetForm()', LxERP.t8('Reset')) %] |
40 | 38 |
|
templates/webpages/email_journal/show.html | ||
---|---|---|
77 | 77 |
</tbody> |
78 | 78 |
</table> |
79 | 79 |
[% END %] |
80 |
|
|
81 |
<p> |
|
82 |
<a href="[% back_to %]">[%- LxERP.t8("Back") %]</a> |
|
83 |
</p> |
Auch abrufbar als: Unified diff
ActionBar: Verwendung im E-Mail-Journal