Bug 350992 Share the address book card overlay between all SM and TB dialogs. Based on patch originally from Masayuki, updated by me and completed by paul@wavebreaks.com (Paul Tomlin). r=neil (seamonkey part),r/sr=mscott

This commit is contained in:
bugzilla%standard8.demon.co.uk 2006-10-24 16:23:41 +00:00
Родитель 6282ea0303
Коммит abf2b0a872
6 изменённых файлов: 15 добавлений и 652 удалений

Просмотреть файл

@ -41,6 +41,8 @@
<!DOCTYPE dialog SYSTEM "chrome://messenger/locale/addressbook/abNewCardDialog.dtd">
<?xul-overlay href="chrome://messenger/content/addressbook/abCardOverlay.xul"?>
<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
id="abcardDialog"
onload="OnLoadEditCard();"
@ -54,317 +56,6 @@
<script type="application/x-javascript" src="chrome://messenger/content/addressbook/abCommon.js"/>
<script type="application/x-javascript" src="chrome://messenger/content/addressbook/abCardOverlay.js"/>
<vbox id="editcard">
<tabbox>
<tabs id="abTabs">
<tab label="&Contact.tab;"/>
<tab label="&Address.tab;"/>
<tab label="&Other.tab;"/>
</tabs>
<tabpanels id="abTabPanels" flex="1">
<!-- Name Tab -->
<vbox index="name" flex="1">
<groupbox flex="1">
<caption class="tab-caption" label="&Name.box;"/>
<vbox>
<!-- LOCALIZATION NOTE:
NameField1, NameField2, PhoneticField1, PhoneticField2
those fields are either LN or FN depends on the target country.
They are configurable in the .dtd file.
-->
<hbox>
<spacer flex="1"/>
<label control="&NameField1.id;" value="&NameField1.label;" accesskey="&NameField1.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="&NameField1.id;" flex="1" oninput="GenerateDisplayName()"/>
<!-- LOCALIZATION NOTE:
Fields for phonetic are disabled as default and can be enabled by
editing "mail.addr_book.show_phonetic_fields"
-->
<spacer id="PhoneticSpacer1" flex="1" hidden="true"/>
<label id="PhoneticLabel1" control="&PhoneticField1.id;" value="&PhoneticField1.label;" class="CardEditLabel" hidden="true"/>
<textbox id="&PhoneticField1.id;" flex="1" hidden="true"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="&NameField2.id;" value="&NameField2.label;" accesskey="&NameField2.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="&NameField2.id;" flex="1" oninput="GenerateDisplayName()"/>
<!-- LOCALIZATION NOTE:
Fields for phonetic are disabled as default and can be enabled by
editing "mail.addr_book.show_phonetic_fields"
-->
<spacer id="PhoneticSpacer2" flex="1" hidden="true"/>
<label id="PhoneticLabel2" control="&PhoneticField2.id;" value="&PhoneticField2.label;" class="CardEditLabel" hidden="true"/>
<textbox id="&PhoneticField2.id;" flex="1" hidden="true"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="DisplayName" value="&DisplayName.label;" accesskey="&DisplayName.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="DisplayName" flex="1" oninput="DisplayNameChanged()"/>
</hbox>
</hbox>
<hbox id="nickNameContainer">
<spacer flex="1"/>
<label control="NickName" value="&NickName.label;" accesskey="&NickName.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="NickName" flex="1"/>
</hbox>
</hbox>
</vbox>
</groupbox>
<groupbox flex="1">
<caption class="tab-caption" label="&Internet.box;"/>
<vbox>
<hbox>
<spacer flex="1"/>
<label control="PrimaryEmail" value="&PrimaryEmail.label;" accesskey="&PrimaryEmail.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="PrimaryEmail" flex="1" class="uri-element"/>
</hbox>
</hbox>
<hbox id="secondaryEmailContainer">
<spacer flex="1"/>
<label control="SecondEmail" value="&SecondEmail.label;" accesskey="&SecondEmail.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="SecondEmail" flex="1" class="uri-element"/>
</hbox>
</hbox>
<hbox>
<vbox valign="middle">
<label control="PreferMailFormatPopup" value="&PreferMailFormat.label;" accesskey="&PreferMailFormat.accesskey;"/>
</vbox>
<menulist id="PreferMailFormatPopup">
<menupopup>
<menuitem value="0" label="&Unknown.label;"/>
<menuitem value="1" label="&PlainText.label;"/>
<menuitem value="2" label="&HTML.label;"/>
</menupopup>
</menulist>
</hbox>
<hbox id="screenNameContainer">
<spacer flex="1"/>
<label control="ScreenName" value="&ScreenName.label;" accesskey="&ScreenName.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="ScreenName" flex="1"/>
</hbox>
</hbox>
</vbox>
</groupbox>
<groupbox flex="1">
<caption class="tab-caption" label="&Phones.box;"/>
<vbox>
<hbox>
<spacer flex="1"/>
<label control="WorkPhone" value="&WorkPhone.label;" accesskey="&WorkPhone.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="WorkPhone" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="HomePhone" value="&HomePhone.label;" accesskey="&HomePhone.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="HomePhone" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="FaxNumber" value="&FaxNumber.label;" accesskey="&FaxNumber.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="FaxNumber" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="PagerNumber" value="&PagerNumber.label;" accesskey="&PagerNumber.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="PagerNumber" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="CellularNumber" value="&CellularNumber.label;" accesskey="&CellularNumber.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="CellularNumber" flex="1"/>
</hbox>
</hbox>
</vbox>
</groupbox>
</vbox>
<!-- Address Tab -->
<vbox index="address" flex="1">
<groupbox id="homeAddressGroup" flex="1">
<caption class="tab-caption" label="&Home.box;"/>
<vbox>
<hbox>
<spacer flex="1"/>
<label control="HomeAddress" value="&HomeAddress.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="HomeAddress" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="HomeAddress2" value="&HomeAddress2.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="HomeAddress2" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="HomeCity" value="&HomeCity.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="HomeCity" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="HomeState" value="&HomeState.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="HomeState" flex="1"/>
<spacer class="stateZipSpacer"/>
<label control="HomeZipCode" value="&HomeZipCode.label;" class="CardEditLabel"/>
<textbox id="HomeZipCode" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="HomeCountry" value="&HomeCountry.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="HomeCountry" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="WebPage2" value="&HomeWebPage.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="WebPage2" flex="1" class="uri-element"/>
</hbox>
</hbox>
</vbox>
</groupbox>
<groupbox flex="1">
<caption class="tab-caption" label="&Work.box;"/>
<vbox>
<hbox>
<spacer flex="1"/>
<label control="JobTitle" value="&JobTitle.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="JobTitle" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="Department" value="&Department.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="Department" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="Company" value="&Company.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="Company" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="WorkAddress" value="&WorkAddress.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="WorkAddress" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="WorkAddress2" value="&WorkAddress2.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="WorkAddress2" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="WorkCity" value="&WorkCity.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="WorkCity" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="WorkState" value="&WorkState.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="WorkState" flex="1"/>
<spacer class="stateZipSpacer"/>
<label control="WorkZipCode" value="&WorkZipCode.label;" class="CardEditLabel"/>
<textbox id="WorkZipCode" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="WorkCountry" value="&WorkCountry.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="WorkCountry" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="WebPage1" value="&WorkWebPage.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="WebPage1" flex="1" class="uri-element"/>
</hbox>
</hbox>
</vbox>
</groupbox>
</vbox>
<!-- Other Tab -->
<vbox index="other" flex="1">
<vbox id="customFields" class="alignBoxWithFieldset">
<hbox>
<label control="Custom1" value="&Custom1.label;" accesskey="&Custom1.accesskey;" class="CardEditLabel"/>
<textbox id="Custom1" flex="1"/>
</hbox>
<hbox>
<label control="Custom2" value="&Custom2.label;" accesskey="&Custom2.accesskey;" class="CardEditLabel"/>
<textbox id="Custom2" flex="1"/>
</hbox>
<hbox>
<label control="Custom3" value="&Custom3.label;" accesskey="&Custom3.accesskey;" class="CardEditLabel"/>
<textbox id="Custom3" flex="1"/>
</hbox>
<hbox>
<label control="Custom4" value="&Custom4.label;" accesskey="&Custom4.accesskey;" class="CardEditLabel"/>
<textbox id="Custom4" flex="1"/>
</hbox>
</vbox>
<groupbox flex="1">
<caption class="tab-caption" label="&Notes.box;"/>
<vbox>
<textbox id="Notes" multiline="true" rows="20" wrap="virtual"/>
</vbox>
</groupbox>
</vbox>
</tabpanels>
</tabbox>
</vbox>
<vbox id="editcard"/>
</dialog>

