X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_acct.cgi;h=1486d7b113697919f3cfff1043fb3124cc158e27;hp=246a7fbc86e402e454234088136b62835d4e57a4;hb=04cc48bd2a049909af54b9e58afebffe51cdd1b2;hpb=2b7d11d0b79821a0c7f39ce8777b6aa91d37a26e diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi index 246a7fbc8..1486d7b11 100755 --- a/httemplate/view/svc_acct.cgi +++ b/httemplate/view/svc_acct.cgi @@ -283,6 +283,11 @@ foreach $attribute ( grep /^rc_/, $svc_acct->fields ) { print 'RADIUS groups'. join('
', $svc_acct->radius_groups). ''; +if ( $svc_acct->seconds =~ /^\d+$/ ) { + print 'Prepaid time'. + duration_exact($svc_acct->seconds). ''; +} + # Can this be abstracted further? Maybe a library function like # widget('HTML', 'view', $svc_acct) ? It would definitely make UI # style management easier.