<?xml version="1.0"?>

<!--

Copyright 2005-2010 Xmarks Inc.

foxmarks-ownserverdlg.xul: implements the dialog that appears when
a user sets up their own server.

-->

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

<!DOCTYPE dialog SYSTEM "chrome://foxmarks/locale/foxmarks.dtd">

<dialog id="foxmarks-ownserver" title="&ownserver.title;"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  buttons="accept,cancel"
  defaultButton="accept"
  ondialogcancel="return ownServerCancel();"
  onload="ownServerLoad();"
  ondialogaccept="return ownServerOK();"
  moveToAlertPosition="true"
  class="xmarks">

  <script src="foxmarks-settings.js" />
  <script src="foxmarks-uitools.js" />
  <script src="foxmarks-ownserverdlg.js" />

  <hbox>
    <vbox>
      <label value="&ownserver.title;"
        style="margin-bottom: .5em; 
        font-weight: bold; 
        text-transform: uppercase;
        padding-left: .5em;"
        />
      <vbox style="width: 40em; padding: 1em 1em 1.5em 1em;">
        <description> 
          &ownserver.desc;
          &ownserver.desc2;
        </description>
        <groupbox>
          <grid>
            <columns>
              <column /> <column flex="1" />
            </columns>
            <rows>
              <row align="center">
                <label id="useown-url-label" value="&label.url;" />
                <textbox id="url" flex="1" />
              </row>
              <row align="center">
                <label id="useown-passwordurl-label" 
                  value="&label.passwordurl;"/>
                <textbox id="passwordurl" flex="1" />
              </row>
              <row align="center">
                <label value="&dialog.label.username;" />
                <textbox id="username" flex="1" />
              </row>
              <row align="center">
                <label value="&dialog.label.password;" />
                <textbox id="password" type="password" flex="1" />
              </row>
              <row align="center">
                  <label value="" />
                  <checkbox id="remember" 
                      label="&dialog.label.rememberPassword;" />
              </row>
            </rows>
          </grid>
        </groupbox>
      </vbox>
    </vbox>
  </hbox>
</dialog>
