X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fedit%2Frate_region.cgi;h=f77c0dbe770b403d385627fa025f866657be140f;hb=7b125e587a4d1ee0aca692e23ea7897f671855ae;hp=d55c0de43bfa94583648f820a0ac9ba42d990394;hpb=4ff01614d071303790ccb7dbf18eccbc01e33caa;p=freeside.git
diff --git a/httemplate/edit/rate_region.cgi b/httemplate/edit/rate_region.cgi
index d55c0de43..f77c0dbe7 100644
--- a/httemplate/edit/rate_region.cgi
+++ b/httemplate/edit/rate_region.cgi
@@ -1,43 +1,5 @@
-
-%
-%
-%my $rate_region;
-%if ( $cgi->param('error') ) {
-% $rate_region = new FS::rate_region ( {
-% map { $_, scalar($cgi->param($_)) } fields('rate_region')
-% } );
-%} elsif ( $cgi->keywords ) {
-% my($query) = $cgi->keywords;
-% $query =~ /^(\d+)$/;
-% $rate_region = qsearchs( 'rate_region', { 'regionnum' => $1 } );
-%} else { #adding
-% $rate_region = new FS::rate_region {};
-%}
-%my $action = $rate_region->regionnum ? 'Edit' : 'Add';
-%
-%my $p1 = popurl(1);
-%
-%my %granularity = (
-% '6' => '6 second',
-% '60' => 'minute',
-%);
-%
-%my @rate_prefix = $rate_region->rate_prefix;
-%my $countrycode = '';
-%if ( @rate_prefix ) {
-% $countrycode = $rate_prefix[0]->countrycode;
-% foreach my $rate_prefix ( @rate_prefix ) {
-% errorpage('multiple country codes per region not yet supported by web UI')
-% unless $rate_prefix->countrycode eq $countrycode;
-% }
-%}
-%
-%
-
-
<% include("/elements/header.html","$action Region", menubar(
- 'Main Menu' => $p,
- #'View all regions' => "${p}browse/rate_region.cgi",
+ 'View all regions' => "${p}browse/rate_region.html",
))
%>
@@ -47,35 +9,65 @@
+%# region info
+
<% ntable('#cccccc') %>
-
- Region name |
- |
-
-
- Country code |
- |
-
+
+ Region name |
+ |
+
+
+ Country code |
+ |
+
-
- Prefixes |
-
-
- |
-
+
+
+ Prefixes
+ (comma-separated)
+ |
+
+
+ |
+
+%# rate plan info
+
-<% table() %>
-
- Rate plan |
- Included minutes |
- Charge per minute |
- Granularity |
-
+
+<% include('/elements/table-grid.html') %>
+% my $bgcolor1 = '#eeeeee';
+% my $bgcolor2 = '#ffffff';
+% my $bgcolor = '';
+
+
+
+ Rate plan
+ |
+
+ Included minutes/calls
+ |
+
+ Connection charge
+ |
+
+ Connection charge for
+ |
+
+ Charge per minute/call
+ |
+
+ Granularity
+ |
+
+ Usage class
+ |
+
+
% foreach my $rate ( qsearch('rate', {}) ) {
%
% my $n = $rate->ratenum;
@@ -85,32 +77,113 @@
% 'sec_granularity' => '60'
% };
%
-%
+% if ( $bgcolor eq $bgcolor1 ) {
+% $bgcolor = $bgcolor2;
+% } else {
+% $bgcolor = $bgcolor1;
+% }
- <% $rate->ratename %> |
- min_included %>"> |
- $min_charge ) %>"> |
-
- |
-% }
+% }
-
">
-
-