diff options
author | Mark Wells <mark@freeside.biz> | 2016-04-06 14:09:42 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-04-06 14:09:49 -0700 |
commit | 11df448ba461eed4d33fded0f21ed15c155a7896 (patch) | |
tree | 79a098b65653e5f6525980ec75b4c0afdd89643e /httemplate/search/report_cust_event.html | |
parent | a16e54c819e3dd9a61f86042024405ab68a2c1ef (diff) |
add cust_event.no_action flag for events that conditionally execute, #36741
Diffstat (limited to 'httemplate/search/report_cust_event.html')
-rw-r--r-- | httemplate/search/report_cust_event.html | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/httemplate/search/report_cust_event.html b/httemplate/search/report_cust_event.html index 0dd98d479..29de5bf93 100644 --- a/httemplate/search/report_cust_event.html +++ b/httemplate/search/report_cust_event.html @@ -5,7 +5,6 @@ %> <FORM ACTION="cust_event.html" METHOD="GET"> - <INPUT TYPE="hidden" NAME="failed" VALUE="<% $cgi->param('failed') ? 1 : 0 %>"> <TABLE BGCOLOR="#cccccc" CELLSPACING=0> <TR> @@ -15,7 +14,8 @@ <% include( '/elements/tr-select-agent.html', 'disable_empty'=>0 ) %> <% include( '/elements/tr-select-cust_main-status.html', - 'label' => 'Status' + 'label' => 'Customer status', + # this field is just called 'status' ) %> @@ -26,6 +26,34 @@ ) %> +% if ( $cgi->param('failed') ) { + <& /elements/tr-fixed.html, + 'label' => 'Event status', + 'field' => 'event_status', + 'curr_value' => 'failed', + 'formatted_value' => 'Failed', + &> +% } else { + + % # 'initial' is not on here, since nobody needs to see it. also, + % # 'done_Y' and 'done_N' are shorthand for "done, and no_action + % # is null" and "done, and no_action = 'Y'". + <& /elements/tr-select.html, + 'label' => 'Event status', + 'field' => 'event_status', + 'multiple' => 1, + 'all_selected' => 1, + 'size' => 5, + 'options' => [ qw( done_Y done_N failed new locked ) ], + 'option_labels' => { done_Y => 'Completed', + done_N => 'Completed, no action taken', + failed => 'Failed', + new => 'Not yet processed', + locked => 'Running', + }, + &> +% } + <% include( '/elements/tr-input-beginning_ending.html' ) %> </TABLE> |