customer tags, RT#9192
authorivan <ivan>
Sat, 17 Jul 2010 22:15:37 +0000 (22:15 +0000)
committerivan <ivan>
Sat, 17 Jul 2010 22:15:37 +0000 (22:15 +0000)
FS/FS/Conf.pm
httemplate/view/cust_main.cgi
httemplate/view/cust_main/misc.html

index 43d604c..acbd229 100644 (file)
@@ -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" },
index d854a01..a196c75 100755 (executable)
@@ -15,7 +15,6 @@
                  ? 'STYLE="background-color:#'.$part_tag->tagcolor.'"'
                  : ''
       %>><% $part_tag->tagname.': '. $part_tag->tagdesc |h %></FONT>
-      <BR>
   </TD>
 </TR>
 %   }
index 2243647..6e90a0b 100644 (file)
@@ -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">