releases-comm-central/chat/content/otr-auth.xhtml

106 строки
4.3 KiB
HTML

<?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"
id="otrAuthDialog"
data-l10n-id="otr-auth"
data-l10n-attrs="buttonlabelaccept"
windowtype="OTR:Auth"
onload="otrAuth.onload()">
<dialog 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-question-and-answer-label" value="questionAndAnswer"/>
<menuitem data-l10n-id="auth-shared-secret-label" value="sharedSecret"/>
<menuitem data-l10n-id="auth-manual-verification-label" value="manualVerification"/>
</menupopup>
</menulist>
</vbox>
</html:fieldset>
<html:fieldset id="questionAndAnswer" hidden="hidden">
<html:legend data-l10n-id="auth-question-and-answer"></html:legend>
<vbox>
<description style="width: 300px; white-space: pre-wrap;" data-l10n-id="auth-qa-instruction"></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-shared-secret"></html:legend>
<vbox>
<description style="width: 300px; white-space: pre-wrap;" data-l10n-id="auth-secret-instruction"></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-manual-verification"></html:legend>
<vbox>
<description style="width: 300px; white-space: pre-wrap;" data-l10n-id="auth-manual-instruction"></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-question-received"/>
<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>