diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-02-25 19:31:06 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-02-25 19:31:06 -0800 |
commit | bf5576362a192f74efe6cedc4ff258842c34bbcd (patch) | |
tree | a0a50c5749fd6b5d7a1851b57aebb9bc44476875 /httemplate | |
parent | 3cec6fec210ce9b7a5528e3c6a8d85e213a0883d (diff) | |
parent | db5e7f34b1e17ae6ce8909062537cc2fb98ca30d (diff) |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/browse/rate_region.html | 8 | ||||
-rw-r--r-- | httemplate/edit/rate_region.cgi | 8 | ||||
-rw-r--r-- | httemplate/search/cdr.html | 1 |
3 files changed, 15 insertions, 2 deletions
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 ? ' <I>(exact match only)</I>' : ''); +}; + 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 @@ </TD> </TR> + <& /elements/tr-checkbox.html, + label => 'Exact match', + field => 'exact_match', + cell_style => 'font-weight: bold', + value => 'Y', + curr_value => $rate_region->exact_match + &> + </TABLE> <BR> 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!<FORM NAME="cdrForm" ACTION="$p/misc/cdr.cgi" METHOD="POST">!, 'html_foot' => $html_foot, - ) &> <%init> |