Просмотреть файл

@ -39,6 +39,8 @@
<?xml-stylesheet href="chrome://messenger/skin/addressbook/cardDialog.css" type="text/css"?>
<?xul-overlay href="chrome://messenger/content/addressbook/abCardOverlay.xul"?>
<!DOCTYPE dialog SYSTEM "chrome://messenger/locale/addressbook/abNewCardDialog.dtd">
<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
@ -81,316 +83,5 @@
<spacer style="height:1em"/>
<vbox id="editcard">
<tabbox>
<tabs id="abTabs">
<tab label="&Contact.tab;"/>
<tab label="&Address.tab;"/>
<tab label="&Other.tab;"/>
</tabs>
<tabpanels id="abTabPanels" flex="1">
<!-- Name Tab -->
<vbox index="name" flex="1">
<groupbox flex="1">
<caption class="tab-caption" label="&Name.box;"/>
<vbox>
<!-- LOCALIZATION NOTE:
NameField1, NameField2, PhoneticField1, PhoneticField2
those fields are either LN or FN depends on the target country.
They are configurable in the .dtd file.
-->
<hbox>
<spacer flex="1"/>
<label control="&NameField1.id;" value="&NameField1.label;" accesskey="&NameField1.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="&NameField1.id;" flex="1" oninput="GenerateDisplayName()"/>
<!-- LOCALIZATION NOTE:
Fields for phonetic are disabled as default and can be enabled by
editing "mail.addr_book.show_phonetic_fields"
-->
<spacer id="PhoneticSpacer1" flex="1" hidden="true"/>
<label id="PhoneticLabel1" control="&PhoneticField1.id;" value="&PhoneticField1.label;" class="CardEditLabel" hidden="true"/>
<textbox id="&PhoneticField1.id;" flex="1" hidden="true"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="&NameField2.id;" value="&NameField2.label;" accesskey="&NameField2.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="&NameField2.id;" flex="1" oninput="GenerateDisplayName()"/>
<!-- LOCALIZATION NOTE:
Fields for phonetic are disabled as default and can be enabled by
editing "mail.addr_book.show_phonetic_fields"
-->
<spacer id="PhoneticSpacer2" flex="1" hidden="true"/>
<label id="PhoneticLabel2" control="&PhoneticField2.id;" value="&PhoneticField2.label;" class="CardEditLabel" hidden="true"/>
<textbox id="&PhoneticField2.id;" flex="1" hidden="true"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="DisplayName" value="&DisplayName.label;" accesskey="&DisplayName.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="DisplayName" flex="1" oninput="DisplayNameChanged()"/>
</hbox>
</hbox>
<hbox id="nickNameContainer">
<spacer flex="1"/>
<label control="NickName" value="&NickName.label;" accesskey="&NickName.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="NickName" flex="1"/>
</hbox>
</hbox>
</vbox>
</groupbox>
<groupbox flex="1">
<caption class="tab-caption" label="&Internet.box;"/>
<vbox>
<hbox>
<spacer flex="1"/>
<label control="PrimaryEmail" value="&PrimaryEmail.label;" accesskey="&PrimaryEmail.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="PrimaryEmail" flex="1" class="uri-element"/>
</hbox>
</hbox>
<hbox id="secondaryEmailContainer">
<spacer flex="1"/>
<label control="SecondEmail" value="&SecondEmail.label;" accesskey="&SecondEmail.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="SecondEmail" flex="1" class="uri-element"/>
</hbox>
</hbox>
<hbox>
<vbox valign="middle">
<label control="PreferMailFormatPopup" value="&PreferMailFormat.label;" accesskey="&PreferMailFormat.accesskey;"/>
</vbox>
<menulist id="PreferMailFormatPopup">
<menupopup>
<menuitem value="0" label="&Unknown.label;"/>
<menuitem value="1" label="&PlainText.label;"/>
<menuitem value="2" label="&HTML.label;"/>
</menupopup>
</menulist>
</hbox>
<hbox id="screenNameContainer">
<spacer flex="1"/>
<label control="ScreenName" value="&ScreenName.label;" accesskey="&ScreenName.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="ScreenName" flex="1"/>
</hbox>
</hbox>
</vbox>
</groupbox>
<groupbox flex="1">
<caption class="tab-caption" label="&Phones.box;"/>
<vbox>
<hbox>
<spacer flex="1"/>
<label control="WorkPhone" value="&WorkPhone.label;" accesskey="&WorkPhone.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="WorkPhone" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="HomePhone" value="&HomePhone.label;" accesskey="&HomePhone.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="HomePhone" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="FaxNumber" value="&FaxNumber.label;" accesskey="&FaxNumber.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="FaxNumber" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="PagerNumber" value="&PagerNumber.label;" accesskey="&PagerNumber.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="PagerNumber" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="CellularNumber" value="&CellularNumber.label;" accesskey="&CellularNumber.accesskey;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="CellularNumber" flex="1"/>
</hbox>
</hbox>
</vbox>
</groupbox>
</vbox>
<!-- Address Tab -->
<vbox index="address" flex="1">
<groupbox id="homeAddressGroup" flex="1">
<caption class="tab-caption" label="&Home.box;"/>
<vbox>
<hbox>
<spacer flex="1"/>
<label control="HomeAddress" value="&HomeAddress.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="HomeAddress" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="HomeAddress2" value="&HomeAddress2.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="HomeAddress2" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="HomeCity" value="&HomeCity.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="HomeCity" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="HomeState" value="&HomeState.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="HomeState" flex="1"/>
<spacer class="stateZipSpacer"/>
<label control="HomeZipCode" value="&HomeZipCode.label;" class="CardEditLabel"/>
<textbox id="HomeZipCode" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="HomeCountry" value="&HomeCountry.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="HomeCountry" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="WebPage2" value="&HomeWebPage.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="WebPage2" flex="1" class="uri-element"/>
</hbox>
</hbox>
</vbox>
</groupbox>
<groupbox flex="1">
<caption class="tab-caption" label="&Work.box;"/>
<vbox>
<hbox>
<spacer flex="1"/>
<label control="JobTitle" value="&JobTitle.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="JobTitle" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="Department" value="&Department.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="Department" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="Company" value="&Company.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="Company" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="WorkAddress" value="&WorkAddress.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="WorkAddress" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="WorkAddress2" value="&WorkAddress2.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="WorkAddress2" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="WorkCity" value="&WorkCity.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="WorkCity" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="WorkState" value="&WorkState.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="WorkState" flex="1"/>
<spacer class="stateZipSpacer"/>
<label control="WorkZipCode" value="&WorkZipCode.label;" class="CardEditLabel"/>
<textbox id="WorkZipCode" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="WorkCountry" value="&WorkCountry.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="WorkCountry" flex="1"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="WebPage1" value="&WorkWebPage.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="WebPage1" flex="1" class="uri-element"/>
</hbox>
</hbox>
</vbox>
</groupbox>
</vbox>
<!-- Other Tab -->
<vbox index="other" flex="1">
<vbox id="customFields" class="alignBoxWithFieldset">
<hbox>
<label control="Custom1" value="&Custom1.label;" accesskey="&Custom1.accesskey;" class="CardEditLabel"/>
<textbox id="Custom1" flex="1"/>
</hbox>
<hbox>
<label control="Custom2" value="&Custom2.label;" accesskey="&Custom2.accesskey;" class="CardEditLabel"/>
<textbox id="Custom2" flex="1"/>
</hbox>
<hbox>
<label control="Custom3" value="&Custom3.label;" accesskey="&Custom3.accesskey;" class="CardEditLabel"/>
<textbox id="Custom3" flex="1"/>
</hbox>
<hbox>
<label control="Custom4" value="&Custom4.label;" accesskey="&Custom4.accesskey;" class="CardEditLabel"/>
<textbox id="Custom4" flex="1"/>
</hbox>
</vbox>
<groupbox flex="1">
<caption class="tab-caption" label="&Notes.box;"/>
<vbox>
<textbox id="Notes" multiline="true" rows="20" wrap="virtual"/>
</vbox>
</groupbox>
</vbox>
</tabpanels>
</tabbox>
</vbox>
<vbox id="editcard"/>
</dialog>

