chat/content/otr-auth.xhtml
author Jorg K <jorgk@jorgk.com>
Sun, 21 Jun 2020 02:16:41 +0200
changeset 39475 85f78035c5db080f36dacf07e950c7482470f32e
parent 38738 02acd483616d778bc6d73f8bf03683caed49163d
permissions -rw-r--r--
Bug 1647104 - Fix real bugs found with codespell. r=mkmelin a=wsmwk

<?xml version="1.0" encoding="UTF-8"?>
<!-- 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://messenger/skin/messenger.css"?>
<?xml-stylesheet type="text/css" href="chrome://messenger/skin/input-fields.css"?>

<!DOCTYPE window>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        xmlns:html="http://www.w3.org/1999/xhtml"
        data-l10n-id="otr-auth"
        data-l10n-attrs="buttonlabelaccept"
        windowtype="OTR:Auth"
        onload="otrAuth.onload()">

  <dialog id="otrAuthDialog"
          buttons="accept,cancel,help"
          buttondisabledaccept="true">

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

    <script src="chrome://global/content/globalOverlay.js"/>
    <script src="chrome://global/content/editMenuOverlay.js"/>
    <script src="chrome://chat/content/otr-auth.js"/>

    <html:fieldset id="how" hidden="hidden">
      <html:legend data-l10n-id="auth-how"></html:legend>
      <vbox>
      <menulist id="howOption" oncommand="otrAuth.how();">
        <menupopup>
          <menuitem data-l10n-id="auth-questionAndAnswer-label" value="questionAndAnswer"/>
          <menuitem data-l10n-id="auth-sharedSecret-label" value="sharedSecret"/>
          <menuitem data-l10n-id="auth-manualVerification-label" value="manualVerification"/>
        </menupopup>
      </menulist>
      </vbox>
    </html:fieldset>

    <html:fieldset id="questionAndAnswer" hidden="hidden">
      <html:legend data-l10n-id="auth-questionAndAnswer"></html:legend>
      <vbox>
      <description style="width: 300px; white-space: pre-wrap;" data-l10n-id="auth-qaInstruction"></description>
      <label data-l10n-id="auth-question" control="question" flex="1"/>
      <html:input id="question" type="text" class="input-inline"
                  aria-labelledby="auth-question"/>
      <label data-l10n-id="auth-answer" control="answer" flex="1"/>
      <html:input id="answer" type="text" class="input-inline"
                  aria-labelledby="auth-answer"
                  oninput="otrAuth.oninput(this)"/>
      </vbox>
    </html:fieldset>

    <html:fieldset id="sharedSecret" hidden="hidden">
      <html:legend data-l10n-id="auth-sharedSecret"></html:legend>
      <vbox>
      <description style="width: 300px; white-space: pre-wrap;" data-l10n-id="auth-secretInstruction"></description>
      <label data-l10n-id="auth-secret" control="secret" flex="1"/>
      <html:input id="secret" type="text" class="input-inline"
                  aria-labelledby="auth-secret"
                  oninput="otrAuth.oninput(this)"/>
      </vbox>
    </html:fieldset>

    <html:fieldset id="manualVerification" hidden="hidden">
      <html:legend data-l10n-id="auth-manualVerification"></html:legend>
      <vbox>
      <description style="width: 300px; white-space: pre-wrap;" data-l10n-id="auth-manualInstruction"></description>

      <label id="yourFPLabel"/>
      <html:input id="yourFPValue" type="text" class="input-inline"
                  readonly="readonly"
                  aria-labelledby="yourFPLabel"/>
      <label id="theirFPLabel"/>
      <html:input id="theirFPValue" type="text" class="input-inline"
                  readonly="readonly"
                  aria-labelledby="theirFPLabel"/>

      <hbox align="center">
        <label data-l10n-id="auth-verified"/>
        <menulist id="verifiedOption">
          <menupopup>
            <menuitem data-l10n-id="auth-yes" value="yes"/>
            <menuitem data-l10n-id="auth-no" value="no"/>
          </menupopup>
        </menulist>
      </hbox>
      </vbox>
    </html:fieldset>

    <html:fieldset id="ask" hidden="hidden">
      <label id="receivedQuestionLabel" data-l10n-id="auth-questionReceived"/>
      <vbox>
      <description id="receivedQuestion" style="width: 300px; white-space: pre-wrap;"/>
      <label id="responseLabel" control="response" flex="1"/>
      <html:input id="response" type="text" class="input-inline"
                  aria-labelledby="responseLabel"
                  oninput="otrAuth.oninput(this)"/>
      </vbox>
    </html:fieldset>
  </dialog>
</window>