X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fbrowse%2Frate.cgi;h=ea59a0c5bc462312f308fa57ca43dd115ac5d3ff;hp=584891aea02125da4d83eb24fc521710c1eabefd;hb=a17d255a7678d360c3673a461b091608b181716c;hpb=9509e5bfb7f9331303153cac24d7bfecbe2ea9f1 diff --git a/httemplate/browse/rate.cgi b/httemplate/browse/rate.cgi index 584891aea..ea59a0c5b 100644 --- a/httemplate/browse/rate.cgi +++ b/httemplate/browse/rate.cgi @@ -1,37 +1,79 @@ <% include( 'elements/browse.html', - 'title' => 'Rate plans', - 'menubar' => [ 'Main menu' => $p, ], - 'html_init' => $html_init, - 'name' => 'rate plans', - 'query' => { 'table' => 'rate', - 'hashref' => {}, - 'extra_sql' => 'ORDER BY ratenum', - }, - 'count_query' => $count_query, - 'header' => [ '#', 'Rate plan', ], - 'fields' => [ 'ratenum', 'ratename' ], - 'links' => [ $link, $link ], - ) + 'title' => 'Rate plans', + 'menubar' => \@menubar, + 'html_init' => $html_init, + 'name' => 'rate plans', + 'query' => { 'table' => 'rate', + 'hashref' => {}, + 'order_by' => 'ORDER BY ratenum', + }, + 'count_query' => $count_query, + 'header' => [ '#', 'Rate plan', 'Rates' ], + 'fields' => [ 'ratenum', 'ratename', $rates_sub ], + 'links' => [ $link, $link, '' ], + 'agent_virt' => 1, + 'agent_pos' => 1, + 'agent_null_right' => 'Configuration', #'Edit global CDR rates', + 'really_disable_download' => 1 + ) %> -<%init> +<%once> -die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); +my $all_countrycodes = join("\n", map qq(