<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
	version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns="http://www.w3.org/1999/xhtml"
	>
	<xsl:import href="../class.xsl"/>

       <xsl:template match="mediaobject[@id = 'contactFormPlaceholder']">
                <iframe width="420px" height="460px" frameborder="no" scrolling="no">
                        <xsl:attribute name="src">
                                <xsl:text>http://jobs.grapefruit.ro/contact/new?locale=</xsl:text>
                                <xsl:value-of select="$lang"/>
                        </xsl:attribute>
                        <xsl:text>No iframe support</xsl:text>
                </iframe>
        </xsl:template>


	<xsl:template match="section[@id = 'contactForm']">
		<div>
					<xsl:attribute name="class">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">break</xsl:with-param>
						</xsl:call-template>
					</xsl:attribute>
			<xsl:text> </xsl:text>
		</div>
		<xsl:apply-templates select="title|subtitle|para|figure|hr|itemizedlist|mediaobject"/>
	</xsl:template>

	<xsl:template match="mediaobject[@id = 'oldcontactFormPlaceholder']">

				<form action="{$lang}/" method="post">
					<div>
						<xsl:attribute name="class">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">break</xsl:with-param>
						</xsl:call-template>
						</xsl:attribute>
						<xsl:text> </xsl:text>
					</div>
					<div class="formRow">
						<xsl:text disable-output-escaping="yes"><![CDATA[<!--#include virtual="/form.cgi" -->]]></xsl:text>
					</div>

					<div>
					<xsl:attribute name="class">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">formCol1</xsl:with-param>
						</xsl:call-template>
					</xsl:attribute>
						<label for="foaf:firstName">*<xsl:value-of select="$copy/copy/firstName/li[@xml:lang = $lang]" />:</label><br />

						<input type="text" name="foaf:firstName" id="foaf:firstName" />
					</div>
					<div>
					<xsl:attribute name="class">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">formCol2</xsl:with-param>
						</xsl:call-template>
					</xsl:attribute>
						<label for="foaf:surname">*<xsl:value-of select="$copy/copy/surname/li[@xml:lang = $lang]" />:</label><br />
						<input type="text" name="foaf:surname" id="foaf:surname" />
					</div>
					<div>
					<xsl:attribute name="class">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">formCol1</xsl:with-param>
						</xsl:call-template>
					</xsl:attribute>
						<label for="foaf:Organization"><xsl:value-of select="$copy/copy/company/li[@xml:lang = $lang]" />:</label><br />

						<input type="text" name="foaf:Organization" id="foaf:Organization" />
					</div>
					<div>
					<xsl:attribute name="class">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">formCol2</xsl:with-param>
						</xsl:call-template>
					</xsl:attribute>
						<label for="foaf:mbox">*<xsl:value-of select="$copy/copy/email/li[@xml:lang = $lang]" />:</label><br />
						<input type="text" name="foaf:mbox" id="foaf:mbox" />
					</div>
					<div>
					<xsl:attribute name="class">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">formRow</xsl:with-param>
						</xsl:call-template>
					</xsl:attribute>
						<label for="subject">*<xsl:value-of select="$copy/copy/subject/li[@xml:lang = $lang]" />:</label><br />

						<input type="text" name="subject" id="subject" />
					</div>
					<div>
					<xsl:attribute name="class">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">formRow</xsl:with-param>
						</xsl:call-template>
					</xsl:attribute>
						<label for="comments">*<xsl:value-of select="$copy/copy/comments/li[@xml:lang = $lang]" />:</label><br />
						<textarea name="comments" id="comments" rows="6">
							<xsl:text> </xsl:text>
						</textarea>
					</div>
					<div>
					<xsl:attribute name="class">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">formRow</xsl:with-param>
						</xsl:call-template>
					</xsl:attribute>
						<input type="image" alt="Send" src="/ui/media/images/buttons/{$copy/copy/send/li[@xml:lang = $lang]}_off.gif">
						<xsl:attribute name="id">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">sendButton</xsl:with-param>
						</xsl:call-template>
						</xsl:attribute>
						</input>

					</div>
					<div>
					<xsl:attribute name="class">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">formRow</xsl:with-param>
						</xsl:call-template>
					</xsl:attribute>
						<p>
						<xsl:attribute name="class">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">formDesc</xsl:with-param>
						</xsl:call-template>
						</xsl:attribute>
							<xsl:text>* required fields</xsl:text>
						</p>
					</div>
				</form>

	<!--
				<form action="">

					<div>
					<xsl:attribute name="class">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">formCol1</xsl:with-param>
						</xsl:call-template>
					</xsl:attribute>
						<label for="firstName">*First name:</label><br />

						<input type="text" name="firstName" />
					</div>
					<div>
					<xsl:attribute name="class">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">formCol2</xsl:with-param>
						</xsl:call-template>
					</xsl:attribute>
						<label for="lastName">*Last name:</label><br />
						<input type="text" name="lastName" />
					</div>
					<div>
					<xsl:attribute name="class">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">formCol1</xsl:with-param>
						</xsl:call-template>
					</xsl:attribute>
						<label for="company">Company:</label><br />

						<input type="text" name="company" />
					</div>
					<div>
					<xsl:attribute name="class">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">formCol2</xsl:with-param>
						</xsl:call-template>
					</xsl:attribute>
						<label for="email">*Email:</label><br />
						<input type="text" name="email" />
					</div>
					<div>
					<xsl:attribute name="class">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">formRow</xsl:with-param>
						</xsl:call-template>
					</xsl:attribute>
						<label for="comments">Comments:</label><br />

						<textarea name="comments" rows="9">
							<xsl:text> </xsl:text>
						</textarea>
					</div>
					<div>
					<xsl:attribute name="class">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">formRow</xsl:with-param>
						</xsl:call-template>
					</xsl:attribute>
						<input type="image" alt="Send" src="/ui/media/images/buttons/send_off.gif">
						<xsl:attribute name="id">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">sendButton</xsl:with-param>
						</xsl:call-template>
						</xsl:attribute>
						</input>
					</div>
					<div>
					<xsl:attribute name="class">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">formRow</xsl:with-param>
						</xsl:call-template>
					</xsl:attribute>
						<p>
						<xsl:attribute name="class">
						<xsl:call-template name="encode">
							<xsl:with-param name="string">formDesc</xsl:with-param>
						</xsl:call-template>
						</xsl:attribute>
							<xsl:text>* required fields</xsl:text>
						</p>
					</div>

				</form>
				-->
	</xsl:template>

</xsl:stylesheet>

