12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: HTS
- (C) Copyright IBM Corp. 2005, 2010
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <xsl:stylesheet version="1.0"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xsl:variable name="taskMenuName"><xts:string id="IDS_FRAG_MENU_LABEL_TASK"/></xsl:variable>
- <response>
- <contextMenu id="contextMenu">
- <!-- define the list of task actions, a style is defined so that the menu title looks like a hyperlink. The rebuild attribute tells the menu
- to rebuild itself each time it is opened because certain actions may not be available depending on the task state -->
- <item type="menu">
- <menu id="actionContextMenu" displayName="{$taskMenuName}" titleStyle="menuDiv" rebuild="true">
- <item>
- <name><xts:string id="IDS_FRAG_MENU_LABEL_ACTIVATE_TASK"/></name>
- <image>/fragments/myinbox/images/activate.gif</image>
- <action>_THIS_action('activate');</action>
- </item>
- <item>
- <name><xts:string id="IDS_FRAG_MENU_LABEL_CLAIM_TASK"/></name>
- <image>/fragments/myinbox/images/claim.gif</image>
- <action>_THIS_action('claim');</action>
- </item>
- <item>
- <name><xts:string id="IDS_FRAG_MENU_LABEL_ASSIGN_TASK"/></name>
- <image>/fragments/myinbox/images/assign.gif</image>
- <action>_THIS_action('assign');</action>
- </item>
- <item>
- <name><xts:string id="IDS_FRAG_MENU_LABEL_RELEASE_TASK"/></name>
- <image>/fragments/myinbox/images/returntask.gif</image>
- <action>_THIS_action('release');</action>
- </item>
- <item separatorBefore="true">
- <name><xts:string id="IDS_FRAG_MENU_LABEL_SET_PRIORITY"/></name>
- <image>/fragments/myinbox/images/priority.gif</image>
- <action>_THIS_action('setPriority');</action>
- </item>
- <item separatorBefore="true">
- <name><xts:string id="IDS_FRAG_MENU_LABEL_START_TASK"/></name>
- <image>/fragments/myinbox/images/start.gif</image>
- <action>_THIS_action('start');</action>
- </item>
- <item>
- <name><xts:string id="IDS_FRAG_MENU_LABEL_STOP_TASK"/></name>
- <image>/fragments/myinbox/images/stop.gif</image>
- <action>_THIS_action('stop');</action>
- </item>
- </menu>
- </item>
- </contextMenu>
- </response>
- </xsl:template>
- </xsl:stylesheet>
|