summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2010-07-17 22:15:37 +0000
committerivan <ivan>2010-07-17 22:15:37 +0000
commit90d8aaced90a89974109de6a016a62bee4a7457c (patch)
treea6ddd940a6fe58efcc6157e8fd9b8ed9069d31d6
parent7ea90f150b44ffc2ef906a34d49a244d6da7dba5 (diff)
customer tags, RT#9192
-rw-r--r--FS/FS/Conf.pm8
-rwxr-xr-xhttemplate/view/cust_main.cgi1
-rw-r--r--httemplate/view/cust_main/misc.html2
3 files changed, 9 insertions, 2 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index 43d604c59..acbd229d5 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -3808,6 +3808,14 @@ and customer address. Include units.',
},
},
+ {
+ 'key' => 'cust_tag-location',
+ 'section' => 'UI',
+ 'description' => 'Location where customer tags are displayed.',
+ 'type' => 'select',
+ 'select_enum' => [ 'misc_info', 'top' ],
+ },
+
{ key => "apacheroot", section => "deprecated", description => "<b>DEPRECATED</b>", type => "text" },
{ key => "apachemachine", section => "deprecated", description => "<b>DEPRECATED</b>", type => "text" },
{ key => "apachemachines", section => "deprecated", description => "<b>DEPRECATED</b>", type => "text" },
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi
index d854a01fa..a196c7510 100755
--- a/httemplate/view/cust_main.cgi
+++ b/httemplate/view/cust_main.cgi
@@ -15,7 +15,6 @@
? 'STYLE="background-color:#'.$part_tag->tagcolor.'"'
: ''
%>><% $part_tag->tagname.': '. $part_tag->tagdesc |h %></FONT>
- <BR>
</TD>
</TR>
% }
diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html
index 2243647a3..6e90a0b4c 100644
--- a/httemplate/view/cust_main/misc.html
+++ b/httemplate/view/cust_main/misc.html
@@ -11,7 +11,7 @@
</TR>
% my @part_tag = $cust_main->part_tag;
-% if ( @part_tag ) {
+% if ( $conf->config('cust_tag-location') =~ /^(cust_misc|)$/ && @part_tag ) {
<TR>
<TD ALIGN="right">Tags</TD>
<TD BGCOLOR="#ffffff">