[freeside-commits] freeside/httemplate/edit svc_cert.cgi,1.1,1.2

Ivan,,, ivan at wavetail.420.am
Sat Nov 6 22:30:13 PDT 2010


Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv31979/httemplate/edit

Modified Files:
	svc_cert.cgi 
Log Message:
certificates ala communigate, RT#7515

Index: svc_cert.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/svc_cert.cgi,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- svc_cert.cgi	7 Nov 2010 00:56:35 -0000	1.1
+++ svc_cert.cgi	7 Nov 2010 05:30:11 -0000	1.2
@@ -12,15 +12,28 @@
 <TR>
   <TD ALIGN="right">Private key</TD>
   <TD BGCOLOR="#ffffff">
+
 %   if ( $svc_cert->privatekey && $svc_cert->check_privatekey ) {
+
       <FONT COLOR="#33ff33">Verification OK</FONT>
 %     # remove key & cert link?  just unprovision?
-  </TD>
-</TR>
+
+    </TD></TR>
+
+%   if (0) { #( $svc_cert->csr_submitted ) { #XXX add field?  date? }
+
+%     # just show the fields once the csr has been submitted
+
+%   } else {
 
 % my $cust_main = $svc_cert->cust_svc->cust_pkg->cust_main;
 
 <TR>
+        <TD ALIGN="right">Common name</TD>
+        <TD><INPUT TYPE="text" NAME="common_name" SIZE=40 MAXLENGTH=80 VALUE="<% $svc_cert->common_name |h %>"></TD>
+      </TR>
+
+      <TR>
   <TD ALIGN="right">Organization</TD>
   <TD><INPUT TYPE="text" NAME="organization" SIZE=40 MAXLENGTH=80 VALUE="<% $svc_cert->organization || $cust_main->company |h %>"></TD>
 </TR>
@@ -53,7 +66,7 @@
 </TR>
 
 <TR>
-  <TD ALIGN="right">City</TD>
+        <TD ALIGN="right">Country</TD>
   <TD><% include('/elements/select-country.html',
                    'city'    => $svc_cert->city    || $cust_main->city,
                    'state'   => $svc_cert->state   || $cust_main->state,
@@ -63,6 +76,13 @@
   </TD>
 </TR>
 
+      <TR>
+        <TD ALIGN="right">Contact email</TD>
+        <TD><INPUT TYPE="text" NAME="cert_contact" SIZE=40 MAXLENGTH=80 VALUE="<% $svc_cert->cert_contact || ($cust_main->invoicing_list_emailonly)[0] |h %>"></TD>
+      </TR>
+
+%   }
+
 %   } else {
 %     my $re = '';
 %     if ( $svc_cert->privatekey ) {



More information about the freeside-commits mailing list