X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fsvc_acct.cgi;h=f9c4074728173165ebbdaacca3654b49da7eaecd;hb=22c7daa1fd079e3ec9dee4da241f83e174132e4e;hp=f42c14618229995697641706f48c5375efb817e8;hpb=633c48448d9468690b7ad77eb6ff7c660a286658;p=freeside.git diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi index f42c14618..f9c407472 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") %>
% } @@ -160,6 +161,7 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
+%if ( $part_svc->part_svc_column('_password')->columnflag ne 'F' ) { Password @@ -167,9 +169,13 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
(blank to generate) +%}else{ + +%} % %my $sec_phrase = $svc_acct->sec_phrase; -%if ( $conf->exists('security_phrase') ) { +%if ( $conf->exists('security_phrase') +% && $part_svc->part_svc_column('sec_phrase')->columnflag ne 'F' ) { % @@ -325,10 +331,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 +403,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; #?