Revert "RT#41671 Fix double click prevention for all legacy buttons [renamed all...
[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     <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
9
10       <TR>
11         <TH CLASS="background" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Search options</FONT></TH>
12       </TR>
13
14       <% include( '/elements/tr-select-agent.html', 'disable_empty'=>0 ) %>
15
16       <% include( '/elements/tr-select-cust_main-status.html',
17                     'label' => 'Customer status',
18                     # this field is just called 'status'
19                 )
20       %>
21
22       <% include( '/elements/tr-select-part_event.html',
23                     'label'        => 'Events',
24                     'multiple'     => 1,
25                     'all_selected' => 1,
26                 )
27       %>
28
29 %     if ( $cgi->param('failed') ) {
30       <& /elements/tr-fixed.html,
31         'label'         => 'Event status',
32         'field'         => 'event_status',
33         'curr_value'    => 'failed',
34         'formatted_value' => 'Failed',
35       &>
36 %     } else {
37
38 % # 'initial' is not on here, since nobody needs to see it. also,
39 % # 'done_Y' and 'done_N' are shorthand for "done, and no_action
40 % # is null" and "done, and no_action = 'Y'".
41       <& /elements/tr-select.html,
42         'label'         => 'Event status',
43         'field'         => 'event_status',
44         'multiple'      => 1,
45         'all_selected'  => 1,
46         'size'          => 5,
47         'options'       => [ qw( done_Y done_N failed new locked ) ],
48         'option_labels' => { done_Y => 'Completed',
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>