aboutsummaryrefslogtreecommitdiff
path: root/static/contact.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'static/contact.xsl')
-rw-r--r--static/contact.xsl52
1 files changed, 28 insertions, 24 deletions
diff --git a/static/contact.xsl b/static/contact.xsl
index ab9eeea..505d534 100644
--- a/static/contact.xsl
+++ b/static/contact.xsl
@@ -1,32 +1,36 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes" />
- <xsl:include href="head.xsl" />
+ <xsl:include href="templates.xsl" />
+
+ <xsl:param name="icon">
+ <xsl:text>mail</xsl:text>
+ </xsl:param>
<xsl:param name="title">
<xsl:text>Contact</xsl:text>
</xsl:param>
- <xsl:template match="/">
- <html>
- <xsl:call-template name="head">
- <xsl:with-param name="title" select="$title" />
- </xsl:call-template>
+ <xsl:param name="content">
+ <form id="contact-form" method="POST" action="/contact">
+ <label>
+ Name
+ <input id="name_in" type="text" name="name" placeholder="Name" />
+ </label>
+ <label>
+ Email
+ <input id="email_in" type="email" name="email" placeholder="you@ema.il" />
+ </label>
+ <label>
+ Message
+ <textarea id="message_in" name="message" placeholder="What's up bud?"></textarea>
+ </label>
+ <button type="submit">Transmit</button>
+ </form>
+ </xsl:param>
- <body>
- <h1><xsl:value-of select="$title" /></h1>
- <form id="contact-form" class="pure-form pure-form-stacked">
- <label for="name_in">
- Name
- <input id="name_in" type="text" name="name" />
- </label>
- <label for="email_in">
- Email
- <input id="email_in" type="email" name="email" />
- </label>
- <label for="message_in">
- Message
- <textarea id="message_in" name="message"></textarea>
- </label>
- </form>
- </body>
- </html>
+ <xsl:template match="/">
+ <xsl:call-template name="page">
+ <xsl:with-param name="icon" select="$icon" />
+ <xsl:with-param name="title" select="$title" />
+ <xsl:with-param name="content" select="$content" />
+ </xsl:call-template>
</xsl:template>
</xsl:stylesheet>