renderSelectTenantsPage.xslt 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ps
  5. (C) Copyright IBM Corp. 2012
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xsl:stylesheet version="1.0"
  9. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  10. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  11. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  12. xmlns:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/"
  13. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  14. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  15. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  16. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  17. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  18. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  19. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  20. xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
  21. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  22. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  23. exclude-result-prefixes="xsl cf cp pf df dp lyt cm utml xts xtsext mf dpl bus">
  24. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  25. <!-- current file name -->
  26. <xsl:variable name="mname" select="'new_deployment2.xts'"/>
  27. <!-- add any theme variables -->
  28. <pf:variables/>
  29. <!-- deployment variables -->
  30. <dpl:variables/>
  31. <mf:variables>
  32. <mf:stateParams>
  33. <xsl:value-of select="' m_path backURL m_class m_deploymentWizardPage '"/>
  34. </mf:stateParams>
  35. </mf:variables>
  36. <!-- start the output -->
  37. <xsl:template match="/root">
  38. <xsl:variable name="browserTitle">
  39. <xts:string id="IDS_DEPLOYMENT_SELECT_TENANTS_TITLE">
  40. <xts:param name="wizardName">
  41. <xsl:value-of select="$wizard-title"/>
  42. </xts:param>
  43. </xts:string>
  44. </xsl:variable>
  45. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
  46. <dp:meta>
  47. <pf:meta/>
  48. <!-- Standard meta tags -->
  49. </dp:meta>
  50. <dp:script>
  51. <pf:help context="HID_DPLOY"/>
  52. <script language="javascript" src="{$webRoot}/dojo16/dojo/dojo.js"/>
  53. <dpl:tenantSelectionScript/>
  54. <script language="javascript">
  55. function validate() {
  56. return verifyTenantSelection();
  57. }
  58. </script>
  59. </dp:script>
  60. <utml:form name="pform" method="post" action="{$gateway}">
  61. <utml:excludes>selectedTenants</utml:excludes>
  62. <!-- dialog header -->
  63. <xsl:call-template name="header-section">
  64. <xsl:with-param name="form-read-only" select="$form-read-only"/>
  65. <xsl:with-param name="utml-form-name" select="$utml-form-name"/>
  66. </xsl:call-template>
  67. <!-- page body -->
  68. <dpl:exportSelectTenantUI/>
  69. <!-- dialog footer -->
  70. <dp:footer>
  71. <xsl:choose>
  72. <xsl:when test="key('env-param', 'ps_nav_stack') and not(key('env-param', 'ps_nav_stack') = '') ">
  73. <df:button df:id="IDS_CANCEL" df:style="stack-down"/>
  74. </xsl:when>
  75. <xsl:otherwise>
  76. <df:button df:id="IDS_CANCEL" df:style="back-url"/>
  77. </xsl:otherwise>
  78. </xsl:choose>
  79. <xsl:choose>
  80. <xsl:when test="not(key('env-param', 'tenants'))">
  81. <df:button df:id="IDS_BACK" df:style="maintain" onClick="document.pform.m_deploymentWizardPage.value='method';">
  82. <df:target>
  83. <xsl:value-of select="concat($app, '/new_deployment2.xts')"/>
  84. </df:target>
  85. </df:button>
  86. </xsl:when>
  87. <xsl:otherwise>
  88. <df:button df:id="IDS_BACK" df:style="maintain" onClick="javascript:document.pform.m_wizardOp.value='update-method';document.pform.m_deploymentWizardPage.value='tenants';">
  89. <df:target>
  90. <xsl:value-of select="concat($app, '/new_general.xts')"/>
  91. </df:target>
  92. </df:button>
  93. </xsl:otherwise>
  94. </xsl:choose>
  95. <df:button df:id="IDS_NEXT" df:style="maintain" utml:validate="true" onClick="javascript:document.pform.m_deploymentWizardPage.value='select-archive';">
  96. <df:target>
  97. <xsl:value-of select="concat($app, '/new_deployment2.xts')"/>
  98. </df:target>
  99. </df:button>
  100. <df:button df:id="IDS_FINISH"/>
  101. </dp:footer>
  102. </utml:form>
  103. </dp:page>
  104. </xsl:template>
  105. <xsl:template name="header-section">
  106. <xsl:param name="form-read-only"/>
  107. <xsl:param name="utml-form-name"/>
  108. <xsl:copy>
  109. <dp:header>
  110. <dpl:title dpl:id="IDS_DEPLOYMENT_SELECT_TENANTS_TITLE"/>
  111. <dp:description>
  112. <xts:string id="IDS_DEPLOYMENT_SELECT_TENANTS_INTRO"/>
  113. </dp:description>
  114. </dp:header>
  115. </xsl:copy>
  116. </xsl:template>
  117. </xsl:stylesheet>