X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts_new.html;h=f73483ae1e0d031f963a418ff8f9d69f4d1116d5;hb=c9450c02f7ac2f904a6ffabb07b6b2d5bca1fd4a;hp=9a03410bf194c5cc58cc1a42514f25f45b781c47;hpb=5561349c87fdcc646c18010ea57925f90170f321;p=freeside.git
diff --git a/httemplate/view/cust_main/contacts_new.html b/httemplate/view/cust_main/contacts_new.html
index 9a03410bf..f73483ae1 100644
--- a/httemplate/view/cust_main/contacts_new.html
+++ b/httemplate/view/cust_main/contacts_new.html
@@ -1,31 +1,56 @@
Contacts
-Edit contacts
-
Type | +Contact | +Self-service | +% foreach my $phone_type (@phone_type) { +<% $phone_type->typename |h %> phone +% } + | |||||||
---|---|---|---|---|---|---|---|---|---|---|
<% $contact->contact_classname %> Contact | -<% $contact->line %> | +<% $contact->contact_classname |h %> | +<% $contact->line |h %> | % my @contact_email = $contact->contact_email; -% if (@contact_email) { -<% join(', ', map $_->emailaddress, @contact_email) %> | -% } +<% join(', ', map $_->emailaddress, @contact_email) %> | + ++% if ( $contact->selfservice_access ) { + Enabled +%# disable +%# re-email +% } else { + Disabled +%# enable +% } + | % foreach my $phone_type (@phone_type) { % my $contact_phone = % qsearchs('contact_phone', { % 'contactnum' => $contact->contactnum, % 'phonetypenum' => $phone_type->phonetypenum, -% }) -% or next; -<% $phone_type->typename %> phone | -<% $contact_phone->phonenum |h %> | +% }); +<% $contact_phone ? $contact_phone->phonenum_pretty : '' |h %> | % }