Revert "RT# 39340 - configured the minimal selfservice to get mac address from radius...
[freeside.git] / httemplate / search / report_cust_event.html
1 <% include(
2       '/elements/header.html',
3       ( $cgi->param('failed') ? 'Failed billing events' : 'Billing events' ),
4    )
5 %>
6
7     <FORM ACTION="cust_event.html" METHOD="GET">
8
9     <FONT CLASS="fsinnerbox-title"><% emt('Search options') %></FONT>
10     <TABLE CLASS="fsinnerbox">
11
12       <% include( '/elements/tr-select-agent.html', 'disable_empty'=>0 ) %>
13
14       <% include( '/elements/tr-select-cust_main-status.html',
15                     'label' => 'Customer status',
16                     # this field is just called 'status'
17                 )
18       %>
19
20       <% include( '/elements/tr-select-part_event.html',
21                     'label'        => 'Events',
22                     'multiple'     => 1,
23                     'all_selected' => 1,
24                 )
25       %>
26
27 %     if ( $cgi->param('failed') ) {
28       <& /elements/tr-fixed.html,
29         'label'         => 'Event status',
30         'field'         => 'event_status',
31         'curr_value'    => 'failed',
32         'formatted_value' => 'Failed',
33       &>
34 %     } else {
35
36 % # 'initial' is not on here, since nobody needs to see it. also,
37 % # 'done_Y' = "done, and no_action is null, and statustext is null"
38 % # 'done_S' = "done, and no_action is null, and statustext is not null"
39 % # 'done_N' = "done, and no_action = 'Y'".
40       <& /elements/tr-select.html,
41         'label'         => 'Event status',
42         'field'         => 'event_status',
43         'multiple'      => 1,
44         'all_selected'  => 1,
45         'size'          => 6,
46         'options'       => [ qw( done_Y done_S done_N failed new locked ) ],
47         'option_labels' => { done_Y => 'Completed normally',
48                              done_S => 'Completed, with an error',
49                              done_N => 'Completed, no action taken',
50                              failed => 'Failed',
51                              new    => 'Not yet processed',
52                              locked => 'Running',
53                            },
54       &>
55 %     }
56
57       <% include( '/elements/tr-input-beginning_ending.html' ) %>
58
59     </TABLE>
60     <BR><INPUT TYPE="submit" VALUE="Get Report">
61     </FORM>
62
63 <% include('/elements/footer.html') %>
64 <%init>
65
66 die "access denied"
67   unless $FS::CurrentUser::CurrentUser->access_right('Billing event reports');
68
69 </%init>