<?xml version="1.0"?>
<!DOCTYPE overlay [
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
%brandDTD;
<!ENTITY % addAccountDialogDTD SYSTEM "chrome://messenger/locale/cloudfile/addAccountDialog.dtd" >
%addAccountDialogDTD;
]>

<!-- 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/"?>
<?xml-stylesheet href="chrome://messenger/skin/preferences/preferences.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/cloudfile/addAccountDialog.css" type="text/css"?>

<dialog id="addCloudFileAccount"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        buttons="accept,cancel"
        buttonlabelaccept="&addAccountDialog.acceptButton.label;"
        buttondisabledaccept="true"
        onload="return addAccountDialog.onInit();"
        ondialogaccept="return addAccountDialog.onOK();"
        ondialogcancel="return addAccountDialog.onUnInit();"
        title="&addAccountDialog.title;"
        style="&addAccountDialog.style;"
        persist="screenX screenY">

  <script type="application/javascript;version=1.8"
          src="chrome://messenger/content/cloudfile/addAccountDialog.js"/>

#ifdef XP_MACOSX
  <description id="createAccountTitle">&addAccountDialog.title;</description>
#endif
  <description id="createAccountText">&addAccountDialog.createAccountText2;</description>
  <description id="noAccountText" hidden="true">&addAccountDialog.noAccountText;</description>

  <menulist id="accountType" class="indent">
    <menupopup>
      <menuitem label="&addAccountDialog.menuTitle;" value=""/>
    </menupopup>
  </menulist>

  <iframe id="accountSettings" class="indent" flex="1" src="chrome://messenger/content/cloudfile/emptySettings.xhtml"/>
  <deck id="messages" class="indent" selectedIndex="-1">
    <hbox id="authorizing">
      <image src="chrome://global/skin/icons/loading.png"/>
      <label>&addAccountDialog.authorizing;</label>
    </hbox>
    <hbox id="error">
      <image src="chrome://global/skin/icons/warning-16.png"/>
      <label>&addAccountDialog.error;</label>
    </hbox>
  </deck>
</dialog>
