From 83bc1fdf7145a2525b7e48f1dc6064e55ab4f31b Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 16 Oct 2011 01:17:49 +0000 Subject: add do_not_call, RT#12981 --- httemplate/edit/cust_main/top_misc.html | 14 ++++++++++++++ httemplate/elements/phonenumber.html | 4 ++++ httemplate/view/cust_main/contacts.html | 9 ++++++--- 3 files changed, 24 insertions(+), 3 deletions(-) (limited to 'httemplate') diff --git a/httemplate/edit/cust_main/top_misc.html b/httemplate/edit/cust_main/top_misc.html index 1277d148e..2d1d978e3 100644 --- a/httemplate/edit/cust_main/top_misc.html +++ b/httemplate/edit/cust_main/top_misc.html @@ -120,6 +120,20 @@ $cust_main->edit_subject ? 'CHECKED' : '' %>> <% mt('Can edit ticket subjects') |h %> +% } else { + +% } + +% # permission to edit +% if ( $conf->exists('cust_main-edit_calling_list_exempt') ) { + + + calling_list_exempt ? 'CHECKED' : '' %>> + <% mt('Calling list exempt') |h %> + +% } else { + % } diff --git a/httemplate/elements/phonenumber.html b/httemplate/elements/phonenumber.html index 854f5846d..736984b45 100644 --- a/httemplate/elements/phonenumber.html +++ b/httemplate/elements/phonenumber.html @@ -64,6 +64,10 @@ % % } % +% if ( $opt{'calling_list_exempt'} ) { + - calling list exempt +% } +% % } else {   diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html index 14cd91843..fccdf0247 100644 --- a/httemplate/view/cust_main/contacts.html +++ b/httemplate/view/cust_main/contacts.html @@ -70,7 +70,8 @@ <& /elements/phonenumber.html, $cust_main->get("${pre}daytime"), - 'callable'=>1 + 'callable'=>1, + 'calling_list_exempt'=>$cust_main->calling_list_exempt, &> @@ -79,7 +80,8 @@ <& /elements/phonenumber.html, $cust_main->get("${pre}night"), - 'callable'=>1 + 'callable'=>1, + 'calling_list_exempt'=>$cust_main->calling_list_exempt, &> @@ -88,7 +90,8 @@ <& /elements/phonenumber.html, $cust_main->get("${pre}mobile"), - 'callable'=>1 + 'callable'=>1, + 'calling_list_exempt'=>$cust_main->calling_list_exempt, &> -- cgit v1.2.1