X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fbrowse%2Frate.cgi;h=ea59a0c5bc462312f308fa57ca43dd115ac5d3ff;hb=d5988a9f7a3617de33da3058f2e9f1151b24420e;hp=9bdbe2d0cd068b957b011f9ca49d3fbbe3a88c10;hpb=c8cccb4a92adceb943c635fe62dad0d034462ce0;p=freeside.git
diff --git a/httemplate/browse/rate.cgi b/httemplate/browse/rate.cgi
index 9bdbe2d0c..ea59a0c5b 100644
--- a/httemplate/browse/rate.cgi
+++ b/httemplate/browse/rate.cgi
@@ -1,34 +1,79 @@
-%
-%
-%my $html_init =
-% 'Rate plans, regions and prefixes for VoIP and call billing.
'.
-% qq!Add a rate plan!.
-% qq! | Add a region!.
-% '
-% ';
-%
-%my $count_query = 'SELECT COUNT(*) FROM rate';
-%
-%my $link = [ $p.'edit/rate.cgi?', 'ratenum' ];
-%
-%
<% 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
+ )
%>
+<%once>
+
+my $all_countrycodes = join("\n", map qq(