summaryrefslogtreecommitdiffstats
path: root/comm/chat/content/otr-add-fingerprint.xhtml
blob: cb5c17cea56e07292bd0c2cc32dbe86d8bf8233b (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
<?xml version="1.0" ?>
<!-- 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/. -->

<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css" ?>
<?xml-stylesheet href="chrome://chat/skin/otrFingerprintDialog.css" type="text/css"?>

<!DOCTYPE html>
<html
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  xmlns:html="http://www.w3.org/1999/xhtml"
  windowtype="OTR:AddFinger"
  width="540"
  height="200"
  scrolling="false"
>
  <head>
    <title data-l10n-id="otr-add-finger-title"></title>
    <link rel="localization" href="messenger/otr/add-finger.ftl" />
    <script
      defer="defer"
      src="chrome://messenger/content/globalOverlay.js"
    ></script>
    <script
      defer="defer"
      src="chrome://global/content/editMenuOverlay.js"
    ></script>
    <script
      defer="defer"
      src="chrome://chat/content/otr-add-fingerprint.js"
    ></script>
  </head>
  <html:body
    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  >
    <dialog buttons="accept,cancel" buttondisabledaccept="true">
      <hbox align="center" pack="center" class="header-container">
        <vbox>
          <html:img
            class="header-icon"
            src="chrome://messenger/skin/icons/login.svg"
            alt=""
          />
        </vbox>
        <vbox flex="1">
          <description id="otrDescription" />
        </vbox>
      </hbox>
      <hbox class="form-control" align="center">
        <label
          data-l10n-id="otr-add-finger-fingerprint"
          class="label-box"
          control="fingerprint"
        />
        <hbox class="input-control" align="center" flex="1">
          <html:input
            id="fingerprint"
            type="text"
            data-l10n-id="otr-add-finger-input"
            class="input-field"
            oninput="otrAddFinger.oninput(this);"
            onblur="otrAddFinger.onblur(this);"
            pattern="[ 0-9a-fA-F]*"
            minlength="44"
            maxlength="44"
          />
        </hbox>
        <html:img
          id="fingerWarning"
          class="warning-icon"
          src="chrome://global/skin/icons/warning.svg"
          alt=""
          width="16"
          height="16"
          hidden="hidden"
        />
      </hbox>
      <vbox class="input-helper-container" flex="1" align="end">
        <label
          id="fingerError"
          data-l10n-id="otr-add-finger-tooltip-error"
          class="msg-error"
          hidden="true"
        />
        <label id="keyCount" class="input-helper" value="0/40" />
      </vbox>
    </dialog>
  </html:body>
</html>