W.I.P. S/MIME:

- Make p12 password field visible after file gets uploaded
- Add icons to operational buttons
- Fix some of the misalignments
This commit is contained in:
Hadi Nategh 2017-08-23 11:19:03 +02:00
parent 1a58c0ba08
commit 7dc5c2e2b0

View File

@ -289,36 +289,38 @@
</rows>
</grid>
</template>
<template id="admin.mailaccount.encryption" template="" lang="" group="0" version="1.9.001">
<grid width="100%">
<template id="admin.mailaccount.encryption" template="" lang="" group="0" version="17.1">
<grid width="100%" resize_ratio="0">
<columns>
<column width="115"/>
<column/>
<column width="120"/>
<column width="500"/>
</columns>
<rows>
<row>
<description value="SMIME"/>
<hbox>
<buttononly label="Generate Certificate" onclick="app.admin.smime_genCertificate"/>
<buttononly label="export private key" onclick="app.admin.smime_exportKey('privkey')" disabled="!@acc_smime_password"/>
<buttononly label="export certificate" onclick="app.admin.smime_exportKey('cert')" disabled="!@smime_cert"/>
</hbox>
</row>
<row>
<description value="Paste your private key as text here or upload your .key/.p12 file"/>
<textbox multiline="true" id="acc_smime_password" height="150" width="70%"/>
</row>
<row>
<description value="Certificate"/>
<textbox multiline="true" id="smime_cert" height="150" width="70%"/>
<hbox>
<buttononly label="Generate Certificate" onclick="app.admin.smime_genCertificate" image="add" background_image="1"/>
<buttononly label="export private key" onclick="app.admin.smime_exportKey('privkey')" disabled="!@acc_smime_password" image="export" background_image="1"/>
<buttononly label="export certificate" onclick="app.admin.smime_exportKey('cert')" disabled="!@smime_cert" image="export" background_image="1"/>
</hbox>
</row>
<row>
<description/>
<file id="smimeKeyUpload" accept=".key,.p12"/>
<description value="Certificate file in p12 format"/>
<vbox>
<file id="smimeKeyUpload" accept=".key,.p12" onchange="app.admin.et2.getWidgetById('smime_pkcs12_password').set_disabled(false);"/>
<passwd id="smime_pkcs12_password" size="32" maxlength="128" autocomplete="off" blur="Password to unlock encrypted p12" disabled="true"/>
</vbox>
</row>
<row>
<description for="smime_pkcs12_password" value="Password to unlock encrypted p12"/>
<passwd id="smime_pkcs12_password" size="32" maxlength="128" autocomplete="off"/>s
<description value="Paste your private key as text here or upload your .key/.p12 file"/>
<textbox multiline="true" id="acc_smime_password" height="130" resize_ratio="0" class="et2_fullWidth"/>
</row>
<row>
<description value="Certificate"/>
<textbox multiline="true" id="smime_cert" height="130" resize_ratio="0" class="et2_fullWidth"/>
</row>
</rows>
</grid>