X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fedit%2Frate.cgi;h=13717dc1aa34d3dffcdbdcd082ce1ed990a5d12c;hb=d6741df87df9e3352d7ae47a02d0e3f46154fef9;hp=83a89c475209963067f6dec29163c8d0b84b43a1;hpb=f7fd2a3e34da751cbc02bbf215e99c6dc89adc15;p=freeside.git
diff --git a/httemplate/edit/rate.cgi b/httemplate/edit/rate.cgi
index 83a89c475..13717dc1a 100644
--- a/httemplate/edit/rate.cgi
+++ b/httemplate/edit/rate.cgi
@@ -1,94 +1,51 @@
-
-<%
-
-my $rate;
-if ( $cgi->param('error') ) {
- $rate = new FS::rate ( {
- map { $_, scalar($cgi->param($_)) } fields('rate')
- } );
-} elsif ( $cgi->keywords ) {
- my($query) = $cgi->keywords;
- $query =~ /^(\d+)$/;
- $rate = qsearchs( 'rate', { 'ratenum' => $1 } );
-} else { #adding
- $rate = new FS::rate {};
-}
-my $action = $rate->ratenum ? 'Edit' : 'Add';
-
-my $p1 = popurl(1);
-
-my %granularity = (
- '6' => '6 second',
- '60' => 'minute',
-);
-
-%>
-
-<%= header("$action Rate plan", menubar(
- 'Main Menu' => $p,
+<% include("/elements/header.html","$action Rate plan", menubar(
'View all rate plans' => "${p}browse/rate.cgi",
))
%>
-<% if ( $cgi->param('error') ) { %>
-Error: <%= $cgi->param('error') %>
-<% } %>
-
-