<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:eat="http://msqr.us/xsd/ieat"
	xmlns:xweb="http://msqr.us/xsd/jaxb-web"
	exclude-result-prefixes="eat xweb">
	
    <!-- imports -->
	<xsl:import href="tmpl/default-layout.xsl"/>
	
	<!-- layout variables -->
	<xsl:variable name="layout.global.nav.page" select="''"/>
	
	<!-- helper vars -->
	<xsl:variable name="meal" select="$aux/eat:ui/eat:meal"/>

	<xsl:template match="xweb:x-data" mode="page-title">
		<xsl:apply-templates select="$meal" mode="title"/>
	</xsl:template>
	
	<xsl:template match="xweb:x-data" mode="page-body">
		<div class="intro">
			<xsl:value-of select="key('i18n','delete-meal.intro')" 
				disable-output-escaping="yes"/>
		</div>
		
		<div class="formLabel">
			<xsl:value-of select="key('i18n','meal.displayName')"/>
			<xsl:text>: </xsl:text>
		</div>
		
		<div class="read-only">
			<xsl:value-of select="$meal/eat:name"/>
		</div>
		
		<br clear="left" />
	
		<form method="post" action="{$web-context}{$ctx/xweb:path}">
			<input type="submit" value="{key('i18n','delete.displayName')}"/>
			<xsl:text> </xsl:text>
			<input type="submit" name="_cancel" value="{key('i18n','cancel.displayName')}"/>
			<input type="hidden" name="mealId" value="{$meal/@mealId}"/>
		</form>                
	</xsl:template>

	<xsl:template match="eat:meal" mode="title">
		<xsl:value-of select="key('i18n','delete-meal.title')"/>
		<xsl:text> </xsl:text>
		<xsl:value-of select="eat:name"/>
	</xsl:template>

</xsl:stylesheet>
