X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_cert.cgi;h=0cd66b422618eed106314b684ac7fee67891c644;hp=48494d2d20ecf6d3e637de3843b91b4ae838e389;hb=c3da5cf1caa244937d280e0f406927103beef148;hpb=e50b6ec8d63afe4c04ae33384758d8786fcc7cfe diff --git a/httemplate/view/svc_cert.cgi b/httemplate/view/svc_cert.cgi index 48494d2d2..0cd66b422 100644 --- a/httemplate/view/svc_cert.cgi +++ b/httemplate/view/svc_cert.cgi @@ -33,9 +33,31 @@ my @fields = ( { 'field'=>'csr', 'value'=> sub { my $svc_cert = shift; - if ( $svc_cert->csr ) { #display the subject etc? - '
'. "\n". $svc_cert->csr.
-        '
'; + if ( $svc_cert->csr ) { + + my $out = ''; + + my %hash = $svc_cert->check_csr; + + $out .= include('/elements/table-grid.html'). #''. + ''; + + my $col = $svc_cert->subj_col; + + foreach my $key (keys %hash) { + $out .= "". + ""; + } + + $out .= '
'. + 'Requested by
". $labels{$col->{$key}}. "". $hash{$key}. "
'; + + $out .= + '
'. $svc_cert->csr.
+          '
'; + + $out; + } elsif ( $svc_cert->common_name ) { my $svcnum = $svc_cert->svcnum; qq(Generate);