choose-size-to-alter-recipe.xsl 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?xml version="1.0"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:eat="http://msqr.us/xsd/ieat"
  4. xmlns:xweb="http://msqr.us/xsd/jaxb-web"
  5. exclude-result-prefixes="eat xweb">
  6. <!-- imports -->
  7. <xsl:import href="tmpl/default-layout.xsl"/>
  8. <!-- layout variables -->
  9. <xsl:variable name="layout.global.nav.page" select="''"/>
  10. <!-- helper vars -->
  11. <xsl:variable name="recipe" select="$aux/eat:ui/eat:recipe"/>
  12. <xsl:template match="xweb:x-data" mode="page-title">
  13. <xsl:value-of select="key('i18n','choose-size-to-alter-recipe.title')"/>
  14. </xsl:template>
  15. <xsl:template match="xweb:x-data" mode="page-body">
  16. <div class="intro">
  17. <xsl:value-of select="key('i18n','choose-size-to-alter-recipe.intro')"
  18. disable-output-escaping="yes"/>
  19. </div>
  20. <div class="formLabel">
  21. <xsl:value-of select="key('i18n','recipe.displayName')"/>
  22. <xsl:text>: </xsl:text>
  23. </div>
  24. <div class="read-only">
  25. <xsl:value-of select="$recipe/eat:name"/>
  26. </div>
  27. <br clear="left" />
  28. <form method="post" action="{$web-context}{$ctx/xweb:path}">
  29. <table class="form">
  30. <tr>
  31. <th>
  32. <xsl:value-of select="key('i18n','alter.size.displayName')"/>
  33. </th>
  34. <td>
  35. <input type="text" name="size" class="smallnum"/>
  36. </td>
  37. </tr>
  38. <tr>
  39. <th/>
  40. <td>
  41. <input type="submit" value="{key('i18n','continue.displayName')}"/>
  42. <xsl:text> </xsl:text>
  43. <input type="submit" name="_cancel" value="{key('i18n','cancel.displayName')}"/>
  44. </td>
  45. </tr>
  46. </table>
  47. <input type="hidden" name="recipeId" value="{$recipe/@recipeId}"/>
  48. <!-- handle contextual navigation -->
  49. <xsl:apply-templates select="$aux/eat:ui/eat:search-results"
  50. mode="contextual-navigation"/>
  51. </form>
  52. <script type="text/javascript" xml:space="preserve">
  53. <xsl:comment>
  54. document.forms[0].elements['size'].focus();
  55. //</xsl:comment>
  56. </script>
  57. </xsl:template>
  58. <xsl:template match="eat:system">
  59. <option value="{@systemId}">
  60. <xsl:value-of select="."/>
  61. </option>
  62. </xsl:template>
  63. </xsl:stylesheet>