<?xml version="1.0"?> 
<!-- 
   - The contents of this file are subject to the Mozilla Public
   - License Version 1.1 (the "License"); you may not use this file
   - except in compliance with the License. You may obtain a copy of
   - the License at http://www.mozilla.org/MPL/
   - 
   - Software distributed under the License is distributed on an "AS
   - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
   - implied. See the License for the specific language governing
   - rights and limitations under the License.
   - 
   - The Original Code is mozilla.org code.
   - 
   - The Initial Developer of the Original Code is Netscape
   - Communications Corp.  Portions created by Netscape are
   - Copyright (C) 2001 Netscape Communications Corp.  All
   - Rights Reserved.
   - 
   - Contributor(s):
   -   Bob Lord <lord@netscape.com>
   -   Terry Hayes <thayes@netscape.com>
  -->

<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://communicator/skin/dialogOverlay.css" type="text/css"?>

<!DOCTYPE window [
  <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd">
  <!ENTITY % prefSec SYSTEM "chrome://pippki/locale/pref-security.dtd">
  <!ENTITY % prefSslDTD SYSTEM "chrome://pippki/locale/pref-ssl.dtd">
  %brandDTD;
  %prefSec;
  %prefSslDTD;
]>

<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        class="color-dialog"
        orient="vertical" title="certs.title;"
        onload="parent.initPanel('chrome://pippki/content/pref-certs.xul');" >

  <!-- List elements to manage for prefs -->
  <script type="application/x-javascript" src="pref-security.js"/>
  <script type="application/x-javascript">
  <![CDATA[
    var _elementIDs = [ "certSelection" ];
  ]]>
  </script>
            
  <!-- Fancy panel header -->
  <hbox class="box-smallheader" title="&certs.label;"/>

  <groupbox orient="vertical" autostretch="never">
    <label value="&SSLClientAuthMethod;"/>
    <html> &certselect.description; </html>
    <!-- Prefs -->
    <radiogroup id="certSelection" pref="true" preftype="string" 
	prefstring="security.default_personal_cert" prefattribute="value">
    <radio group="certSelection" label="&certselect.auto;" value="Select Automatically"/>
    <radio group="certSelection" label="&certselect.ask;" value="Ask Every Time"/>
    </radiogroup>
  </groupbox>

  <!-- Certificate manager -->
  <groupbox orient="vertical">
    <label value="&managecerts.label;"/>
    <html>
      &managecerts.text;
    </html>
    <hbox halign="left" autostretch="never">
      <button class="dialog" label="&managecerts.button;" disabled="false"
        oncommand="openCertManager();" />
    </hbox>
  </groupbox>

  <!-- Device manager -->
  <groupbox orient="vertical">
    <label value="&managedevices.label;"/>
    <html>
      &managedevices.text;
    </html>
    <hbox halign="left" autostretch="never">
      <button class="dialog" label="&managedevices.button;" disabled="false"
        oncommand="openDeviceManager();" />
    </hbox>
  </groupbox>

</window>
