// bind template to controller class Frame: LSWSkyrixFrame {} Window: LSWWindowFrame { title = labels.gathering; onClose = cancel; } PersonTitle: LSWViewerTitle { title = labels.person_gathering_title; // hh: colors where not set here ?? } CompanyTitleSearch: LSWViewerTitle { title = labels.company_gathering_title_search; // hh: colors where not set here ?? } CompanyTitleNew: LSWViewerTitle { title = labels.company_gathering_title_new; // hh: colors where not set here ?? } GatheringForm: WOForm { name = "gathering"; enctype = "multipart/form-data"; } GatheringCompanyEditor: LSWObjectEditor { labels = labels; object = gatheringCompany; attributes = ( { key = "description"; label="company_name"; }, { key = "name1"; }, { key = "name2"; }, { key = "name3"; }, { key = "street"; }, { key = "city"; }, { key = "zip"; }, { key = "state"; }, { key = "country"; } ); } GatheringPersonEditor: LSWObjectEditor { labels = labels; object = gatheringPerson; attributes = ( { key = "name"; label="person_name"; }, { key = "nickname" }, { key = "firstname"; }, { key = "middlename"; }, { key = "degree"; }, { key = "salutation"; label = "salutation"; isLocalized = YES; valueKeys = ( "01_dear_ms", "02_dear_mrs", "03_dear_mr", "04_dear_prof", "05_dear_dr", "06_geehrt_herr", "07_geehrt_frau", "08_geehrt_herr_prof", "09_geehrt_herr_dr", "10_geehrt_frau_prof", "11_geehrt_frau_dr" ); }, { key = "email1"; }, { key = "url"; }, { key = "job_title" }, ); } SaveSubmit: WOSubmitButton { action = save; name = labels.saveButtonLabel; value = labels.saveButtonLabel; class = "button_narrow"; } CancelSubmit: WOHyperlink { action = cancel; string = labels.cancelButtonLabel; class = "button_narrow"; } AttributeCell: SkyAttributeCell {} ValueCell: SkyValueCell { alignTop = YES; } Font: SkyConfigFont {} EditFont: SkyConfigEditFont {} SearchLabel: WOString { value = labels.enterpriseSearch; } SearchCompanyField: WOTextField { value = searchCompanyField; } SearchCompanySubmit: WOSubmitButton { action = companySearch; value = labels.searchCompanyButtonLabel; class = "button_narrow"; } CompanyResultList: SkyListView { list = companySearchList; item = item; selectedItems = addedCompanies; columns = 3; useRadioButtons = NO; nilString = ""; attributes = ( { key = "description"; }, { key = "number"; prefix = " ("; suffix = ")"; }, ); } CommonTitle: LSWViewerTitle { title = labels.common_gathering_title; // hh: colors were not set here } CommentLabel: WOString { value = labels.comment; } CommentArea: WOText { value = gatheringPerson.comment; formatter = session.formatString; wrap = "physical"; rows = "5"; cols = "80"; } PhoneRep: WORepetition { list = phones; item = item; } InfoLabel: WOString { value = labels.info; } PhoneLabel: WOString { value = phoneLabel; } PhoneNumber: WOTextField { value = phoneNumber; } //item.number PhoneInfo: WOTextField { value = phoneInfo; } //item.info; CategoryRep: WORepetition { list = categories; item = item; //count = categoryCount; index = categoryIndex; } CategoryAttr: SkyAttribute { label = labels.personeditor_categoryLabel; } CategoryPopUp: WOPopUpButton { list = session.categoryNames; selection = category; nilString = "-"; } LastCategoryCond: WOConditional { condition = isLastCategory; } MoreThan1CategoryCond: WOConditional { condition = moreThan1Category; } HasMoreCategoriesCond: WOConditional { condition = hasMoreCategories; } DecreaseButton: WOImageButton { filename = "minus.gif"; action = decreaseCategories; alt = labels.minus; title = labels.minus; border = "0"; } IncreaseButton: WOImageButton { filename = "plus.gif"; action = increaseCategories; alt = labels.plus; title = labels.plus; border = "0"; }