From: Ivan Kohler Date: Sun, 25 Mar 2012 01:48:44 +0000 (-0700) Subject: enhance contacts: contact classes, RT#16819 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=194c05911b1bf4f09b0ce523e994d888b2e983ef enhance contacts: contact classes, RT#16819 --- diff --git a/httemplate/elements/contact.html b/httemplate/elements/contact.html index 3efa23246..b3e535344 100644 --- a/httemplate/elements/contact.html +++ b/httemplate/elements/contact.html @@ -4,6 +4,24 @@ +% if ( @contact_class ) { + +% } else { + +% } +% % foreach my $field ( @fields ) { % % my $value = ''; @@ -60,6 +78,8 @@ if ( $opt{'onchange'} ) { $onchange = 'onChange="'. $onchange. '"'; } +my @contact_class = qsearch('contact_class', { 'disabled' => '' }); + my $contact; if ( $curr_value ) { $contact = qsearchs('contact', { 'contactnum' => $curr_value } ); @@ -81,7 +101,7 @@ foreach my $phone_type ( qsearch({table=>'phone_type', order_by=>'weight'}) ) { next if $phone_type->typename eq 'Home'; my $f = 'phonetypenum'.$phone_type->phonetypenum; $label{$f} = $phone_type->typename. ' phone'; - $size{$f} = $first++ ? 11 : 15; + $size{$f} = $first++ ? 10 : 15; } $label{'comment'} = 'Comment';
+
+ Type +