Просмотреть файл

@ -64,8 +64,4 @@
width: 3em;
}
/* XXX: would be nice to find a common place for this XXX ::::captions in tabs ::::: */
.tab-caption {
}

Просмотреть файл

@ -102,9 +102,4 @@
list-style-image: url("chrome://messenger/skin/addressbook/icons/abcard.png");
}
/* XXX: would be nice to find a common place for this XXX ::::captions in tabs ::::: */
.tab-caption {
-moz-appearance: tabpanels;
}

Просмотреть файл

@ -52,11 +52,4 @@
-moz-margin-start: 20px;
}
/* XXX: would be nice to find a common place for this XXX */
/* ::::captions in tabs ::::: */
.tab-caption {
-moz-appearance: tabpanels;
}

Просмотреть файл

@ -52,7 +52,7 @@
<vbox id="editcard">
<tabbox style="margin:5px">
<tabbox>
<tabs id="abTabs">
<tab label="&Contact.tab;"/>
<tab label="&Address.tab;"/>
@ -65,8 +65,7 @@
<vbox index="name" flex="1">
<groupbox flex="1">
<caption label="&Name.box;"/>
<vbox style="width:100%">
<vbox>
<!-- LOCALIZATION NOTE:
NameField1, NameField2, PhoneticField1, PhoneticField2
@ -125,7 +124,7 @@
<groupbox flex="1">
<caption label="&Internet.box;"/>
<vbox style="width:100%">
<vbox>
<hbox>
<spacer flex="1"/>
<label control="PrimaryEmail" value="&PrimaryEmail.label;" accesskey="&PrimaryEmail.accesskey;" class="CardEditLabel"/>
@ -165,7 +164,7 @@
<groupbox flex="1">
<caption label="&Phones.box;"/>
<vbox style="width:100%">
<vbox>
<hbox>
<spacer flex="1"/>
<label control="WorkPhone" value="&WorkPhone.label;" accesskey="&WorkPhone.accesskey;" class="CardEditLabel"/>
@ -209,7 +208,7 @@
<vbox index="address" flex="1">
<groupbox id="homeAddressGroup" flex="1">
<caption label="&Home.box;"/>
<vbox style="width:100%">
<vbox>
<hbox>
<spacer flex="1"/>
<label control="HomeAddress" value="&HomeAddress.label;" class="CardEditLabel"/>
@ -258,9 +257,9 @@
</vbox>
</groupbox>
<groupbox style="width:100%">
<groupbox>
<caption label="&Work.box;"/>
<vbox style="width:100%">
<vbox>
<hbox>
<spacer flex="1"/>
<label control="JobTitle" value="&JobTitle.label;" class="CardEditLabel"/>
@ -352,11 +351,9 @@
</hbox>
</vbox>
<groupbox style="width:100%">
<groupbox flex="1">
<caption label="&Notes.box;"/>
<vbox style="width:100%">
<textbox id="Notes" multiline="true" rows="15" wrap="virtual"/>
</vbox>
<textbox id="Notes" multiline="true" wrap="virtual" flex="1"/>
</groupbox>
</vbox>