From c9450c02f7ac2f904a6ffabb07b6b2d5bca1fd4a Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 30 Dec 2013 01:43:30 -0800 Subject: self-service access for contacts, RT#25533 --- httemplate/view/cust_main/contacts_new.html | 49 ++++++++++++++++++++++------- 1 file changed, 37 insertions(+), 12 deletions(-) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_main/contacts_new.html b/httemplate/view/cust_main/contacts_new.html index a851d99ed..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 - + +<& /elements/table-grid.html &> +% my $bgcolor1 = '#eeeeee'; +% my $bgcolor2 = '#ffffff'; +% my $bgcolor = $bgcolor2; + + + + + +% foreach my $phone_type (@phone_type) { + + % foreach my $contact ( @contacts ) { -% #XXX maybe this should be a table with alternating colors instead - - + + % my @contact_email = $contact->contact_email; -% if (@contact_email) { - - -% } + + + % foreach my $phone_type (@phone_type) { % my $contact_phone = % qsearchs('contact_phone', { % 'contactnum' => $contact->contactnum, % 'phonetypenum' => $phone_type->phonetypenum, -% }) -% or next; - - +% }); + % } + +% if ( $bgcolor eq $bgcolor1 ) { +% $bgcolor = $bgcolor2; +% } else { +% $bgcolor = $bgcolor1; +% } % }
TypeContactEmailSelf-service<% $phone_type->typename |h %> phone +% } +
<% $contact->contact_classname %> Contact<% $contact->line %><% $contact->contact_classname |h %><% $contact->line |h %>   Email<% join(', ', map $_->emailaddress, @contact_email) %><% join(', ', map $_->emailaddress, @contact_email) %> +% if ( $contact->selfservice_access ) { + Enabled +%# disable +%# re-email +% } else { + Disabled +%# enable +% } +    <% $phone_type->typename %> phone<% $contact_phone->phonenum_pretty |h %><% $contact_phone ? $contact_phone->phonenum_pretty : '' |h %>
<%once> -- cgit v1.2.1