X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Frate_region.cgi;h=cae30030a2daa70ede28d5c28da581a101b54913;hb=f7e5e7625b04164ce2e0aac77a85bc03a7d48a6f;hp=bd3dcbd46695a7b0792d763bf40a725ffa792a44;hpb=718f65eee1c797ea90a315b5f03fae75c80a5112;p=freeside.git
diff --git a/httemplate/edit/rate_region.cgi b/httemplate/edit/rate_region.cgi
index bd3dcbd46..cae30030a 100644
--- a/httemplate/edit/rate_region.cgi
+++ b/httemplate/edit/rate_region.cgi
@@ -1,119 +1,95 @@
-
-%
-%
-%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",
))
%>
-% if ( $cgi->param('error') ) {
-
-Error: <% $cgi->param('error') %>
-% }
+<% include('/elements/error.html') %>