<html>
  <head>
    <title tal:content="template/title">The title</title>
  </head>
  <body tal:define="Split python:modules['string'].split">
  <link href="styles.css" rel="stylesheet" type="text/css">
<script>
function ConfirmDeletion(){
	return confirm("Are you sure to delete this certificate?");
}
</script>
  <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="right-bar">
     <form action="manage_exportKey" method="POST" tal:condition="python:here.REQUEST.form['own'] == '1'">
        <input type="hidden" name="cert" value="1" tal:attributes="value python:here.REQUEST.form['cert']">
	<input type="hidden" name="own" value="1" tal:attributes="value python:here.REQUEST.form['own']">
        <table width="145px" class="table-group">
          <tr>
	    <td class="table-group-title">Export key</td>
	  </tr>
	  <tr>
	    <td class="table-group-row" align="center">Password: <input type="password" name="password" size="8"></td>
	  </tr>
	  <tr>
	    <td class="table-group-row">
             &nbsp;&nbsp;&nbsp;<input type="checkbox" name="pem" value="pem">pem
	    </td>
	  </tr>
	  <tr>
	    <td class="table-group-row">
             &nbsp;&nbsp;&nbsp;<input type="checkbox" name="path" value="path">path
	    </td>
	  </tr>
	  <tr>
	    <td class="table-group-row">
             &nbsp;&nbsp;&nbsp;<input type="checkbox" name="pkcs1" value="pkcs1">pkcs1
	    </td>
	  </tr>
	  <tr>
	    <td align="center" class="table-group-row"><input type="submit" value=" Export "></td>
	  </tr>
        </table>
      </form>
      <form action="manage_exportCert" method="POST">
        <input type="hidden" name="cert" value="1" tal:attributes="value python:here.REQUEST.form['cert']">
	<input type="hidden" name="own" value="1" tal:attributes="value python:here.REQUEST.form['own']">
        <table width="145px"  class="table-group">
          <tr>
	    <td class="table-group-title" class="table-group-row">Export cert</td>
	  </tr>
	  <tr>
	    <td align="center" class="table-group-row">
             <input type="checkbox" name="pem" value="pem">pem <input type="checkbox" name="path" value="path">path
	    </td>
	  </tr>
	  <tr>
	    <td align="center" class="table-group-row"><input type="submit" value=" Export "></td>
	  </tr>
        </table>
      </form>
      <form action="manage_generateRequest" method="POST" tal:condition="python:here.REQUEST.form['own'] == '1'">
        <input type="hidden" name="cert" value="1" tal:attributes="value python:here.REQUEST.form['cert']">
	<input type="hidden" name="own" value="1" tal:attributes="value python:here.REQUEST.form['own']">
        <table width="145px" class="table-group">
          <tr>
	    <td class="table-group-title">Generate request</td>
	  </tr>
	  <tr>
	    <td align="center" class="table-group-row">
             <input type="checkbox" name="x509" value="x509">X.509
	    </td>
	  </tr>
	  <tr>
	    <td align="center" class="table-group-row"><input type="submit" value=" Generate "></td>
	  </tr>
        </table>
      </form>
     <form action="manage_deleteCert" method="POST" onsubmit="return ConfirmDeletion();">
        <input type="hidden" name="cert" value="1" tal:attributes="value python:here.REQUEST.form['cert']">
	<input type="hidden" name="own" value="1" tal:attributes="value python:here.REQUEST.form['own']">
        <table width="145px" class="table-group">
          <tr>
	    <td class="table-group-title">Delete cert</td>
	  </tr>
	  <tr>
	    <td align="center" class="table-group-row"><input type="submit" value=" Delete "></td>
	  </tr>
        </table>
      </form>
    </div>
    <div id="main-content">

		
      <table>
        <tr>
	  <td class="info-pre"><span tal:content="structure python: here.GetCertificateInfoHtml(here.REQUEST.form['own'],here.REQUEST.form['cert'])" tal:omit-tag="">CERTIFICATE_CONTENT</span></td>
	</tr>
      </table>
    </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>
