choose-system-to-display-shoplist.xsl 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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="meal" select="$aux/eat:ui/eat:meal"/>
  12. <xsl:template match="xweb:x-data" mode="page-title">
  13. <xsl:value-of select="key('i18n','choose-system-for-shoplist.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-system-for-shoplist.intro')"
  18. disable-output-escaping="yes"/>
  19. </div>
  20. <div class="formLabel">
  21. <xsl:value-of select="key('i18n','meal.displayName')"/>
  22. <xsl:text>: </xsl:text>
  23. </div>
  24. <div class="read-only">
  25. <xsl:value-of select="$meal/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','recipe.system.displayName')"/>
  33. </th>
  34. <td>
  35. <select name="systemId">
  36. <xsl:apply-templates select="$aux/*/eat:system"/>
  37. </select>
  38. </td>
  39. </tr>
  40. <tr>
  41. <th/>
  42. <td>
  43. <input type="submit" value="{key('i18n','continue.displayName')}"/>
  44. <xsl:text> </xsl:text>
  45. <input type="submit" name="_cancel" value="{key('i18n','cancel.displayName')}"/>
  46. </td>
  47. </tr>
  48. </table>
  49. <input type="hidden" name="mealId" value="{$meal/@mealId}"/>
  50. <!-- handle contextual navigation -->
  51. <xsl:apply-templates select="$aux/eat:ui/eat:search-results"
  52. mode="contextual-navigation"/>
  53. </form>
  54. </xsl:template>
  55. <xsl:template match="eat:system">
  56. <option value="{@systemId}">
  57. <xsl:value-of select="."/>
  58. </option>
  59. </xsl:template>
  60. </xsl:stylesheet>