164 строки
5.2 KiB
HTML
164 строки
5.2 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/. -->
|
|
|
|
<!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"
|
|
scrolling="false"
|
|
>
|
|
<head>
|
|
<title><!-- auth-title --></title>
|
|
<link rel="stylesheet" href="chrome://global/skin/global.css" />
|
|
<link rel="stylesheet" href="chrome://messenger/skin/messenger.css" />
|
|
<link rel="stylesheet" href="chrome://messenger/skin/input-fields.css" />
|
|
|
|
<link rel="localization" href="messenger/otr/auth.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-auth.js"></script>
|
|
</head>
|
|
<html:body
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
>
|
|
<dialog
|
|
buttons="accept,cancel"
|
|
buttondisabledaccept="true"
|
|
data-l10n-id="otr-auth"
|
|
data-l10n-attrs="buttonlabelaccept"
|
|
>
|
|
<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>
|
|
</html:body>
|
|
</html>
|