diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-04-14 01:18:09 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-04-14 01:18:09 -0700 |
commit | 18092846de81204c8be139ce47fd41191e5606c2 (patch) | |
tree | e30b2d573906b861f37682268789f6e00707bd67 /httemplate/view/cust_main.cgi | |
parent | 619b5649552e11eeef2cae712b923d7e0f6d3f43 (diff) |
installers (appointments customer view), RT#16584
Diffstat (limited to 'httemplate/view/cust_main.cgi')
-rwxr-xr-x | httemplate/view/cust_main.cgi | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index d1352486f..61679006f 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -271,6 +271,16 @@ function areyousure(href, message) { % } +% if ( $view eq 'appointments' || $view eq 'jumbo' ) { + +% if ( $conf->config('ticket_system') +% && $curuser->access_right('View appointments') ) { + <& cust_main/appointments.html, $cust_main &> +% } + <BR><BR> + +% } + % if ( $view eq 'jumbo' ) { #XXX enable me && $curuser->access_right('View customer packages') { <A NAME="cust_pkg"><FONT SIZE="+2"><% mt('Packages') |h %></FONT></A><BR> @@ -347,12 +357,15 @@ $title = mt("Customer:")." ".$title; #false laziness w/pref/pref.html and Conf.pm (cust_main-default_view) tie my %views, 'Tie::IxHash', - emt('Basics') => 'basics', - emt('Notes') => 'notes', #notes and files? + emt('Basics') => 'basics', + emt('Notes') => 'notes', #notes and files? ; -$views{emt('Tickets')} = 'tickets' - if $conf->config('ticket_system'); -$views{emt('Packages')} = 'packages'; +if ( $conf->config('ticket_system') ) { + $views{emt('Tickets')} = 'tickets'; + $views{emt('Appointments')} = 'appointments' + if $curuser->access_right('View appointments'); +} +$views{emt('Packages')} = 'packages'; $views{emt('Payment History')} = 'payment_history' unless $conf->config('payby-default' eq 'HIDE'); $views{emt('Change History')} = 'change_history' |