<?xml version="1.0"?>
<?xml-stylesheet href="chrome://messenger/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>

<!DOCTYPE window SYSTEM "chrome://messenger/locale/am-main.dtd" >

<window xmlns:html="http://www.w3.org/TR/REC-html40"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     flex="100%"
     class="dialog"
     onload="parent.onPanelLoaded('am-main.xul');"
     align="vertical">

    <script src="chrome://global/content/strres.js"/>
    <script src="chrome://pref/content/prefutilities.js"/>
    <box class="header" align="horizontal">  
    <titledbutton class="left-header-text" value="&accountTitle.label;"/>
      <spring class="header-spring" flex="1"/>
      <titledbutton class="right-header-text" value=""/>
    </box>

	    <html:div class="secDesc">&accountSettingsDesc.label;</html:div>
	    <html:div>&accountNameDesc.label;</html:div>
        <html:table width="100%">
          <html:colgroup>
            <html:col width="1*"/>
            <html:col width="0*"/>
          </html:colgroup>
          <html:tr><html:td>
	      <html:label for="server.prettyName">&accountName.label;</html:label>
          </html:td><html:td>
	      <html:input type="text" size="30" name="server.prettyName" id="server.prettyName" flex="100%"/>
          </html:td></html:tr>
        </html:table>
    <spring class="spacer"/>
    <html:div class="secTitle">&identityTitle.label;</html:div>
    <spring class="spacer"/>
    <html:div class="secDesc">&identityDesc.label;</html:div>
    <html:table width="100%">
    <html:colgroup>
      <html:col width="1*"/>
      <html:col width="0*"/>
    </html:colgroup>
    <html:tr>
      <html:td>&name.label;</html:td>
      <html:td><html:input name="identity.fullName" type="text" size="30"/></html:td>
    </html:tr>
    <html:tr>
      <html:td>&email.label;</html:td>
      <html:td><html:input name="identity.email" type="text" maxwidth="200" size="30"/></html:td>
    </html:tr>
    <html:tr>
      <html:td flex="40%">&replyTo.label;</html:td>
      <html:td><html:input name="identity.replyTo" type="text" maxwidth="200" size="30"/></html:td>
    </html:tr>
    <html:tr>
      <html:td flex="40%">&organization.label;</html:td>
      <html:td><html:input name="identity.organization" type="text" size="30"/></html:td>
    </html:tr>
    </html:table>
<!-- no vcard in PR1
    <html:tr class="checkboxrow">
      <html:td colspan="2">
        <html:input name="identity.attachVCard" type="checkbox"/>
        &attachVCard.label;
      <button value="&editVCard.label;"/>
      </html:td>
      </html:tr>    
-->
      <box orient="horizontal">
        <html:input name="identity.attachSignature" id="identity.attachSignature" type="checkbox"/>
        <html:label for="identity.attachSignature">&signature.label;</html:label>
        <html:input type="text" id="identity.signature" datatype="nsIFileSpec" flex="100%" name="identity.signature"/>
        <button class="dialog push" name="browse" type="button" value="&choose.label;" onclick="prefNavSelectFile('identity.signature', 'choosefile', true)"/>
      </box>

<!--
      <html:select flex="100%">
         <html:option value="sig1">&sampleSig1.label;</html:option>
         <html:option value="sig2">&sampleSig2.label;</html:option>
         <html:option value="sig3">&sampleSig3.label;</html:option>
      </html:select>
      <button value="&edit.label;"/>

-->

    <html:div>
        <html:input name="identity.composeHtml" id="identity.composeHtml" type="checkbox"/>
        <html:label for="identity.composeHtml">&useHtml.label;</html:label>
    </html:div>

    <box orient="horizontal">
      <spring flex="100%"/>
      <button onclick="window.openDialog('am-identity-advanced.xul','advanced','modal,chrome', null);" value="&advancedButton.label;"/>
    </box>
</window>
