X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=10fcde3c42a23d489fa7869f0d65e30f822c0668;hb=ba5975d05c4bf88a47750fecf8651821460ab30f;hp=13286cf212d9f5f850752f1ac2a20e95684d84d2;hpb=89e3b22429fb7c216a6f4755002bf50677dd9e97;p=freeside.git diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index 13286cf21..10fcde3c4 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -43,7 +43,10 @@ Click on a configuration value to change it. % foreach my $i (@{ $section_items{$section} }) { @@ -209,7 +212,7 @@ Click on a configuration value to change it. -% } elsif ( $type =~ /^select-(part_svc|part_pkg|pkg_class)$/ ) { +% } elsif ( $type =~ /^select-(part_svc|part_pkg|pkg_class|agent)$/ ) { % % my $table = $1; % my $namecol = $namecol{$table}; @@ -315,12 +318,14 @@ my %namecol = ( 'part_svc' => 'svc', 'part_pkg' => 'pkg', 'pkg_class' => 'classname', + 'agent' => 'agent', ); <%init> -die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); +my $curuser = $FS::CurrentUser::CurrentUser; + +die "access denied" unless $curuser->access_right('Configuration'); my $page_agent = ''; my $title; @@ -345,7 +350,7 @@ my @config_items = grep { $page_agent ? $_->per_agent : 1 } my @deleteable = qw( invoice_latexreturnaddress invoice_htmlreturnaddress ); my %deleteable = map { $_ => 1 } @deleteable; -my @sections = qw(required billing username password UI session shell BIND ); +my @sections = qw(required billing invoicing notification UI self-service username password session shell BIND telephony ); push @sections, '', 'deprecated'; my %section_items = ();
- <% ucfirst($section || 'unclassified') %> configuration options + <% ucfirst($section || 'unclassified') %> +% if ( $curuser->option('show_confitem_counts') ) { + (<% scalar( @{ $section_items{$section} } ) %> items) +% }