X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Freason.html;h=fe285be4a8d1678c12dc437daf9512b9c62c6789;hb=5250c44bd7f282c7d782bf0e8349af12376929df;hp=94141eea3bf7cfc0783ee10c7ed557503ec59fe3;hpb=9509e5bfb7f9331303153cac24d7bfecbe2ea9f1;p=freeside.git diff --git a/httemplate/browse/reason.html b/httemplate/browse/reason.html index 94141eea3..fe285be4a 100644 --- a/httemplate/browse/reason.html +++ b/httemplate/browse/reason.html @@ -1,9 +1,7 @@ <% include( 'elements/browse.html', 'title' => ucfirst($classname) . ' Reasons', - 'menubar' => [ # 'Main menu' => $p, - ucfirst($classname) . ' Reason Types' => - $p.'browse/reason_type.html?class='. - $class, + 'menubar' => [ ucfirst($classname).' Reason Types' => + $p."browse/reason_type.html?class=$class" ], 'html_init' => $html_init, 'name' => $classname . ' reasons', @@ -38,14 +36,10 @@ die "access denied" $cgi->param('class') =~ /^(\w)$/ or die "illegal class"; my $class = $1; -my %classmap = ( 'C' => 'cancel', - 'S' => 'suspend', - ); +my $classname = $FS::reason_type::class_name{$class}; +my $classpurpose = $FS::reason_type::class_purpose{$class}; -my $classname = $classmap{$class}; - -my $html_init = ucfirst($classname) . -" reasons explain why we $classname a package.

". +my $html_init = ucfirst($classname). " reasons $classpurpose.

". qq!!. "Add a $classname reason

";