X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fedit%2Fsvc_acct.cgi;h=f9c4074728173165ebbdaacca3654b49da7eaecd;hb=348386bfd64cb4b46961aa3a9ee71ae08f4faf5e;hp=ebaa4b2ba5261cbf3f19f2ff3e05212c127d3d1a;hpb=be10e7a1421c13eec4b1bb3676eaf5c84344e601;p=freeside.git
diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi
index ebaa4b2ba..f9c407472 100755
--- a/httemplate/edit/svc_acct.cgi
+++ b/httemplate/edit/svc_acct.cgi
@@ -161,6 +161,7 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
+%if ( $part_svc->part_svc_column('_password')->columnflag ne 'F' ) {
Password |
@@ -168,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' ) {
%
@@ -326,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;
@@ -386,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; #?