// bind template to controller class Frame: LSWSkyrixFrame {} Window: LSWWindowFrame { title = labels.AppointmentViewerTitle; onClose = session.navigation.leavePage; } ViewerTitle: LSWViewerTitle { title = startDate; } Buttons: SkyButtonRow { ordering = ( clip, mail, delete, move, edit, print ); /* methods */ onMail = mailObject; urlMail = objectUrl; onEdit = edit; hasEdit = hasLoginEditAccess; onMove = move; hasMove = hasLoginEditAccess; onDelete = delete; hasDelete = hasLoginDeleteAccess; onClip = placeInClipboard; hasPrint = YES; onPrint = printApt; targetPrint = "printApt"; /*labels */ clip = labels.clip; mail = labels.send; edit = labels.edit; move = labels.move; delete = labels.deleteButtonLabel; print = labels.printButtonLabel; } // new tab: Tab: SkyTabView { selection = session.userDefaults.scheduler_appointment_view; } AptAttrsTab: SkySimpleTabItem { key = "attributes"; label = labels.attributes; } AptParticipantsTab: SkySimpleTabItem { key = "participants"; label = labels.participants; } AptNotesTab: SkySimpleTabItem { key = "notes"; label = labels.notes; } LinkTab: SkySimpleTabItem { key = "links"; label = labels.links; } LogsTab: SkySimpleTabItem { key = "log"; label = labels.logsLabel; } DayLink: WOHyperlink { href = mailTo; filename = "mail_url.gif"; border = 0; ALT = "mail_url.gif"; ALIGN = "TOP"; } IsUserOwner: WOConditional { condition = isUserOwner; } IsUserOwnerElse: WOConditional { condition = isUserOwner; negate = YES; } EditLink: WOHyperlink { action = edit; filename = "edit.gif"; BORDER = 0; ALT = labels.edit; ALIGN = "TOP"; } EditLinkInactive: WOImage { filename = "edit_inactive.gif"; BORDER = 0; ALT = labels.gotoEditLabel_inactiv; ALIGN = "TOP"; } TitleAttr: SkyAttribute { label = labels.title; string = appointment.title; } LocationAttr: SkyAttribute { label = labels.location; string = appointment.location; } StartTimeAttr: SkyAttribute { label = labels.startTime; string = startDate; keyColor = "subAttributeCell"; valueColor = "subValueCell"; } EndTimeAttr: SkyAttribute { label = labels.endTime; string = endDate; keyColor = "subAttributeCell"; valueColor = "subValueCell"; } NotificationTimeAttr: SkyAttribute { label = labels.notificationTime; string = notificationTime; keyColor = "subAttributeCell"; valueColor = "subValueCell"; } CreatorAttr: SkyAttribute { label = labels.creator; string = appointment.owner.login; keyColor = "subAttributeCell"; valueColor = "subValueCell"; } ArchivedCreatorAttr: SkyAttribute { label = labels.creator; string = appointment.owner.login; keyColor = "subAttributeCell"; valueColor = "subValueCell"; valueFontColor = "colors_deleted_object"; } ReadPermissionAttr: SkyAttribute { label = labels.accessTeamLabel; keyColor = "subAttributeCell"; valueColor = "subValueCell"; } AccessTeam: WOString { value = accessTeamLabel; nilString = labels.private; } CommentAttr: SkyAttribute { label = labels.comment; keyColor = "subAttributeCell"; valueColor = "subValueCell"; } Comment: WOString { value = appointment.comment; insertBR = YES; nilString = ""; } IgnoreConflictsAttr: SkyAttribute { label = labels.ignoreConflictsLabel; string = ignoreConflicts; keyColor = "subAttributeCell"; valueColor = "subValueCell"; } ObjectVersionAttr: SkyAttribute { label = labels.objectVersionLabel; string = appointment.objectVersion; keyColor = "subAttributeCell"; valueColor = "subValueCell"; } CycleAttr: SkyAttribute { label = labels.cycle; keyColor = "subAttributeCell"; valueColor = "subValueCell"; } ResourceAttr: SkyAttribute { label = labels.resource; string = object.resourceNames; keyColor = "subAttributeCell"; valueColor = "subValueCell"; } AptTypeAttr: SkySubAttribute { label = labels.attribute_aptType; string = aptTypeLabel; } WriteAccessAttr: SkyAttribute { label = labels.writeAccess; string = writeAccessList; keyColor = "subAttributeCell"; valueColor = "subValueCell"; } AbsenceAttr: SkyAttribute { label = labels.absence; string = object.absence; keyColor = "subAttributeCell"; valueColor = "subValueCell"; } // participants ParticipantsList: SkyAptParticipantsList { appointment = appointment; } // clipboard MainButtonRow: WOGenericContainer { elementName = "tr"; BGCOLOR = config.colors_mainButtonRow; } MainTitle: WOString { value = appointment.title; } Notes: SkyNoteList { title = appointment.title; appointment = appointment; } StartDayAttribute: WOString { value = labels.startDay; } StartTimeAttribute: WOString { value = labels.startTime; } EndTimeAttribute: WOString { value = labels.endTime; } CreatorAttribute: WOString { value = labels.creator; } AccessTeamAttribute: WOString { value = labels.accessTeamLabel; } CommentAttribute: WOString { value = labels.comment; } Font: SkyConfigFont {} EditFont: SkyConfigEditFont {} TableHeaderRow: WOGenericContainer { elementName = "tr"; BGCOLOR = config.colors_tableHeaderRow; } NameLabel: WOString { value = labels.nameLabel; } FNameLabel: WOString { value = labels.fNameLabel; } FunctionLabel: WOString { value = labels.functionLabel; } DegreeLabel: WOString { value = labels.degreeLabel; } EmailLabel: WOString { value = labels.emailLabel; } TelLabel: WOString { value = labels.telLabel; } EpLabel: WOString { value = labels.epLabel; } TeamLabel: WOString { value = labels.teamLabel; } PrivateLabel: WOString { value = labels.accessTeam; } Link: WOHyperlink { href = mailTo; string = appointmentUrl; } ObjectMailCondition: WOConditional { condition = isExternalMailer; negate = YES; } ObjectMailConditionElse: WOConditional { condition = isExternalMailer; } ObjectLink: WOHyperlink { href = objectUrl; } ObjectMail: WOHyperlink { action = mailObject; } SendIcon: WOImage { filename = "send_small.gif"; BORDER = 0; ALT = labels.send; ALIGN = "TOP"; } Cycle: WOString { value = cycleType; escapeHTML = NO;} CycleEndDateString: WOString { value = cycleEndDateString; } UntilLabel: WOString { value = labels.until; } IsCyclic: WOConditional { condition = isCyclic; } IsAbsenceCond: WOConditional { condition = object.isAbsence.boolValue; } IsNotNewConditional: WOConditional { condition = isInNewMode; negate = YES; } ReachableLabel: WOString { value = labels.reachable; } IsAbsence: WOString { value = labels.yes; } NotificationTimeLabel: WOString { value = labels.notificationTime; } NotificationTime: WOString { value = notificationTime; } LogList: SkyObjectLogList { object = appointment; } IsOwnerArchivedCondElse: WOConditional { condition = isOwnerArchived; negate = YES; } IsOwnerArchivedCond: WOConditional { condition = isOwnerArchived; } RelatedLinks: OGoObjectLinkList { object = appointment; }