From: ivan Date: Tue, 27 Jul 2010 01:48:23 +0000 (+0000) Subject: add test page for maestro status, RT#9381 X-Git-Tag: root_of_svc_elec_features~23 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;ds=sidebyside;h=d0cfae64ac8c44a379b0f64e4f47a678ecd8fe77;p=freeside.git add test page for maestro status, RT#9381 --- diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 0d891be25..0d77f3de6 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -3821,6 +3821,14 @@ and customer address. Include units.', 'select_enum' => [ 'misc_info', 'top' ], }, + { + 'key' => 'maestro-status_test', + 'section' => 'UI', + 'description' => 'Display a link to the maestro status test page on the customer view page', + 'type' => 'checkbox', + }, + + { key => "apacheroot", section => "deprecated", description => "DEPRECATED", type => "text" }, { key => "apachemachine", section => "deprecated", description => "DEPRECATED", type => "text" }, { key => "apachemachines", section => "deprecated", description => "DEPRECATED", type => "text" }, diff --git a/httemplate/misc/maestro-customer_status-test.html b/httemplate/misc/maestro-customer_status-test.html new file mode 100644 index 000000000..16d4b5728 --- /dev/null +++ b/httemplate/misc/maestro-customer_status-test.html @@ -0,0 +1,32 @@ +<% include('/elements/header.html', { + 'title' => "Customer $query status", + }) %> + +<% include('/elements/small_custview.html', $query, '', 1) %> +
+ + +% foreach my $key (keys %$return) { + + + + +% } +
<% $key %>:<% $return->{$key} %>
+ +<% include('/elements/footer.html') %> +<%init> + +my $return; + +my($query) = $cgi->keywords; +if ( $query =~ /^(\d+)$/ ) { + + use FS::Maestro; + $return = FS::Maestro::customer_status($1); + +} else { + $return = { 'error' => 'No custnum' }; +} + + diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index a196c7510..f6bef43ba 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -90,6 +90,9 @@ function areyousure(href, message) { This customer's signup URL: <% $signupurl %>?ref=<% $custnum %>

% } +%if ( $conf->exists('maestro-status_test') ) { + Test maestro status

+% }