X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fmenu.html;h=69d793626eba79cb1b43c1051202cee2b1ac6b65;hb=74e058c8a010ef6feb539248a550d0bb169c1e94;hp=1909d909d665b3376ff310f8b8637fd9d28fa7d9;hpb=07277333b88457475d13e9bdfc24eaf83fc4ec49;p=freeside.git diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index 1909d909d..69d793626 100644 --- a/httemplate/elements/menu.html +++ b/httemplate/elements/menu.html @@ -191,8 +191,8 @@ foreach my $svcdb ( FS::part_svc->svc_tables() ) { } if ( $svcdb eq 'svc_phone' ) { - $report_svc{"Avaialble phone numbers (DIDs)"} = - [ $fsurl."search/phone_avail.html", '' ]; + $report_svc{"Phone number (DID) availability"} = + [ $fsurl."search/report_phone_avail.html", '' ]; } $report_services{$name} = [ \%report_svc, $longname ]; @@ -229,6 +229,7 @@ tie my %report_rating, 'Tie::IxHash', 'RADIUS sessions' => [ $fsurl.'search/sqlradius.html', '' ], 'Call Detail Records (CDRs)' => [ $fsurl.'search/report_cdr.html', '' ], 'Time worked' => [ $fsurl.'search/report_rt_transaction.html', '' ], + 'Time worked summary' => [ $fsurl.'search/report_rt_ticket.html', '' ], ; tie my %report_ticketing_statistics, 'Tie::IxHash', @@ -423,6 +424,9 @@ tie my %config_cust, 'Tie::IxHash', 'Customer classes' => [ $fsurl.'browse/cust_class.html', 'Customer classes define groups of customers for reporting.' ], 'Customer categories' => [ $fsurl.'browse/cust_category.html', 'Customer categories define groups of customer classes.' ], ; + +$config_cust{'Customer note classes'} = [ $fsurl.'browse/cust_note_class.html', 'Customer note classes define groups of notes for reporting.' ] + if ($conf->exists('note-classes') && $conf->config('note-classes') > 0); tie my %config_agent, 'Tie::IxHash', 'Agent types' => [ $fsurl.'browse/agent_type.cgi', 'Agent types define groups of package definitions that you can then assign to particular agents' ], @@ -559,9 +563,19 @@ $help_menu{"About RT v$RT::VERSION"} = [ 'http://www.bestpractical.com/rt', 'Req if $conf->config('ticket_system') eq 'RT_Internal'; -tie my %menu, 'Tie::IxHash', - 'Billing Main' => [ $fsurl, 'Billing start page', ], -; +tie my %menu, 'Tie::IxHash'; + +if ( $conf->config('menu-prepend_links')) { + my @links = split(/\n/, $conf->config('menu-prepend_links')); + foreach my $link (@links) { + $link =~ /^\s*(\S+)\s+(.*?)(\s*\(([^\)]*)\))?$/ or next; + my($url, $label, $alt) = ($1, $2, $4); + $menu{$label} = [ $url, $alt ]; + } +} + +$menu{'Billing Main'} = [ $fsurl, 'Billing start page', ]; + if ( $conf->config('ticket_system') ) { $menu{'Ticketing Main'} = [