Code

Removed duplicated addslashes
[gosa.git] / plugins / personal / generic / generic_certs.tpl
index f2eb3416471a44b12279e733397f8e7b1a19f4cb..0b5e7597c5dab950cca156093f988c6a14cd3f9b 100644 (file)
@@ -1,21 +1,26 @@
 <input type="hidden" name="MAX_FILE_SIZE" value="2000000">
  <!-- Headline container -->
-<h2><img alt="" align="middle" src="images/certs.png"> {t}Certificates{/t}</h2>
+<h2><img alt="" class="center" align="middle" src="images/certs.png"> {t}Certificates{/t}</h2>
 
 <table summary="" style="vertical-align:top; text-align:left;border-top: 1px solid rgb(176,176,176);" width="100%" cellpadding=4 border=0>
  <tr>
    <td width="12%" style="vertical-align:top">
       {t}Standard certificate{/t}
    </td>
+  
    <td style="vertical-align:top">
-        {$userCertificateinfo}
+        <LABEL for="userCertificate_file">{if $Certificate_readable}{$userCertificateinfo}{/if}</LABEL>
         </td>
         <td style="vertical-align:top;text-align:right">
         {if $userCertificate_state ne "true"}
-     <input name="userCertificate_file" type="file" size="20" maxlength="255" accept="text/*.*">
+       {render acl=$CertificateACL}
+     <input id="userCertificate_file" name="userCertificate_file" type="file" size="20" maxlength="255" accept="text/*.*">
+       {/render}
      {else}
+       {render acl=$CertificateACL}
      <input type=submit name="remove_userCertificate" value="{t}Remove{/t}">
-        {/if}
+       {/render}
+     {/if}
    </td>
  </tr>
  </table>
       {t}S/MIME certificate{/t} 
    </td>
    <td style="vertical-align:top">
-     {$userSMIMECertificateinfo}
+     <LABEL for="userSMIMECertificate_file">{if $Certificate_readable}{$userSMIMECertificateinfo}{/if}</LABEL>
    </td>
    <td style="vertical-align:top;text-align:right">
         {if $userSMIMECertificate_state ne "true"}
-     <input name="userSMIMECertificate_file" type="file" size="20" maxlength="255" accept="text/*.*">
+       {render acl=$CertificateACL}
+     <input id="userSMIMECertificate_file" name="userSMIMECertificate_file" type="file" size="20" maxlength="255" accept="text/*.*">
+       {/render}
      {else}
+       {render acl=$CertificateACL}
      <input type=submit name="remove_userSMIMECertificate" value="{t}Remove{/t}">
+       {/render}
         {/if}
    </td>
  </tr>
       {t}PKCS12 certificate{/t} 
    </td>
    <td style="vertical-align:top">
-     {$userPKCS12info}
+     <LABEL for="userPKCS12_file">{if $Certificate_readable}{$userPKCS12info}{/if}</LABEL>
    </td>
    <td style="vertical-align:top;text-align:right">
         {if $userPKCS12_state ne "true"}
-     <input name="userPKCS12_file" type="file" size="20" maxlength="255" accept="text/*.*">
+       {render acl=$CertificateACL}
+     <input id="userPKCS12_file" name="userPKCS12_file" type="file" size="20" maxlength="255" accept="text/*.*">
+       {/render}
         {else}
+       {render acl=$CertificateACL}
      <input type=submit name="remove_userPKCS12" value="{t}Remove{/t}">
+       {/render}
         {/if}
    </td>
  </tr>
  {if $governmentmode eq "true"}
  <tr>
    <td>
-     {t}Certificate serial number{/t}
+     <LABEL for="certificateSerialNumber">{t}Certificate serial number{/t}</LABEL>
    </td>
    <td>
-     <input name="certificateSerialNumber" size=10 maxlength=20 {$certificateSerialNumberACL}
-            value="{$certificateSerialNumber}">
+       {render acl=$CertificateACL}
+     <input id="certificateSerialNumber" name="certificateSerialNumber" size=10 maxlength=20 value="{$certificateSerialNumber}">
+       {/render}
    </td>
  </tr>
  {/if}
 </table>
 
 <p class="plugbottom">
-  <input type=submit name="cert_edit_finish" value="{t}Finish{/t}">
+       {render acl=$CertificateACL}
+  <input type=submit name="cert_edit_finish" value="{t}Save{/t}">
+       {/render}
   &nbsp;
   <input type=submit name="cert_edit_cancel" value="{t}Cancel{/t}">
 </p>