X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fsvc_acct.cgi;h=d4adbc9e54fb197fdd112723ba127632c8ea93b3;hb=53d68b31e5ec07704c53829548c537bac03b8894;hp=f42c14618229995697641706f48c5375efb817e8;hpb=633c48448d9468690b7ad77eb6ff7c660a286658;p=freeside.git diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi index f42c14618..d4adbc9e5 100755 --- a/httemplate/edit/svc_acct.cgi +++ b/httemplate/edit/svc_acct.cgi @@ -134,7 +134,8 @@ % } % if ( $cust_main ) { - <% include( '/elements/small_custview.html', $cust_main, '', 1 ) %> + <% include( '/elements/small_custview.html', $cust_main, '', 1, + popurl(2) . "view/cust_main.cgi") %>
% } @@ -325,10 +326,22 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
% } - +% +%#dir +%if ( $part_svc->part_svc_column('dir')->columnflag eq 'F' +% || !$curuser->access_right('Edit home dir') +% ) { +% } else { + + + + Home directory + + +% } % %#shell %my $shell = $svc_acct->shell; @@ -385,23 +398,27 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
% } % -% if ( $curuser->access_right('Edit usage') ) { -% my %label = ( seconds => 'Seconds', -% upbytes => 'Upload bytes', -% downbytes => 'Download bytes', -% totalbytes => 'Total bytes', -% ); -% foreach my $uf (keys %label) { -% my $tf = $uf . "_threshold"; -% if ( $svc_acct->$tf ne '' ) { - +% my %label = ( seconds => 'Time', +% upbytes => 'Upload bytes', +% downbytes => 'Download bytes', +% totalbytes => 'Total bytes', +% ); +% foreach my $uf (keys %label) { +% my $tf = $uf . "_threshold"; +% if ( $curuser->access_right('Edit usage') ) { <% $label{$uf} %> remaining - + (blank disables) -% } + + <% $label{$uf} %> threshold + (blank disables) + +% }else{ + + % } -% } +% } % %foreach my $r ( grep { /^r(adius|[cr])_/ } fields('svc_acct') ) { % $r =~ /^^r(adius|[cr])_(.+)$/ or next; #?