summaryrefslogtreecommitdiffstats
path: root/comm/mail/extensions/am-e2e/am-e2e.inc.xhtml
diff options
context:
space:
mode:
Diffstat (limited to 'comm/mail/extensions/am-e2e/am-e2e.inc.xhtml')
-rw-r--r--comm/mail/extensions/am-e2e/am-e2e.inc.xhtml237
1 files changed, 237 insertions, 0 deletions
diff --git a/comm/mail/extensions/am-e2e/am-e2e.inc.xhtml b/comm/mail/extensions/am-e2e/am-e2e.inc.xhtml
new file mode 100644
index 0000000000..76841870aa
--- /dev/null
+++ b/comm/mail/extensions/am-e2e/am-e2e.inc.xhtml
@@ -0,0 +1,237 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+ <vbox id="e2eEditing">
+
+ <stringbundle id="bundle_e2e" src="chrome://messenger/locale/am-smime.properties"/>
+ <stringbundle id="bundle_brand" src="chrome://branding/locale/brand.properties"/>
+
+ <linkset>
+ <html:link rel="localization" href="branding/brand.ftl"/>
+ <html:link rel="localization" href="messenger/openpgp/openpgp.ftl"/>
+ </linkset>
+
+ <vbox flex="1">
+ <html:p class="intro-paragraph">&e2eEnc.description;</html:p>
+ <html:p class="intro-paragraph"
+ data-l10n-id="e2e-intro-description"></html:p>
+ <html:span class="tail-with-learn-more"
+ data-l10n-id="e2e-intro-description-more"></html:span>
+ <label is="text-link" id="acceptLearnMoreE2E"
+ href="https://support.mozilla.org/kb/thunderbird-help-setup-account-e2ee"
+ value="&e2eLearnMore.label;"/>
+ </vbox>
+
+ <html:div>
+ <html:fieldset id="openpgpOptions"
+ aria-describedby="openPgpDescription">
+ <html:legend>&openpgpKeys.label;</html:legend>
+
+ <vbox data-subcategory="openpgp" class="openpgp-container">
+ <hbox align="center" class="opengpg-intro-section">
+ <html:img id="openPgpKey"
+ src="chrome://messenger/skin/icons/new/compact/key.svg"
+ alt="" />
+ <vbox flex="1">
+ <description class="description-with-side-element openpgp-description">
+ <html:p id="openPgpDescription"></html:p>
+ <html:img id="openPgpStatusImage" class="openpgp-status"
+ alt="" hidden="hidden"/>
+ <html:span id="openPgpSelectionStatus"
+ class="tail-with-learn-more"
+ hidden="hidden"></html:span>
+ <label is="text-link" id="openPgpLearnMore"
+ href="https://support.mozilla.org/kb/introduction-to-e2e-encryption"
+ data-l10n-id="e2e-learn-more"
+ class="learnMore"
+ hidden="true"/>
+ </description>
+ </vbox>
+ <vbox>
+ <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+ <hbox>
+ <button id="addOpenPgpButton"
+ data-l10n-id="openpgp-add-key-button"
+ oncommand="openKeyWizard();"
+ class="accessory-button openpgp-add-key-button openpgp-image-btn"
+ flex="1"/>
+ </hbox>
+ </vbox>
+ </hbox>
+
+ <hbox id="openPgpNotification"
+ class="inline-notification-container success-container"
+ collapsed="true">
+ <hbox class="inline-notification-wrapper align-center">
+ <html:img class="notification-image"
+ src="chrome://global/skin/icons/check.svg"
+ alt="" />
+ <description id="openPgpNotificationDescription"/>
+ <button class="close-icon" oncommand="closeNotification()"/>
+ </hbox>
+ </hbox>
+
+ <vbox id="openPgpKeyList">
+ <radiogroup id="openPgpKeyListRadio">
+ <vbox id="openPgpOptionNone" class="content-blocking-category">
+ <hbox>
+ <radio id="openPgpNone"
+ value=""
+ data-l10n-id="openpgp-radio-none"
+ flex="1"/>
+ </hbox>
+ <vbox class="indent">
+ <description data-l10n-id="openpgp-radio-none-desc"/>
+ </vbox>
+ </vbox>
+ <!-- All available keys will be appended here. -->
+ </radiogroup>
+ </vbox>
+ </vbox>
+
+ <separator/>
+
+ <description flex="1" data-l10n-id="openpgp-manager-description"/>
+
+ <separator class="thin"/>
+
+ <hbox>
+ <button id="openOpenPGPKeyManagerButton"
+ data-l10n-id="openpgp-manager-button"
+ class="first-element"
+ oncommand="openKeyManager()"/>
+ </hbox>
+ </html:fieldset>
+ </html:div>
+
+ <separator/>
+
+ <html:div>
+ <html:fieldset id="smimeOptions">
+ <html:legend>&certificates2.label;</html:legend>
+
+ <label id="identity_signing_cert_nameLabel"
+ value="&signingCert2.message;" control="identity_signing_cert_name"/>
+
+ <hbox align="center" class="input-container">
+ <html:input id="identity_signing_cert_name" type="text"
+ class="input-inline"
+ readonly="readonly"
+ disabled="disabled"
+ aria-labelledby="identity_signing_cert_nameLabel"
+ wsm_persist="true"
+ prefstring="mail.identity.%identitykey%.signing_cert_name"/>
+
+ <button id="signingCertSelectButton"
+ label="&digitalSign.certificate.button;"
+ accesskey="&digitalSign.certificate.accesskey;"
+ oncommand="smimeSelectCert('identity_signing_cert_name')"/>
+
+ <button id="signingCertClearButton"
+ label="&digitalSign.certificate_clear.button;"
+ accesskey="&digitalSign.certificate_clear.accesskey;"
+ oncommand="smimeClearCert('identity_signing_cert_name')"/>
+ </hbox>
+
+ <separator class="thin"/>
+
+ <label value="&encryptionCert2.message;"
+ control="identity_encryption_cert_name"/>
+
+ <hbox align="center" class="input-container">
+ <html:input id="identity_encryption_cert_name" type="text"
+ class="input-inline"
+ readonly="readonly"
+ disabled="disabled"
+ wsm_persist="true"
+ prefstring="mail.identity.%identitykey%.encryption_cert_name"/>
+
+ <button id="encryptionCertSelectButton"
+ label="&encryption.certificate.button;"
+ accesskey="&encryption.certificate.accesskey;"
+ oncommand="smimeSelectCert('identity_encryption_cert_name')"/>
+
+ <button id="encryptionCertClearButton"
+ label="&encryption.certificate_clear.button;"
+ accesskey="&encryption.certificate_clear.accesskey;"
+ oncommand="smimeClearCert('identity_encryption_cert_name')"/>
+ </hbox>
+
+ <separator class="thin"/>
+
+ <hbox align="right">
+ <button id="openCertManagerButton" oncommand="openCertManager();"
+ label="&manageCerts3.label;" accesskey="&manageCerts3.accesskey;"/>
+ <button id="openDeviceManagerButton" oncommand="openDeviceManager();"
+ label="&manageDevices2.label;" accesskey="&manageDevices2.accesskey;"/>
+ </hbox>
+
+ </html:fieldset>
+ </html:div>
+
+ <separator/>
+
+ <html:legend>&sendingDefaults.label;</html:legend>
+
+ <html:div>
+ <html:fieldset>
+ <radiogroup id="encryptionChoices" class="indent" hidden="true">
+ <radio id="disable_encryption" wsm_persist="true" value="0"
+ data-l10n-id="e2e-disable-enc"/>
+ <radio id="enable_encryption" wsm_persist="true" value="2"
+ data-l10n-id="e2e-enable-enc"/>
+ <hbox>
+ <description flex="1" data-l10n-id="e2e-enable-description"
+ class="option-description tip-caption"/>
+ </hbox>
+ </radiogroup>
+
+ <separator/>
+
+ <description flex="1" data-l10n-id="e2e-signing-description"></description>
+ <checkbox id="identity_sign_mail" class="indent" wsm_persist="true"
+ prefstring="mail.identity.%identitykey%.sign_mail"
+ data-l10n-id="e2e-sign-message"/>
+
+ </html:fieldset>
+ </html:div>
+
+ <separator/>
+
+ <html:legend data-l10n-id="e2e-advanced-section"/>
+
+ <html:div>
+ <html:fieldset>
+ <checkbox id="identity_attach_key" wsm_persist="true"
+ prefstring="mail.identity.%identitykey%.attachPgpKey"
+ data-l10n-id="e2e-attach-key"/>
+
+ <checkbox id="identity_autocrypt_headers" wsm_persist="true"
+ prefstring="mail.identity.%identitykey%.sendAutocryptHeaders"
+ data-l10n-id="e2e-autocrypt-headers"/>
+
+ <checkbox id="identity_encrypt_subject" wsm_persist="true"
+ prefstring="mail.identity.%identitykey%.protectSubject"
+ data-l10n-id="e2e-encrypt-subject"/>
+
+ <checkbox id="identity_encrypt_drafts" wsm_persist="true"
+ prefstring="mail.identity.%identitykey%.autoEncryptDrafts"
+ data-l10n-id="e2e-encrypt-drafts"/>
+
+ <separator/>
+
+ <description>&e2eTechPref.description;</description>
+ <radiogroup id="technologyChoices" class="indent">
+ <radio id="technology_automatic" wsm_persist="true" value="0"
+ label="&technologyAutomatic.label;"/>
+
+ <radio id="technology_prefer_openpgp" wsm_persist="true" value="2"
+ label="&technologyOpenPGP.label;"/>
+
+ <radio id="technology_prefer_smime" wsm_persist="true" value="1"
+ label="&technologySMIME.label;"/>
+ </radiogroup>
+ </html:fieldset>
+ </html:div>
+ </vbox>