summaryrefslogtreecommitdiffstats
path: root/comm/mail/extensions/am-e2e/am-e2e.inc.xhtml
blob: 76841870aae100721bf648b9320a85a17782ff7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
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>