From 4d3d1f29b5cb6d01e3474d0037fc4c6c866e8311 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Thu, 21 Feb 2013 15:45:06 -0800 Subject: typo --- httemplate/search/cdr.html | 1 - 1 file changed, 1 deletion(-) (limited to 'httemplate') diff --git a/httemplate/search/cdr.html b/httemplate/search/cdr.html index 1b4604bbb..ca303d386 100644 --- a/httemplate/search/cdr.html +++ b/httemplate/search/cdr.html @@ -10,7 +10,6 @@ 'links' => \@links, 'html_form' => qq!
!, 'html_foot' => $html_foot, - ) &> <%init> -- cgit v1.2.1 From c3b8e954dbf5ddd04930809edfb77fa106fccaee Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Fri, 22 Feb 2013 08:27:20 -0800 Subject: exact-match rate regions, #20851 --- httemplate/browse/rate_region.html | 8 +++++++- httemplate/edit/rate_region.cgi | 8 ++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'httemplate') diff --git a/httemplate/browse/rate_region.html b/httemplate/browse/rate_region.html index b958894cb..b0ce467c0 100644 --- a/httemplate/browse/rate_region.html +++ b/httemplate/browse/rate_region.html @@ -62,8 +62,14 @@ tie my %granularity, 'Tie::IxHash', FS::rate_detail::granularities(); die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); +my $sub_prefixes = sub { + my $region = shift; + $region->prefixes . + ($region->exact_match ? ' (exact match only)' : ''); +}; + my @header = ( '#', 'Region', 'Country code', 'Prefixes' ); -my @fields = ( 'regionnum', 'regionname', 'ccode', 'prefixes' ); +my @fields = ( 'regionnum', 'regionname', 'ccode', $sub_prefixes ); my @links = ( ($link) x 4 ); my @align = ( 'right', 'left', 'right', 'left' ); my @xls_format = ( ({ locked=>1, bg_color=>22 }) x 4 ); diff --git a/httemplate/edit/rate_region.cgi b/httemplate/edit/rate_region.cgi index 367bbafb6..a1c1bcb7d 100644 --- a/httemplate/edit/rate_region.cgi +++ b/httemplate/edit/rate_region.cgi @@ -33,6 +33,14 @@ + <& /elements/tr-checkbox.html, + label => 'Exact match', + field => 'exact_match', + cell_style => 'font-weight: bold', + value => 'Y', + curr_value => $rate_region->exact_match + &> +
-- cgit v1.2.1