chat/content/otr-add-fingerprint.xhtml
author Geoff Lankow <geoff@darktrojan.net>
Tue, 24 Dec 2019 22:06:52 +1300
changeset 36933 0ff64b19c5136621a4ad40a2d9192d2bfc43a185
parent 36852 chat/content/otr-add-fingerprint.xul@7f136a6c0f30254e0edd6c633b2d81406b9c9047
child 37850 02acd483616d778bc6d73f8bf03683caed49163d
permissions -rw-r--r--
Bug 1605845 - Rename all .xul files to .xhtml; rs=bustage-fix

<?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/" type="text/css" ?>
<?xml-stylesheet href="chrome://chat/skin/otrFingerprintDialog.css" type="text/css"?>

<!DOCTYPE window>

<window data-l10n-id="otr-add-finger"
        windowtype="OTR:AddFinger"
        onload="otrAddFinger.onload()"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        xmlns:html="http://www.w3.org/1999/xhtml">
  <dialog id="otrAddFingerDialog"
          buttons="accept,cancel"
          buttondisabledaccept="true">

    <keyset id="mailKeys">
      <key keycode="VK_ESCAPE" oncommand="window.close();"/>
    </keyset>

    <linkset>
      <html:link rel="localization" href="messenger/otr/add-finger.ftl"/>
    </linkset>

    <script src="chrome://chat/content/otr-add-fingerprint.js"/>
    <script src="chrome://global/content/globalOverlay.js"/>
    <script src="chrome://global/content/editMenuOverlay.js"/>
    <vbox class="dialog-container" flex="1">
      <hbox align="center" pack="center" class="header-container">
        <vbox>
          <image class="header-icon icon-login"/>
        </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>
        <image id="fingerWarning" class="form-icon icon-warning" hidden="true"/>
      </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>
    </vbox>
  </dialog>
</window>