From 4b4b3ca9cb0b7336293b759549b78fc903a7d8c8 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 15 Oct 2005 11:29:54 +0000 Subject: agent option to select RT queue --- httemplate/browse/agent.cgi | 15 ++++++++ httemplate/config/config-view.cgi | 26 ++++++++++--- httemplate/config/config.cgi | 15 ++++++++ httemplate/edit/agent.cgi | 80 +++++++++++++++++++++++++++------------ 4 files changed, 106 insertions(+), 30 deletions(-) (limited to 'httemplate') diff --git a/httemplate/browse/agent.cgi b/httemplate/browse/agent.cgi index e3c4022d4..05300d0bd 100755 --- a/httemplate/browse/agent.cgi +++ b/httemplate/browse/agent.cgi @@ -8,6 +8,8 @@ %search = ( 'disabled' => '' ); } + my $conf = new FS::Conf; + %> <%= header('Agent Listing', menubar( 'Main Menu' => $p, @@ -36,6 +38,9 @@ full offerings (via their type).

Reports Registration codes Prepaid cards + <% if ( $conf->config('ticket_system') ) { %> + Ticketing + <% } %> Payment Gateway Overrides Freq. Prog. @@ -175,6 +180,16 @@ foreach my $agent ( sort {
Generate cards + <% if ( $conf->config('ticket_system') ) { %> + + + <% if ( $agent->ticketing_queueid ) { %> + Queue: <%= $agent->ticketing_queueid %>: <%= $agent->ticketing_queue %>
+ <% } %> + + + <% } %> + <% foreach my $override ( diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index 9a0006792..8011e7697 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -36,19 +36,35 @@ <% foreach my $type ( ref($i->type) ? @{$i->type} : $i->type ) { my $n = 0; %> <% if ( $type eq '' ) { %> - + + + <% } elsif ( $type eq 'textarea' || $type eq 'editlist' || $type eq 'selectmultiple' ) { %> - + + + <% } elsif ( $type eq 'checkbox' ) { %> - + + + <% } elsif ( $type eq 'text' || $type eq 'select' ) { %> - + + + <% } elsif ( $type eq 'select-sub' ) { %> + + + <% } else { %>
no type
no type
+
 <%= encode_entities(join("\n", $conf->config($i->key) ) ) %>
 
-
YES' : 'ff0000">NO' %>
YES' : 'ff0000">NO' %>
<%= $conf->exists($i->key) ? $conf->config($i->key) : '' %>
+ <%= $conf->exists($i->key) ? $conf->config($i->key) : '' %> +
+ <%= $conf->config($i->key) %>: + <%= &{ $i->option_sub }( $conf->config($i->key) ) %> +
unknown type <%= $type %> diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi index 409869e11..ff29d8578 100644 --- a/httemplate/config/config.cgi +++ b/httemplate/config/config.cgi @@ -73,6 +73,21 @@ function SafeOnsubmit() {