diff options
| author | ivan <ivan> | 2011-10-16 01:17:57 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2011-10-16 01:17:57 +0000 | 
| commit | 81557398ed4af77c420959a84398f123133cdd67 (patch) | |
| tree | 8402c2e38508fbd4c3ea1d075224d7e600652460 /httemplate | |
| parent | 24293a48324d97499c4316f89dbc80f8079e25fd (diff) | |
add do_not_call, RT#12981
Diffstat (limited to 'httemplate')
| -rw-r--r-- | httemplate/edit/cust_main/top_misc.html | 14 | ||||
| -rw-r--r-- | httemplate/elements/phonenumber.html | 4 | ||||
| -rw-r--r-- | httemplate/view/cust_main/contacts.html | 9 | 
3 files changed, 24 insertions, 3 deletions
diff --git a/httemplate/edit/cust_main/top_misc.html b/httemplate/edit/cust_main/top_misc.html index a7545a045..45152e183 100644 --- a/httemplate/edit/cust_main/top_misc.html +++ b/httemplate/edit/cust_main/top_misc.html @@ -116,6 +116,20 @@          $cust_main->edit_subject ? 'CHECKED' : '' %>></TD>      <TD ALIGN="left"><% mt('Can edit ticket subjects') |h %></TD>    </TR> +% } else { +  <INPUT TYPE="hidden" NAME="edit_subject" VALUE="<% $cust_main->edit_subject %>"> +% } + +% # permission to edit +% if ( $conf->exists('cust_main-edit_calling_list_exempt') ) { +  <TR> +    <TD ALIGN="right"> +      <INPUT TYPE="checkbox" NAME="calling_list_exempt" VALUE="Y" <%  +        $cust_main->calling_list_exempt ? 'CHECKED' : '' %>></TD> +    <TD ALIGN="left"><% mt('Calling list exempt') |h %></TD> +  </TR> +% } else { +  <INPUT TYPE="hidden" NAME="calling_list_exempt" VALUE="<% $cust_main->calling_list_exempt %>">  % }  </TABLE> 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 @@    <TD COLSPAN=3 BGCOLOR="#ffffff">      <& /elements/phonenumber.html,                    $cust_main->get("${pre}daytime"), -                  'callable'=>1 +                  'callable'=>1, +                  'calling_list_exempt'=>$cust_main->calling_list_exempt,      &>    </TD>  </TR> @@ -79,7 +80,8 @@    <TD COLSPAN=3 BGCOLOR="#ffffff">      <& /elements/phonenumber.html,                    $cust_main->get("${pre}night"), -                  'callable'=>1 +                  'callable'=>1, +                  'calling_list_exempt'=>$cust_main->calling_list_exempt,      &>    </TD>  </TR> @@ -88,7 +90,8 @@    <TD COLSPAN=3 BGCOLOR="#ffffff">      <& /elements/phonenumber.html,                    $cust_main->get("${pre}mobile"), -                  'callable'=>1 +                  'callable'=>1, +                  'calling_list_exempt'=>$cust_main->calling_list_exempt,      &>    </TD>  </TR>  | 
