X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_acct.cgi;h=246a7fbc86e402e454234088136b62835d4e57a4;hb=f1242ee84dba33d2e58e86ad329f8e3d519c153d;hp=6ca9bf0711d4132411b70ba7e1a2e025c02fb3e1;hpb=5fc8c5edf574ab024d4646914b6432d458e2ffbd;p=freeside.git
diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi
index 6ca9bf071..246a7fbc8 100755
--- a/httemplate/view/svc_acct.cgi
+++ b/httemplate/view/svc_acct.cgi
@@ -204,49 +204,80 @@ print "
Access number | ".
"". $svc_acct_pop->text. ' |
'
if $svc_acct_pop;
-if ($svc_acct->uid ne '') {
- print "Uid | ".
- "". $svc_acct->uid. " |
",
- "Gid | ".
- "". $svc_acct->gid. " |
",
- "GECOS | ".
- "". $svc_acct->finger. " |
",
- "Home directory | ".
- "". $svc_acct->dir. " |
",
- "Shell | ".
- "". $svc_acct->shell. " |
",
- "Quota | ".
- "". $svc_acct->quota. " |
"
- ;
-} else {
- print "(No shell account) |
";
-}
+%>
-if ($svc_acct->slipip) {
- print "IP address | ".
- ( ( $svc_acct->slipip eq "0.0.0.0" || $svc_acct->slipip eq '0e0' )
- ? "(Dynamic)"
- : $svc_acct->slipip
- ). " | ";
- my($attribute);
- foreach $attribute ( grep /^radius_/, $svc_acct->fields ) {
- #warn $attribute;
- $attribute =~ /^radius_(.*)$/;
- my $pattribute = $FS::raddb::attrib{$1};
- print "
Radius (reply) $pattribute | ".
- "". $svc_acct->getfield($attribute).
- " |
";
- }
- foreach $attribute ( grep /^rc_/, $svc_acct->fields ) {
- #warn $attribute;
- $attribute =~ /^rc_(.*)$/;
- my $pattribute = $FS::raddb::attrib{$1};
- print "Radius (check) $pattribute: | ".
- "". $svc_acct->getfield($attribute).
- " |
";
- }
-} else {
- print "(No SLIP/PPP account) |
";
+<% if ($svc_acct->uid ne '') { %>
+
+ UID |
+ <%= $svc_acct->uid %> |
+
+<% } %>
+
+<% if ($svc_acct->gid ne '') { %>
+
+ GID |
+ <%= $svc_acct->gid %> |
+
+<% } %>
+
+<% if ($svc_acct->finger ne '') { %>
+
+ GECOS |
+ <%= $svc_acct->finger %> |
+
+<% } %>
+
+<% if ($svc_acct->dir ne '') { %>
+
+ Home directory |
+ <%= $svc_acct->dir %> |
+
+<% } %>
+
+<% if ($svc_acct->shell ne '') { %>
+
+ Shell |
+ <%= $svc_acct->shell %> |
+
+<% } %>
+
+<% if ($svc_acct->quota ne '') { %>
+
+ Quota |
+ <%= $svc_acct->quota %> |
+
+<% } %>
+
+<% if ($svc_acct->slipip) { %>
+
+ IP address |
+
+ <%= ( $svc_acct->slipip eq "0.0.0.0" || $svc_acct->slipip eq '0e0' )
+ ? "(Dynamic)"
+ : $svc_acct->slipip
+ %>
+ |
+
+<% } %>
+
+<%
+
+my($attribute);
+foreach $attribute ( grep /^radius_/, $svc_acct->fields ) {
+ #warn $attribute;
+ $attribute =~ /^radius_(.*)$/;
+ my $pattribute = $FS::raddb::attrib{$1};
+ print "Radius (reply) $pattribute | ".
+ "". $svc_acct->getfield($attribute).
+ " |
";
+}
+foreach $attribute ( grep /^rc_/, $svc_acct->fields ) {
+ #warn $attribute;
+ $attribute =~ /^rc_(.*)$/;
+ my $pattribute = $FS::raddb::attrib{$1};
+ print "Radius (check) $pattribute: | ".
+ "". $svc_acct->getfield($attribute).
+ " |
";
}
print 'RADIUS groups | '.
|