1 <% include( 'elements/edit.html',
2 'name_singular' => 'log email condition',
3 'table' => 'log_email',
5 { 'field' => 'context',
7 'options' => [ '', @contexts ],
8 'labels' => { '' => '(all)', map { $_ => $_ } @contexts },
9 'curr_value' => scalar($cgi->param('context')),
11 { 'field' => 'min_level',
13 'options' => [ 0..7 ],
14 'labels' => { map {$_ => $FS::Log::LEVELS[$_]} 0..7 },
15 'curr_value' => scalar($cgi->param('min_level')),
18 { 'field' => 'msgnum',
19 'type' => 'select-msg_template',
20 'empty_label' => 'Select template',
25 'context' => 'Context',
26 'min_level' => 'Min. Level',
28 'msgnum' => 'Message',
30 'viewall_dir' => 'browse',
31 'popup' => $opts{'popup'},
32 'form_init' => $opts{'popup'} ? q(<INPUT TYPE="hidden" NAME="popup" VALUE="1">) : '',
36 my @contexts = sort FS::log_context->contexts;
43 unless $FS::CurrentUser::CurrentUser->access_right([ 'View system logs', 'Configuration' ]);