<html>
  <head>
    <title tal:content="template/title">The title</title>
  </head>
  <body tal:define="policy python:here.GetPolicy(here.REQUEST);IF python:lambda a,b,c:(a and [b] or [c])[0]">
  <link href="styles.css" rel="stylesheet" type="text/css">

    <div metal:use-macro="container/index_html/macros/top" tal:omit-tag="" id="logo-sep">TOP</div>
    <!-- ###### NAVIGATION BAR ##### -->
    <div id="navigation-bar" metal:use-macro="container/index_html/macros/navigation">NAV BAR</div>
    <!-- ###### END NAVIGATION BAR ##### -->

    <!-- ###### MAIN CONTENT ##### -->
    <div id="main-content">
    <form action="manage_savePolicy" method="POST" tal:attributes="action python:IF((policy['name'] == ''),'manage_savePolicy','manage_updatePolicy')">
    <input type="hidden" name="orig_policy" value="1" tal:attributes="value python:policy['name']">
    <table class="table-box" width="600px" >
      <tr>
        <td colspan="3" class="table-box-title">Policy definition</td>
      </tr>
      <tr class="row-lowlite">
        <td width="20%" valign="top">Policy Name:</td>
        <td width="60%" valign="top"><input type="text" name="policy" value="1" tal:attributes="value python:policy['name']"></td>
        <td>&nbsp;</td>
      </tr>

      <tr class="row-hilite">
        <td valign="top">Certificate validity:</td>
	<td valign="top">
	  <table width="100%" celspacing=0 celpading="0">
            <tr>
              <td>
	        <input type="text" name="PRIVATE_VALIDITY" value="" size="4" style="text-align:right;" tal:attributes="value python:policy['PRIVATE_VALIDITY']['value']">&nbsp;&nbsp; days
	      </td>
	    </tr>
	  </table>
	</td>
	<td>&nbsp;</td>
      </tr>
      <tr class="row-lowlite">
        <td valign="top">Request key size:</td>
	<td valign="top">
	  <table width="100%" celspacing=0 celpading="0">
            <tr>
              <td>
              From: <input type="text" name="PRIVATE_BITDOWN" value="" size="6" style="text-align:right;" tal:attributes="value python:policy['PRIVATE_BITDOWN']['value']">&nbsp;&nbsp;&nbsp;&nbsp;to:
              <input type="text" name="PRIVATE_BITUP" value="" size="6" style="text-align:right;" tal:attributes="value python:policy['PRIVATE_BITUP']['value']">&nbsp;&nbsp; bits
	      </td>
	    </tr>
	  </table>
	</td>
	<td>&nbsp;</td>
      </tr>

	
      <tr class="row-hilite">
        <td valign="top">Basic constraints</td>
        <td valign="top">
          <table width="100%" celspacing=0 celpading="0">
            <tr>
              <td>
	      <input type="checkbox" name="basicConstraints_CA" value="true" checked tal:condition="python:policy['basicConstraints']['value']['CA']['value'] == 'true'">
	       <input type="checkbox" name="basicConstraints_CA" value="true" tal:condition="python:policy['basicConstraints']['value']['CA']['value'] != 'true'">
	       CA;
	      CApath <input type="text" name="basicConstraints_pathlen_value" value="0" size="3" style="text-align:right" tal:attributes="value python:policy['basicConstraints']['value']['pathlen']['value']">
	     </td>
            </tr>
          </table>
        </td>
        <td valign="top">
          <table>
            <tr>
              <td>
	       <input type="radio" name="basicConstraintsOption" value="critical" checked tal:condition="python:policy['basicConstraints']['extension'] == 'critical'">
	        <input type="radio" name="basicConstraintsOption" value="critical" tal:condition="python:policy['basicConstraints']['extension'] != 'critical'">
		critical
	     </td>
            </tr>
            <tr>
              <td>
	       <input type="radio" name="basicConstraintsOption" value="present" checked tal:condition="python:policy['basicConstraints']['extension'] == 'present'">
	        <input type="radio" name="basicConstraintsOption" value="present" tal:condition="python:policy['basicConstraints']['extension'] != 'present'">
		present
	     </td>
            </tr>
            <tr>
              <td>
	       <input type="radio" name="basicConstraintsOption" value="notpresent" checked tal:condition="python:policy['basicConstraints']['extension'] == 'notpresent'">
	        <input type="radio" name="basicConstraintsOption" value="notpresent" tal:condition="python:policy['basicConstraints']['extension'] != 'notpresent'">
	        not present
	     </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr class="row-lowlite">
        <td valign="top">Key usage</td>
        <td valign="top">
          <table width="100%" celspacing=0 celpading="0">
            <tr>
              <td width="50%">
	       <input type="checkbox" name="keyUsage:list" value="digitalSignature" tal:condition="python:policy['keyUsage']['value']['digitalSignature'] == 'true'" checked>
	        <input type="checkbox" name="keyUsage:list" value="digitalSignature" tal:condition="python:policy['keyUsage']['value']['digitalSignature'] != 'true'">
	        digitalSignature
	     </td>
              <td width="50%">
	      <input type="checkbox" name="keyUsage:list" value="nonRepudiation" tal:condition="python:policy['keyUsage']['value']['nonRepudiation'] == 'true'" checked>
	       <input type="checkbox" name="keyUsage:list" value="nonRepudiation" tal:condition="python:policy['keyUsage']['value']['nonRepudiation'] != 'true'">
	        nonRepudiation
            </td>
            </tr>
            <tr>
              <td>
	       <input type="checkbox" name="keyUsage:list" value="keyEncipherment" tal:condition="python:policy['keyUsage']['value']['keyEncipherment'] == 'true'" checked>
	        <input type="checkbox" name="keyUsage:list" value="keyEncipherment" tal:condition="python:policy['keyUsage']['value']['keyEncipherment'] != 'true'">
	        keyEncipherment
            </td>
              <td>
	       <input type="checkbox" name="keyUsage:list" value="dataEncipherment" tal:condition="python:policy['keyUsage']['value']['dataEncipherment'] == 'true'" checked>
	        <input type="checkbox" name="keyUsage:list" value="dataEncipherment" tal:condition="python:policy['keyUsage']['value']['dataEncipherment'] != 'true'">
	        dataEncipherment
            </td>
            </tr>
            <tr>
              <td>
	       <input type="checkbox" name="keyUsage:list" value="keyAgreement" tal:condition="python:policy['keyUsage']['value']['keyAgreement'] == 'true'" checked>
	        <input type="checkbox" name="keyUsage:list" value="keyAgreement" tal:condition="python:policy['keyUsage']['value']['keyAgreement'] != 'true'">
	        keyAgreement
	     </td>
              <td>
	       <input type="checkbox" name="keyUsage:list" value="keyCertSign" tal:condition="python:policy['keyUsage']['value']['keyCertSign'] == 'true'" checked>
	        <input type="checkbox" name="keyUsage:list" value="keyCertSign" tal:condition="python:policy['keyUsage']['value']['keyCertSign'] != 'true'">
	        keyCertSign
            </td>
            </tr>
            <tr>
              <td>
	       <input type="checkbox" name="keyUsage:list" value="cRLSign" tal:condition="python:policy['keyUsage']['value']['cRLSign'] == 'true'" checked>
	        <input type="checkbox" name="keyUsage:list" value="cRLSign" tal:condition="python:policy['keyUsage']['value']['cRLSign'] != 'true'">
	        cRLSign
	     </td>
              <td>
	      <input type="checkbox" name="keyUsage:list" value="encipherOnly" tal:condition="python:policy['keyUsage']['value']['encipherOnly'] == 'true'" checked>
	       <input type="checkbox" name="keyUsage:list" value="encipherOnly" tal:condition="python:policy['keyUsage']['value']['encipherOnly'] != 'true'">
	       encipherOnly
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="checkbox" name="keyUsage:list" value="decipherOnly" tal:condition="python:policy['keyUsage']['value']['decipherOnly'] == 'true'" checked>
	       <input type="checkbox" name="keyUsage:list" value="decipherOnly" tal:condition="python:policy['keyUsage']['value']['decipherOnly'] != 'true'">
	       decipherOnly
	     </td>
              <td>&nbsp;</td>
            </tr>
          </table>
        </td>
        <td valign="top">
          <table width="100%" celspacing=0 celpading="0">
            <tr>
              <td>
	      <input type="radio" name="keyUsageOption" value="critical" tal:condition="python:policy['keyUsage']['extension'] == 'critical'" checked>
	       <input type="radio" name="keyUsageOption" value="critical" tal:condition="python:policy['keyUsage']['extension'] != 'critical'">
	       critical
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="keyUsageOption" value="present" tal:condition="python:policy['keyUsage']['extension'] == 'present'" checked>
	       <input type="radio" name="keyUsageOption" value="present" tal:condition="python:policy['keyUsage']['extension'] != 'present'" >
	       present
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="keyUsageOption" value="notpresent" tal:condition="python:policy['keyUsage']['extension'] == 'notpresent'" checked>
	       <input type="radio" name="keyUsageOption" value="notpresent" tal:condition="python:policy['keyUsage']['extension'] != 'notpresent'" >
	       not present
	     </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr class="row-hilite">
        <td valign="top">Extended key usage</td>
        <td valign="top">
          <table width="100%" celspacing=0 celpading="0">
            <tr>
              <td width="50%">
	      <input type="checkbox" name="extendedKeyUsage:list" value="serverAuth" tal:condition="python:policy['extendedKeyUsage']['value']['serverAuth'] == 'true'" checked>
	       <input type="checkbox" name="extendedKeyUsage:list" value="serverAuth" tal:condition="python:policy['extendedKeyUsage']['value']['serverAuth'] != 'true'">
	       serverAuth
	     </td>
              <td width="50%">
	      <input type="checkbox" name="extendedKeyUsage:list" value="clientAuth" tal:condition="python:policy['extendedKeyUsage']['value']['clientAuth'] == 'true'" checked>
	       <input type="checkbox" name="extendedKeyUsage:list" value="clientAuth" tal:condition="python:policy['extendedKeyUsage']['value']['clientAuth'] != 'true'">
	       clientAuth
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="checkbox" name="extendedKeyUsage:list" value="codeSigning" tal:condition="python:policy['extendedKeyUsage']['value']['codeSigning'] == 'true'" checked>
	       <input type="checkbox" name="extendedKeyUsage:list" value="codeSigning" tal:condition="python:policy['extendedKeyUsage']['value']['codeSigning'] != 'true'">
	       codeSigning
	     </td>
              <td>
	      <input type="checkbox" name="extendedKeyUsage:list" value="emailProtection" tal:condition="python:policy['extendedKeyUsage']['value']['emailProtection'] == 'true'" checked>
	       <input type="checkbox" name="extendedKeyUsage:list" value="emailProtection" tal:condition="python:policy['extendedKeyUsage']['value']['emailProtection'] != 'true'">
	       emailProtection
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="checkbox" name="extendedKeyUsage:list" value="timeStamping" tal:condition="python:policy['extendedKeyUsage']['value']['timeStamping'] == 'true'" checked>
	       <input type="checkbox" name="extendedKeyUsage:list" value="timeStamping" tal:condition="python:policy['extendedKeyUsage']['value']['timeStamping'] != 'true'">
	       timeStamping
	     </td>
              <td>
	      <input type="checkbox" name="extendedKeyUsage:list" value="msCodeInd" tal:condition="python:policy['extendedKeyUsage']['value']['msCodeInd'] == 'true'" checked>
	       <input type="checkbox" name="extendedKeyUsage:list" value="msCodeInd" tal:condition="python:policy['extendedKeyUsage']['value']['msCodeInd'] != 'true'">
	       msCodeInd
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="checkbox" name="extendedKeyUsage:list" value="msCodeCom" tal:condition="python:policy['extendedKeyUsage']['value']['msCodeCom'] == 'true'" checked>
	       <input type="checkbox" name="extendedKeyUsage:list" value="msCodeCom" tal:condition="python:policy['extendedKeyUsage']['value']['msCodeCom'] != 'true'">
	       msCodeCom
	     </td>
              <td>
	      <input type="checkbox" name="extendedKeyUsage:list" value="encipherOnly" tal:condition="python:policy['extendedKeyUsage']['value']['encipherOnly'] == 'true'" checked>
	       <input type="checkbox" name="extendedKeyUsage:list" value="encipherOnly" tal:condition="python:policy['extendedKeyUsage']['value']['encipherOnly'] != 'true'">
	       encipherOnly
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="checkbox" name="extendedKeyUsage:list" value="msCTLSign" tal:condition="python:policy['extendedKeyUsage']['value']['msCTLSign'] == 'true'" checked>
	       <input type="checkbox" name="extendedKeyUsage:list" value="msCTLSign" tal:condition="python:policy['extendedKeyUsage']['value']['msCTLSign'] != 'true'">
	       msSTLSign
	     </td>
              <td>
	      <input type="checkbox" name="extendedKeyUsage:list" value="msSGC" tal:condition="python:policy['extendedKeyUsage']['value']['msSGC'] == 'true'" checked>
	       <input type="checkbox" name="extendedKeyUsage:list" value="msSGC" tal:condition="python:policy['extendedKeyUsage']['value']['msSGC'] != 'true'">
	       msSGC
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="checkbox" name="extendedKeyUsage:list" value="msEFS" tal:condition="python:policy['extendedKeyUsage']['value']['msEFS'] == 'true'" checked>
	       <input type="checkbox" name="extendedKeyUsage:list" value="msEFS" tal:condition="python:policy['extendedKeyUsage']['value']['msEFS'] != 'true'">
	       msEFS
	     </td>
              <td>
	      <input type="checkbox" name="extendedKeyUsage:list" value="nsSGC" tal:condition="python:policy['extendedKeyUsage']['value']['nsSGC'] == 'true'" checked>
	       <input type="checkbox" name="extendedKeyUsage:list" value="nsSGC" tal:condition="python:policy['extendedKeyUsage']['value']['nsSGC'] != 'true'">
	       nsSGC
	     </td>
            </tr>
          </table>
        </td>
        <td valign="top">
          <table>
            <tr>
              <td>
	      <input type="radio" name="extendedKeyUsageOption" value="critical" tal:condition="python:policy['extendedKeyUsage']['extension'] == 'critical'" checked>
	       <input type="radio" name="extendedKeyUsageOption" value="critical" tal:condition="python:policy['extendedKeyUsage']['extension'] != 'critical'">
	       critical
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="extendedKeyUsageOption" value="present" tal:condition="python:policy['extendedKeyUsage']['extension'] == 'present'" checked>
	       <input type="radio" name="extendedKeyUsageOption" value="present" tal:condition="python:policy['extendedKeyUsage']['extension'] != 'present'">
	       present
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="extendedKeyUsageOption" value="notpresent" tal:condition="python:policy['extendedKeyUsage']['extension'] == 'notpresent'" checked>
	       <input type="radio" name="extendedKeyUsageOption" value="notpresent" tal:condition="python:policy['extendedKeyUsage']['extension'] != 'notpresent'">
	       not present
	     </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr class="row-lowlite">
        <td valign="top">Subject key identifier</td>
        <td valign="top">
          <table width="100%" celspacing=0 celpading="0">
            <tr>
              <td>
	      <input type="radio" name="subjectKeyIdentifier" value="">
	       None
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="subjectKeyIdentifier" value="hash" tal:condition="python:policy['subjectKeyIdentifier']['value']['hash'] == 'true'" checked>
	       <input type="radio" name="subjectKeyIdentifier" value="hash" tal:condition="python:policy['subjectKeyIdentifier']['value']['hash'] != 'true'" >
	       hash
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="subjectKeyIdentifier" value="hexstring" tal:condition="python:policy['subjectKeyIdentifier']['value']['hexstring'] == 'true'" checked>
	       <input type="radio" name="subjectKeyIdentifier" value="hexstring" tal:condition="python:policy['subjectKeyIdentifier']['value']['hexstring'] != 'true'">
	       hex-string
	     </td>
            </tr>
          </table>
        </td>
        <td valign="top">
          <table>
            <tr>
              <td>
	      <input type="radio" name="subjectKeyIdentifierOption" value="critical" tal:condition="python:policy['subjectKeyIdentifier']['extension'] == 'critical'" checked>
	      <input type="radio" name="subjectKeyIdentifierOption" value="critical" tal:condition="python:policy['subjectKeyIdentifier']['extension'] != 'critical'">
	       critical
	       </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="subjectKeyIdentifierOption" value="present" tal:condition="python:policy['subjectKeyIdentifier']['extension'] == 'present'" checked>
	       <input type="radio" name="subjectKeyIdentifierOption" value="present" tal:condition="python:policy['subjectKeyIdentifier']['extension'] != 'present'">
	       present
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="subjectKeyIdentifierOption" value="notpresent" tal:condition="python:policy['subjectKeyIdentifier']['extension'] == 'notpresent'" checked>
	       <input type="radio" name="subjectKeyIdentifierOption" value="notpresent" tal:condition="python:policy['subjectKeyIdentifier']['extension'] != 'notpresent'">
	       not present
	     </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr class="row-hilite">
        <td valign="top">Authority key identifier</td>
        <td valign="top">
          <table width="100%" celspacing=0 celpading="0">
            <tr>
              <td>
                <input type="checkbox" name="authorityKeyIdentifier:list" value="keyid" tal:condition="python:policy['authorityKeyIdentifier']['value']['keyid']['present'] == 'true'" checked>
		<input type="checkbox" name="authorityKeyIdentifier:list" value="keyid" tal:condition="python:policy['authorityKeyIdentifier']['value']['keyid']['present'] != 'true'">
		 keyid
                <input type="checkbox" name="authorityKeyIdentifier_keyid_value" value="always" tal:condition="python:policy['authorityKeyIdentifier']['value']['keyid']['value'] == 'always'" checked>
		<input type="checkbox" name="authorityKeyIdentifier_keyid_value" value="always" tal:condition="python:policy['authorityKeyIdentifier']['value']['keyid']['value'] != 'always'">
		 always
              </td>
            </tr>
            <tr>
              <td>
                <input type="checkbox" name="authorityKeyIdentifier:list" value="issuer" tal:condition="python:policy['authorityKeyIdentifier']['value']['issuer']['present'] == 'true'" checked>
		<input type="checkbox" name="authorityKeyIdentifier:list" value="issuer" tal:condition="python:policy['authorityKeyIdentifier']['value']['issuer']['present'] != 'true'" >
		issuer
                <input type="checkbox" name="authorityKeyIdentifier_issuer_value" value="always" tal:condition="python:policy['authorityKeyIdentifier']['value']['issuer']['value'] == 'always'" checked>
		<input type="checkbox" name="authorityKeyIdentifier_issuer_value" value="always" tal:condition="python:policy['authorityKeyIdentifier']['value']['issuer']['value'] != 'always'">
		always
              </td>
            </tr>
          </table>
        </td>
        <td valign="top">
          <table>
            <tr>
              <td>
	      <input type="radio" name="authorityKeyIdentifierOption" value="critical" tal:condition="python:policy['authorityKeyIdentifier']['extension'] == 'critical'" checked>
	       <input type="radio" name="authorityKeyIdentifierOption" value="critical" tal:condition="python:policy['authorityKeyIdentifier']['extension'] != 'critical'">
	       critical
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="authorityKeyIdentifierOption" value="present" tal:condition="python:policy['authorityKeyIdentifier']['extension'] == 'present'" checked>
	       <input type="radio" name="authorityKeyIdentifierOption" value="present" tal:condition="python:policy['authorityKeyIdentifier']['extension'] != 'present'" >
	       present
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="authorityKeyIdentifierOption" value="notpresent" tal:condition="python:policy['authorityKeyIdentifier']['extension'] == 'notpresent'" checked>
	       <input type="radio" name="authorityKeyIdentifierOption" value="notpresent" tal:condition="python:policy['authorityKeyIdentifier']['extension'] != 'notpresent'" >
	       not present
	     </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr class="row-lowlite">
        <td valign="top">Subject alt name</td>
        <td valign="top">
          <table width="100%" celspacing=0 celpading="0">
            <tr>
              <td width="20%">
                <input type="checkbox" name="subjectAltName:list" value="email" tal:condition="python:policy['subjectAltName']['value']['email']['present'] == 'true'" checked>
		<input type="checkbox" name="subjectAltName:list" value="email" tal:condition="python:policy['subjectAltName']['value']['email']['present'] != 'true'">
		 email
              </td>
              <td>
                <input type="text" name="subjectAltName_email_value" value="" tal:attributes="value python:policy['subjectAltName']['value']['email']['value']">
              </td>
            </tr>
            <tr>
              <td>
                <input type="checkbox" name="subjectAltName:list" value="URI" tal:condition="python:policy['subjectAltName']['value']['URI']['present'] == 'true'" checked>
		<input type="checkbox" name="subjectAltName:list" value="URI" tal:condition="python:policy['subjectAltName']['value']['URI']['present'] != 'true'">
		 URI
              </td>
              <td>
                <input type="text" name="subjectAltName_URI_value" value="" tal:attributes="value python:policy['subjectAltName']['value']['URI']['value']">
              </td>
            </tr>
            <tr>
              <td>
                <input type="checkbox" name="subjectAltName:list" value="DNS" tal:condition="python:policy['subjectAltName']['value']['DNS']['present'] == 'true'" checked>
		<input type="checkbox" name="subjectAltName:list" value="DNS" tal:condition="python:policy['subjectAltName']['value']['DNS']['present'] != 'true'">
		DNS
              </td>
              <td>
                <input type="text" name="subjectAltName_DNS_value" value="" tal:attributes="value python:policy['subjectAltName']['value']['DNS']['value']">
              </td>
            </tr>
            <tr>
              <td>
                <input type="checkbox" name="subjectAltName:list" value="RID" tal:condition="python:policy['subjectAltName']['value']['RID']['present'] == 'true'" checked>
		<input type="checkbox" name="subjectAltName:list" value="RID" tal:condition="python:policy['subjectAltName']['value']['RID']['present'] != 'true'">
		RID
              </td>
              <td>
                <input type="text" name="subjectAltName_RID_value" value="" tal:attributes="value python:policy['subjectAltName']['value']['RID']['value']">
              </td>
            </tr>
            <tr>
              <td>
                <input type="checkbox" name="subjectAltName:list" value="IP" tal:condition="python:policy['subjectAltName']['value']['IP']['present'] == 'true'" checked>
		<input type="checkbox" name="subjectAltName:list" value="IP" tal:condition="python:policy['subjectAltName']['value']['IP']['present'] != 'true'">
		IP
              </td>
              <td>
                <input type="text" name="subjectAltName_IP_value" value="" tal:attributes="value python:policy['subjectAltName']['value']['IP']['value']">
              </td>
            </tr>
          </table>
        </td>
        <td valign="top">
          <table>
            <tr>
              <td>
	      <input type="radio" name="subjectAltNameOption" value="critical" tal:condition="python:policy['subjectAltName']['extension'] == 'critical'" checked>
	       <input type="radio" name="subjectAltNameOption" value="critical" tal:condition="python:policy['subjectAltName']['extension'] != 'critical'">
	       critical
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="subjectAltNameOption" value="present" tal:condition="python:policy['subjectAltName']['extension'] == 'present'" checked>
	       <input type="radio" name="subjectAltNameOption" value="present" tal:condition="python:policy['subjectAltName']['extension'] != 'present'">
	       present
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="subjectAltNameOption" value="notpresent" tal:condition="python:policy['subjectAltName']['extension'] == 'notpresent'" checked>
	       <input type="radio" name="subjectAltNameOption" value="notpresent" tal:condition="python:policy['subjectAltName']['extension'] != 'notpresent'">
	       not present
	     </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr class="row-hilite">
        <td valign="top">Issuer alt name</td>
        <td valign="top">
          <table width="100%" celspacing=0 celpading="0">
            <tr>
              <td width="20%">
                <input type="checkbox" name="issuerAltName:list" value="issuer" tal:condition="python:policy['issuerAltName']['value']['issuer']['present'] == 'true'" checked>
		<input type="checkbox" name="issuerAltName:list" value="issuer" tal:condition="python:policy['issuerAltName']['value']['issuer']['present'] != 'true'">
		 issuer
		 <input type="hidden" name="issuerAltName_issuer_value" value="copy">
              </td>
              <td>
                &nbsp;
              </td>
            </tr>
            <tr>
              <td>
                <input type="checkbox" name="issuerAltName:list" value="URI" tal:condition="python:policy['issuerAltName']['value']['URI']['present'] == 'true'" checked>
		<input type="checkbox" name="issuerAltName:list" value="URI" tal:condition="python:policy['issuerAltName']['value']['URI']['present'] != 'true'">
		 URI
              </td>
              <td>
                <input type="text" name="issuerAltName_URI_value" value="" tal:attributes="value python:policy['issuerAltName']['value']['URI']['value']">
              </td>
            </tr>
            <tr>
              <td>
                <input type="checkbox" name="issuerAltName:list" value="DNS" tal:condition="python:policy['issuerAltName']['value']['DNS']['present'] == 'true'" checked>
		<input type="checkbox" name="issuerAltName:list" value="DNS" tal:condition="python:policy['issuerAltName']['value']['DNS']['present'] != 'true'">
		 DNS
              </td>
              <td>
                <input type="text" name="issuerAltName_DNS_value" value="" tal:attributes="value python:policy['issuerAltName']['value']['DNS']['value']">
              </td>
            </tr>
            <tr>
              <td>
                <input type="checkbox" name="issuerAltName:list" value="RID" tal:condition="python:policy['issuerAltName']['value']['RID']['present'] == 'true'" checked>
		<input type="checkbox" name="issuerAltName:list" value="RID" tal:condition="python:policy['issuerAltName']['value']['RID']['present'] != 'true'">
		RID
              </td>
              <td>
                <input type="text" name="issuerAltName_RID_value" value="" tal:attributes="value python:policy['issuerAltName']['value']['RID']['value']">
              </td>
            </tr>
            <tr>
              <td>
                <input type="checkbox" name="issuerAltName:list" value="IP" tal:condition="python:policy['issuerAltName']['value']['IP']['present'] == 'true'" checked>
		<input type="checkbox" name="issuerAltName:list" value="IP" tal:condition="python:policy['issuerAltName']['value']['IP']['present'] != 'true'">
		 IP
              </td>
              <td>
                <input type="text" name="issuerAltName_IP_value" value="" tal:attributes="value python:policy['issuerAltName']['value']['IP']['value']">
              </td>
            </tr>
          </table>
        </td>
        <td valign="top">
          <table>
            <tr>
              <td>
	      <input type="radio" name="issuerAltNameOption" value="critical" tal:condition="python:policy['issuerAltName']['extension'] == 'critical'" checked>
	       <input type="radio" name="issuerAltNameOption" value="critical" tal:condition="python:policy['issuerAltName']['extension'] != 'critical'">
	       critical
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="issuerAltNameOption" value="present" tal:condition="python:policy['issuerAltName']['extension'] == 'present'" checked>
	       <input type="radio" name="issuerAltNameOption" value="present" tal:condition="python:policy['issuerAltName']['extension'] != 'present'">
	       present
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="issuerAltNameOption" value="notpresent" tal:condition="python:policy['issuerAltName']['extension'] == 'notpresent'" checked>
	       <input type="radio" name="issuerAltNameOption" value="notpresent" tal:condition="python:policy['issuerAltName']['extension'] != 'notpresent'">
	       not present
	     </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr class="row-lowlite">
        <td valign="top">nsCertType</td>
        <td valign="top">
          <table width="100%" celspacing=0 celpading="0">
            <tr>
              <td width="50%">
	      <input type="checkbox" name="nsCertType:list" value="client" tal:condition="python:policy['nsCertType']['value']['client'] == 'true'" checked>
	       <input type="checkbox" name="nsCertType:list" value="client" tal:condition="python:policy['nsCertType']['value']['client'] != 'true'">
	       client
	     </td>
              <td width="50%">
	      <input type="checkbox" name="nsCertType:list" value="server" tal:condition="python:policy['nsCertType']['value']['server'] == 'true'" checked>
	       <input type="checkbox" name="nsCertType:list" value="server" tal:condition="python:policy['nsCertType']['value']['server'] != 'true'">
	       server
	     </td>
            </tr>
            <tr>
              <td width="50%">
	      <input type="checkbox" name="nsCertType:list" value="email" tal:condition="python:policy['nsCertType']['value']['email'] == 'true'" checked>
	       <input type="checkbox" name="nsCertType:list" value="email" tal:condition="python:policy['nsCertType']['value']['email'] != 'true'">
	       email
	     </td>
              <td width="50%">
	      <input type="checkbox" name="nsCertType:list" value="objsign" tal:condition="python:policy['nsCertType']['value']['objsign'] == 'true'" checked>
	       <input type="checkbox" name="nsCertType:list" value="objsign" tal:condition="python:policy['nsCertType']['value']['objsign'] != 'true'">
	       objsign</td>
            </tr>
            <tr>
              <td width="50%">
	      <input type="checkbox" name="nsCertType:list" value="reserved" tal:condition="python:policy['nsCertType']['value']['reserved'] == 'true'" checked>
	       <input type="checkbox" name="nsCertType:list" value="reserved" tal:condition="python:policy['nsCertType']['value']['reserved'] != 'true'">
	       reserved
	     </td>
              <td width="50%">
	      <input type="checkbox" name="nsCertType:list" value="sslCA" tal:condition="python:policy['nsCertType']['value']['sslCA'] == 'true'" checked>
	       <input type="checkbox" name="nsCertType:list" value="sslCA" tal:condition="python:policy['nsCertType']['value']['sslCA'] != 'true'">
	       sslCA
	     </td>
            </tr>
            <tr>
              <td width="50%">
	      <input type="checkbox" name="nsCertType:list" value="emailCA" tal:condition="python:policy['nsCertType']['value']['emailCA'] == 'true'" checked>
	       <input type="checkbox" name="nsCertType:list" value="emailCA" tal:condition="python:policy['nsCertType']['value']['emailCA'] != 'true'">
	       emailCA
	     </td>
              <td width="50%">
	      <input type="checkbox" name="nsCertType:list" value="objCA" tal:condition="python:policy['nsCertType']['value']['objCA'] == 'true'" checked>
	       <input type="checkbox" name="nsCertType:list" value="objCA" tal:condition="python:policy['nsCertType']['value']['objCA'] != 'true'">
	       objCA
	     </td>
            </tr>
          </table>
        </td>
        <td valign="top">
          <table>
            <tr>
              <td>
	      <input type="radio" name="nsCertTypeOption" value="critical" tal:condition="python:policy['nsCertType']['extension'] == 'critical'" checked>
	       <input type="radio" name="nsCertTypeOption" value="critical" tal:condition="python:policy['nsCertType']['extension'] != 'critical'">
	       critical
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="nsCertTypeOption" value="present" tal:condition="python:policy['nsCertType']['extension'] == 'present'" checked>
	       <input type="radio" name="nsCertTypeOption" value="present" tal:condition="python:policy['nsCertType']['extension'] != 'present'">
	       present
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="nsCertTypeOption" value="notpresent" tal:condition="python:policy['nsCertType']['extension'] == 'notpresent'" checked>
	       <input type="radio" name="nsCertTypeOption" value="notpresent" tal:condition="python:policy['nsCertType']['extension'] != 'notpresent'">
	       not present
	     </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr class="row-hilite">
        <td valign="top">nsComment</td>
        <td valign="top">
          <textarea name="nsComment"><span tal:content="python:policy['nsComment']['value']" tal:omit-tag=""></span></textarea>
        </td>
        <td valign="top">
          <table>
            <tr>
              <td>
	      <input type="radio" name="nsCommentOption" value="critical" tal:condition="python:policy['nsComment']['extension'] == 'critical'" checked>
	       <input type="radio" name="nsCommentOption" value="critical" tal:condition="python:policy['nsComment']['extension'] != 'critical'">
	       critical
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="nsCommentOption" value="present" tal:condition="python:policy['nsComment']['extension'] == 'present'" checked>
	       <input type="radio" name="nsCommentOption" value="present" tal:condition="python:policy['nsComment']['extension'] != 'present'">
	       present
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="nsCommentOption" value="notpresent" tal:condition="python:policy['nsComment']['extension'] == 'notpresent'" checked>
	       <input type="radio" name="nsCommentOption" value="notpresent" tal:condition="python:policy['nsComment']['extension'] != 'notpresent'">
	       not present
	     </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr class="row-lowlite">
        <td valign="top">nsCaPolicyURL</td>
        <td valign="top">
          <input type="text" name="nsCaPolicyUrl" value="" tal:attributes="value python:policy['nsCaPolicyUrl']['value']">
        </td>
        <td valign="top">
          <table>
            <tr>
              <td>
	      <input type="radio" name="nsCaPolicyUrlOption" value="critical" tal:condition="python:policy['nsCaPolicyUrl']['extension'] == 'critical'" checked>
	       <input type="radio" name="nsCaPolicyUrlOption" value="critical" tal:condition="python:policy['nsCaPolicyUrl']['extension'] != 'critical'">
	       critical
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="nsCaPolicyUrlOption" value="present" tal:condition="python:policy['nsCaPolicyUrl']['extension'] == 'present'" checked>
	       <input type="radio" name="nsCaPolicyUrlOption" value="present" tal:condition="python:policy['nsCaPolicyUrl']['extension'] != 'present'">
	       present
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="nsCaPolicyUrlOption" value="notpresent" tal:condition="python:policy['nsCaPolicyUrl']['extension'] == 'notpresent'" checked>
	       <input type="radio" name="nsCaPolicyUrlOption" value="notpresent" tal:condition="python:policy['nsCaPolicyUrl']['extension'] != 'notpresent'">
	       not present
	     </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr class="row-hilite">
        <td valign="top">nsCaRevocationURL</td>
        <td valign="top">
          <input type="text" name="nsCaRevocationUrl" value="" tal:attributes="value python:policy['nsCaRevocationUrl']['value']">
        </td>
        <td valign="top">
          <table>
            <tr>
              <td>
	      <input type="radio" name="nsCaRevocationUrlOption" value="critical" tal:condition="python:policy['nsCaRevocationUrl']['extension'] == 'critical'" checked>
	       <input type="radio" name="nsCaRevocationUrlOption" value="critical" tal:condition="python:policy['nsCaRevocationUrl']['extension'] != 'critical'">
	       critical
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="nsCaRevocationUrlOption" value="present" tal:condition="python:policy['nsCaRevocationUrl']['extension'] == 'present'" checked>
	       <input type="radio" name="nsCaRevocationUrlOption" value="present" tal:condition="python:policy['nsCaRevocationUrl']['extension'] != 'present'">
	       present
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="nsCaRevocationUrlOption" value="notpresent" tal:condition="python:policy['nsCaRevocationUrl']['extension'] == 'notpresent'" checked>
	       <input type="radio" name="nsCaRevocationUrlOption" value="notpresent" tal:condition="python:policy['nsCaRevocationUrl']['extension'] != 'notpresent'">
	       not present
	     </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr class="row-lowlite">
        <td valign="top">nsRenewalURL</td>
        <td valign="top">
          <input type="text" name="nsRenewalUrl" value="" tal:attributes="value python:policy['nsRenewalUrl']['value']">
        </td>
        <td valign="top">
          <table>
            <tr>
              <td>
	      <input type="radio" name="nsRenewalUrlOption" value="critical" tal:condition="python:policy['nsRenewalUrl']['extension'] == 'critical'" checked>
	       <input type="radio" name="nsRenewalUrlOption" value="critical" tal:condition="python:policy['nsRenewalUrl']['extension'] != 'critical'">
	       critical
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="nsRenewalUrlOption" value="present" tal:condition="python:policy['nsRenewalUrl']['extension'] == 'present'" checked>
	       <input type="radio" name="nsRenewalUrlOption" value="present" tal:condition="python:policy['nsRenewalUrl']['extension'] != 'present'">
	       present
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="nsRenewalUrlOption" value="notpresent" tal:condition="python:policy['nsRenewalUrl']['extension'] == 'notpresent'" checked>
	       <input type="radio" name="nsRenewalUrlOption" value="notpresent" tal:condition="python:policy['nsRenewalUrl']['extension'] != 'notpresent'">
	       not present
	     </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr class="row-hilite">
        <td valign="top">CRL distribution points</td>
        <td valign="top">
          <table width="100%" celspacing=0 celpading="0">
            <tr>
              <td width="20%">
                <input type="checkbox" name="crlDistributionPoints:list" value="email" tal:condition="python:policy['crlDistributionPoints']['value']['email']['present'] == 'true'" checked>
		<input type="checkbox" name="crlDistributionPoints:list" value="email" tal:condition="python:policy['crlDistributionPoints']['value']['email']['present'] != 'true'">
		 email
              </td>
              <td>
                <input type="text" name="crlDistributionPoints_email_value" value="" tal:attributes="value python:policy['crlDistributionPoints']['value']['email']['value']">
              </td>
            </tr>
            <tr>
              <td>
                <input type="checkbox" name="crlDistributionPoints:list" value="URI" tal:condition="python:policy['crlDistributionPoints']['value']['URI']['present'] == 'true'" checked>
		<input type="checkbox" name="crlDistributionPoints:list" value="URI" tal:condition="python:policy['crlDistributionPoints']['value']['URI']['present'] != 'true'" >
		URI
              </td>
              <td>
                <input type="text" name="crlDistributionPoints_URI_value" value="" tal:attributes="value python:policy['crlDistributionPoints']['value']['URI']['value']">
              </td>
            </tr>
            <tr>
              <td>
                <input type="checkbox" name="crlDistributionPoints:list" value="DNS" tal:condition="python:policy['crlDistributionPoints']['value']['DNS']['present'] == 'true'" checked>
		<input type="checkbox" name="crlDistributionPoints:list" value="DNS" tal:condition="python:policy['crlDistributionPoints']['value']['DNS']['present'] != 'true'">
		DNS
              </td>
              <td>
                <input type="text" name="crlDistributionPoints_DNS_value" value="" tal:attributes="value python:policy['crlDistributionPoints']['value']['DNS']['value']">
              </td>
            </tr>
            <tr>
              <td>
                <input type="checkbox" name="crlDistributionPoints:list" value="RID" tal:condition="python:policy['crlDistributionPoints']['value']['RID']['present'] == 'true'" checked>
		<input type="checkbox" name="crlDistributionPoints:list" value="RID" tal:condition="python:policy['crlDistributionPoints']['value']['RID']['present'] != 'true'">
		RID
              </td>
              <td>
                <input type="text" name="crlDistributionPoints_RID_value" value="" tal:attributes="value python:policy['crlDistributionPoints']['value']['RID']['value']">
              </td>
            </tr>
            <tr>
              <td>
                <input type="checkbox" name="crlDistributionPoints:list" value="IP" tal:condition="python:policy['crlDistributionPoints']['value']['IP']['present'] == 'true'" checked>
		<input type="checkbox" name="crlDistributionPoints:list" value="IP" tal:condition="python:policy['crlDistributionPoints']['value']['IP']['present'] != 'true'">
		IP
              </td>
              <td>
                <input type="text" name="crlDistributionPoints_IP_value" value="" tal:attributes="value python:policy['crlDistributionPoints']['value']['IP']['value']">
              </td>
            </tr>
          </table>
        </td>
        <td valign="top">
          <table>
            <tr>
            <td>
	    <input type="radio" name="crlDistributionPointsOption" value="critical" tal:condition="python:policy['crlDistributionPoints']['extension'] == 'critical'" checked>
	     <input type="radio" name="crlDistributionPointsOption" value="critical" tal:condition="python:policy['crlDistributionPoints']['extension'] != 'critical'">
	     critical
	   </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="crlDistributionPointsOption" value="present" tal:condition="python:policy['crlDistributionPoints']['extension'] == 'present'" checked>
	       <input type="radio" name="crlDistributionPointsOption" value="present" tal:condition="python:policy['crlDistributionPoints']['extension'] != 'present'">
	       present
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="crlDistributionPointsOption" value="notpresent" tal:condition="python:policy['crlDistributionPoints']['extension'] == 'notpresent'" checked>
	       <input type="radio" name="crlDistributionPointsOption" value="notpresent" tal:condition="python:policy['crlDistributionPoints']['extension'] != 'notpresent'">
	       not present
	     </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr class="row-lowlite">
        <td valign="top">Certificate policies</td>
        <td valign="top">
          <table width="100%" celspacing=0 celpading="0">
            <tr>
              <td width="20%">
                IDs:
              </td>
              <td>
                <input type="text" name="certificatePoliciesIDs" value="" tal:attributes="value python:policy['certificatePolicies']['value']['ID']['value']">
              </td>
            </tr>
            <tr>
              <td>
                CPS
              </td>
              <td>
                <input type="text" name="certificatePoliciesCPS" value="" tal:attributes="value python:policy['certificatePolicies']['value']['CPS']['value']">
              </td>
            </tr>
            <tr>
              <td>
                User Notices
              </td>
              <td>
                <textarea name="certificatePoliciesUserNotices"><span tal:content="python:policy['certificatePolicies']['value']['userNotices']['value']" tal:omit-tag=""></span></textarea>
              </td>
            </tr>
          </table>
        </td>
        <td valign="top">
          <table>
            <tr>
              <td>
	      <input type="radio" name="certificatePoliciesOption" value="critical" tal:condition="python:policy['certificatePolicies']['extension'] == 'critical'" checked>
	       <input type="radio" name="certificatePoliciesOption" value="critical" tal:condition="python:policy['certificatePolicies']['extension'] != 'critical'">
	       critical
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="certificatePoliciesOption" value="present" tal:condition="python:policy['certificatePolicies']['extension'] == 'present'" checked>
	       <input type="radio" name="certificatePoliciesOption" value="present" tal:condition="python:policy['certificatePolicies']['extension'] != 'present'">
	       present
	     </td>
            </tr>
            <tr>
              <td>
	      <input type="radio" name="certificatePoliciesOption" value="notpresent" tal:condition="python:policy['certificatePolicies']['extension'] == 'notpresent'" checked>
	       <input type="radio" name="certificatePoliciesOption" value="notpresent" tal:condition="python:policy['certificatePolicies']['extension'] != 'notpresent'">
	       not present
	     </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td colspan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="3" align="center">
          <input type="submit" name="submit" value=" Save policy " tal:condition="python:policy['name'] != ''">
          <input type="submit" name="submit" value=" Add policy " tal:condition="python:policy['name'] == ''">
        </td>
      </tr>
    </table>
    </form>
    </div>
    <!-- ###### END MAIN CONTENT ##### -->

    <!-- ###### FOOTER ##### -->
    <p metal:use-macro="container/index_html/macros/footer" id="footer-bar" align="right">
      The  eye <img src="logo.gif" width="34" height="18">
    </p>
    <!-- ###### END FOOTER ##### -->
  </body>
</html>
