From 0c084bd209251525e6441cb2b56c46f4ff788a5f Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 8 Nov 2010 07:35:59 +0000 Subject: certificates ala communigate, RT#7515 --- httemplate/view/svc_cert.cgi | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) (limited to 'httemplate/view') 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); -- cgit v1.2.1