// bind template to controller WindowTitle: LSWViewerTitle { title = labels.title_ListBulkOps; } CatsTitle: WOString { value = ownLabels.bulk_categories_title; }; PermsTitle: WOString { value = ownLabels.bulk_permchange_title; }; ActionLabel: WOString { value = ownLabels.bulk_actionslabel; }; CatLabel: WOString { value = ownLabels.bulk_categorylabel; }; BulkOpForm: WOForm { name = "editform"; /* name required for SkyAccessList */ action = context.page; /* per default do nothing, stay on page */ style = "border-bottom: 1px solid black; padding-bottom: 8px;"; } AttributeCell: SkyAttributeCell {} ValueCell: SkyValueCell {} Font: SkyConfigFont {} EditFont: SkyConfigEditFont {} MainButtonRow: WOGenericContainer { elementName = "tr"; bgcolor = config.colors_mainButtonRow; } MainButtonCell: WOGenericContainer { elementName = "td"; bgcolor = config.colors_mainButtonRow; } Buttons: SkyButtonRow { ordering = ( done ); onDone = close; done = ownLabels.bulk_close_title; } /* access */ AccessEditor: SkyAccessList { accessList = accessIds; accessChecks = ( r, w ); isInTable = YES; isViewerMode = NO; labels = labels; } SetPermissions: WOSubmitButton { name = "bsetperms"; value = ownLabels.bulk_button_setperms; action = setPermissions; } /* categories */ CategoryRep: WORepetition { list = ( 0, 1, 2, 3, 4, 5 ); item = category; } CategoryPopup: WOPopUpButton { list = session.categoryNames; item = item; string = item; selection = selectedCategory; nilString = "-"; } SetCategories: WOSubmitButton { name = "bsetcats"; value = ownLabels.bulk_button_setcategories; action = setCategories; } AddCategories: WOSubmitButton { name = "baddcats"; value = ownLabels.bulk_button_addcategories; action = addCategories; } RemoveCategories: WOSubmitButton { name = "bdelcats"; value = ownLabels.bulk_button_removecategories; action = removeCategories; }