X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main.cgi;h=d5b7d93416780254db72b3a2dd8c896f80d67f6d;hp=e82a5196c5eb436e8b7e6366f17c5e0b1f68e9c7;hb=124601883f5c26ddc16d0f9d0890614dfd58a91e;hpb=3ce7691203a7737406bf2d4442f7fd84b81f847e
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi
index e82a5196c..d5b7d9341 100755
--- a/httemplate/view/cust_main.cgi
+++ b/httemplate/view/cust_main.cgi
@@ -1,31 +1,37 @@
-%
-%
-%my $conf = new FS::Conf;
-%
-%my $curuser = $FS::CurrentUser::CurrentUser;
-%
-%die "No customer specified (bad URL)!" unless $cgi->keywords;
-%my($query) = $cgi->keywords; # needs parens with my, ->keywords returns array
-%$query =~ /^(\d+)$/;
-%my $custnum = $1;
-%my $cust_main = qsearchs('cust_main',{'custnum'=>$custnum});
-%die "Customer not found!" unless $cust_main;
-%
-%
-
-
-<% include("/elements/header.html","Customer View: ". $cust_main->name ) %>
-% if ( $curuser->access_right('Edit customer') ) {
-
- Edit this customer |
-% }
-
+<% include('/elements/header.html', {
+ 'title' => "Customer: ". $cust_main->name,
+ 'nobr' => 1,
+ })
+%>
+
+% my @part_tag = $cust_main->part_tag;
+% if ( $conf->config('cust_tag-location') eq 'top' && @part_tag ) {
+
+ tagcolor) + ? 'STYLE="background-color:#'.$part_tag->tagcolor.'"' + : '' + %>><% $part_tag->tagname.': '. $part_tag->tagdesc |h %> + | +