PageRenderTime 9ms CodeModel.GetById 6ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 1ms

/security/manager/pki/resources/content/exceptionDialog.xul

http://github.com/zpao/v8monkey
Unknown | 121 lines | 114 code | 7 blank | 0 comment | 0 complexity | 3c316cf7fbcc688c1788662465d149af MD5 | raw file
  1<?xml version="1.0"?>
  2<!-- ***** BEGIN LICENSE BLOCK *****
  3   - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4   -
  5   - The contents of this file are subject to the Mozilla Public License Version
  6   - 1.1 (the "License"); you may not use this file except in compliance with
  7   - the License. You may obtain a copy of the License at
  8   - http://www.mozilla.org/MPL/
  9   -
 10   - Software distributed under the License is distributed on an "AS IS" basis,
 11   - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 12   - for the specific language governing rights and limitations under the
 13   - License.
 14   -
 15   - The Original Code is mozilla.org code.
 16   -
 17   - The Initial Developer of the Original Code is the Mozilla Foundation.
 18   - Portions created by the Initial Developer are Copyright (C) 2007
 19   - the Initial Developer. All Rights Reserved.
 20   -
 21   - Contributor(s):
 22   -   Kai Engert <kengert@redhat.com>
 23   -   Johnathan Nightingale <johnath@mozilla.com>
 24   -   Steffen Wilberg <steffen.wilberg@web.de>
 25   -
 26   - Alternatively, the contents of this file may be used under the terms of
 27   - either the GNU General Public License Version 2 or later (the "GPL"), or
 28   - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 29   - in which case the provisions of the GPL or the LGPL are applicable instead
 30   - of those above. If you wish to allow use of your version of this file only
 31   - under the terms of either the GPL or the LGPL, and not to allow others to
 32   - use your version of this file under the terms of the MPL, indicate your
 33   - decision by deleting the provisions above and replace them with the notice
 34   - and other provisions required by the GPL or the LGPL. If you do not delete
 35   - the provisions above, a recipient may use your version of this file under
 36   - the terms of any one of the MPL, the GPL or the LGPL.
 37   -
 38   - ***** END LICENSE BLOCK ***** -->
 39
 40<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
 41
 42<!DOCTYPE dialog SYSTEM "chrome://pippki/locale/certManager.dtd">
 43
 44<dialog id="exceptiondialog"
 45        windowtype="mozilla:exceptiondialog"
 46        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 
 47        title="&exceptionMgr.title;"
 48        buttons="cancel,extra1,extra2"
 49        buttonlabelextra1="&exceptionMgr.exceptionButton.label;"
 50        buttonaccesskeyextra1="&exceptionMgr.exceptionButton.accesskey;"
 51        style="width: 500px; height: 480px;"
 52        onload="initExceptionDialog();"
 53        ondialogextra1="addException();"
 54        ondialogextra2="checkCert();"
 55        persist="screenX screenY width height"
 56        defaultButton="extra2">
 57  
 58  <script type="application/javascript" src="chrome://global/content/strres.js"/>
 59  <script type="application/javascript" src="chrome://pippki/content/pippki.js"/>
 60  <script type="application/javascript" src="chrome://pippki/content/exceptionDialog.js"/>
 61  
 62  <hbox>
 63    <vbox>
 64#ifdef MOZ_WIDGET_GTK2
 65      <image src="moz-icon://stock/gtk-dialog-warning?size=dialog"/>
 66#else
 67      <image src="chrome://global/skin/icons/warning-large.png"/>
 68#endif
 69      <spacer flex="1"/>
 70    </vbox>
 71    <vbox flex="1">
 72      <!-- Note that because of the styling, there must be no whitespace within
 73      the description tags -->
 74      <description id="warningText"
 75                   style="white-space: pre-wrap"/>
 76      <description id="warningSupplemental"
 77                   style="font-weight: bold; white-space: pre-wrap;"
 78                   >&exceptionMgr.supplementalWarning;</description>
 79    </vbox>
 80  </hbox>
 81
 82  <groupbox id="locationGroupBox">
 83    <caption label="&exceptionMgr.certlocation.caption2;"/>
 84    <hbox align="center">
 85      <label control="locationTextBox" value="&exceptionMgr.certlocation.url;"/>
 86      <textbox id="locationTextBox" flex="1" oninput="handleTextChange();"
 87               value="https://" class="uri-element"/>
 88      <button id="checkCertButton" disabled="true" dlgtype="extra2"
 89              accesskey="&exceptionMgr.certlocation.accesskey;"
 90              label="&exceptionMgr.certlocation.download;"/>
 91    </hbox>
 92  </groupbox>
 93
 94  <groupbox id="certStatusGroupBox" flex="1">
 95    <caption label="&exceptionMgr.certstatus.caption;"/>
 96    <vbox  style="overflow: auto;" flex="1">
 97      <hbox>
 98        <description id="headerDescription" style="white-space: pre-wrap;"
 99                     flex="1"/>
100        <vbox>
101          <button id="viewCertButton" label="&exceptionMgr.certstatus.viewCert;"
102                  accesskey="&exceptionMgr.certstatus.accesskey;"
103                  disabled="true" oncommand="viewCertButtonClick();"/>
104        </vbox>
105      </hbox>      
106      <description id="statusDescription"
107                   style="font-weight: bold; padding-bottom: 1em;"/>
108      <description id="statusLongDescription" style="white-space: pre-wrap;"/>
109      <description id="status2Description"
110                   style="font-weight: bold; padding-bottom: 1em;"/>
111      <description id="status2LongDescription" style="white-space: pre-wrap;"/>
112      <description id="status3Description" 
113                   style="font-weight: bold; padding-bottom: 1em;"/>
114      <description id="status3LongDescription" style="white-space: pre-wrap;"/>
115      <spacer flex="1"/>
116    </vbox>
117    <checkbox id="permanent" disabled="true"
118              label="&exceptionMgr.permanent.label;"
119              accesskey="&exceptionMgr.permanent.accesskey;"/>
120  </groupbox>
121</dialog>