// bind template to class Form: WOForm { name = "searchform"; } Label: WOString { value = labels.LSWPersonAdvancedSearch; } Zip: WOString { value = labels.zip; } LastName: WOString { value = labels.lastName; } CategoryLabel: WOString { value = labels.categoryLabel; } FirstName: WOString { value = labels.firstName; } City: WOString { value = labels.city; } StateName: WOString { value = labels.state; } CountryName: WOString { value = labels.country; } StreetLabel: WOString { value = labels.street; escapeHTML = NO; } CommentLabel: WOString { value = labels.comment; } TelephoneLabel: WOString { value = labels.telephoneLabel; } EmailLabel: WOString { value = labels.email; } UrlLabel: WOString { value = labels.url; } MaxSearchCountLabel: WOString { value = labels.maxResults; } SaveSearchLabel: WOString { value = labels.saveSearch; } LoadSearchLabel: WOString { value = labels.loadSearch; } OperatorLabel: WOString { value = labels.operator; } RestrictOwnerLabel: WOString { value = "Created by me"; } RestrictContactLabel: WOString { value = "My Contacts"; } AndOperatorLabel: WOString { value = labels.operator_and; } OrOperatorLabel: WOString { value = labels.operator_or; } AndOperator: WORadioButton { name = "operator"; value = "AND"; selection = qualifierOperator; } OrOperator: WORadioButton { name = "operator"; value = "OR"; selection = qualifierOperator; } ZipField: WOTextField { name = "zip"; value = person.address#zip; size = 30; } LastNameField: WOTextField { name = "focusField"; // hackish value = person.name; size = 30; } /* CategoryPopUp: WOPopUpButton { name = "category"; list = session.categoryNames; item = item; string = item; selection = person.keywords; nilString = "-"; } */ CategoryPopUp: WOBrowser { name = "category"; list = session.categoryNames; item = item; displayString = item; selections = keywordsAsArray; multiple = YES; size = 5; style = "width: 100%;"; } ExtendedAttrs: WOPopUpButton { name = "extattrs"; list = currentValues; item = item; string = currentLabel; selection = companyValueAttribute; nilString = "-"; } TeleTypes: WOPopUpButton { name = "phonetype"; list = session.userDefaults.LSTeleType.Person; item = currentTeleType; string = currentTeleTypeLabel; selection = person.phone#type; nilString = labels.allPhones; } ExtendedValue: WOTextField { name = "extvalue"; value = companyValueValue; size = 30; } // TODO: use CSS for field width FirstNameField: WOTextField { name = "firstname"; value = person.firstname; size = 30; } CityField: WOTextField { name = "city"; value = person.address#city; size = 30; } StateField: WOTextField { name = "state"; value = person.address#state; size = 30; } CountryField: WOTextField { name = "country"; value = person.address#country; size = 30; } Street: WOTextField { name = "street"; value = person.address#street; size = 30; } Telephone: WOTextField { name = "phone"; value = person.phone#number; size = 30; } Comment: WOTextField { name = "comment"; value = person.comment; size = 30; } Email: WOTextField { name = "email"; value = person.email1; size = 30; } Url: WOTextField { name = "url"; value = person.url; size = 30; } SearchSubmit: WOSubmitButton { action = search; name = labels.searchButtonLabel; value = labels.searchButtonLabel; class = "button_narrow"; } FormLetterSubmit: WOSubmitButton { action = formletter; name = labels.formletterButtonLabel; value = labels.formletterButtonLabel; class = "button_wide"; } ClearSubmit: WOSubmitButton { action = clearForm; name = labels.clearButtonLabel; value = labels.clearButtonLabel; class = "button_wide"; } HasSearchedCondElse: WOConditional { condition = hasSearched; negate = YES; } AttributeCell: SkyAttributeCell { keyColor = "subAttributeCell"; } ValueCell: SkyValueCell { valign="top"; valueColor = "subValueCell"; } MainButtonRow: WOGenericContainer { elementName = "tr"; bgcolor = config.colors_mainButtonRow; } Font: SkyConfigFont {} EditFont: SkyConfigEditFont {} MaxSearchCountPopUp: WOPopUpButton { name = "maxsearchcount"; list = ( "100", "200", "500", "600", "1000" ); item = item; string = item; selection = maxSearchCount; } HasFormletterCond: WOConditional { condition = hasFormletter; } Formletter: LSWFormLetterComponent { data = formletterData; } // checkboxes RestrictOwner: WOCheckBox { id = "restrictowner"; name = "restrictowner"; checked = limitByOwner; } RestrictContact: WOCheckBox { id = "restrictcontact"; name = "restrictcontact"; checked = limitByContact; } // Saved Searches SaveSearchAttr: SkySubAttribute { label = labels.saveSearch; width = "30%"; } SaveTitle: WOTextField { value = saveTitle; size = 30; } CreateTabAttr: SkySubAttribute { label = labels.createTab; width = "30%"; } CreateTabCheckBox: WOCheckBox { checked = showTab; } SaveSearchSubmit: WOSubmitButton { action = saveSearch; name = labels.saveButtonLabel; value = labels.saveButtonLabel; class = "button_narrow"; } HasSearchesToLoadCondElse: WOConditional { condition = hasSavedSearches; negate = YES; } HasSearchesToLoadCond: WOConditional { condition = hasSavedSearches; } LoadSearchForm: WOForm { name = "savedSearch"; action = loadSavedSearch; } LoadSearchAttr: SkySubAttribute { label = labels.loadSearch; width = "30%"; } LoadSearchPopUp: WOPopUpButton { list = savedSearches; nilString = "--"; selection = searchTitle; onChange = "document.savedSearch.submit(); return true"; } HasNoJavaScriptCond: WOConditional { condition = session.isJavaScriptEnabled; negate = YES; } LoadSearchSubmit: WOSubmitButton { action = loadSavedSearch; name = "savedSearchLoadButton"; value = labels.savedSearchesLoad; class = "button_wide"; }