diff options
Diffstat (limited to 'contrib/gns/gns-form.xslt')
-rw-r--r-- | contrib/gns/gns-form.xslt | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/contrib/gns/gns-form.xslt b/contrib/gns/gns-form.xslt new file mode 100644 index 000000000..bf2585616 --- /dev/null +++ b/contrib/gns/gns-form.xslt | |||
@@ -0,0 +1,50 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | ||
3 | |||
4 | <xsl:output method="html" indent="yes" /> | ||
5 | |||
6 | <xsl:template match="form"> | ||
7 | <html> | ||
8 | <head> | ||
9 | <title>Create your GNU Name System Business Card</title> | ||
10 | <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> | ||
11 | <link href="bootstrap.min.css" rel="stylesheet" /> | ||
12 | </head> | ||
13 | <body> | ||
14 | <!--<script src="js/jquery-2.0.3.min.js"></script>--> | ||
15 | <!--<script src="js/bootstrap.min.js"></script>--> | ||
16 | <div class="container"> | ||
17 | <h1>GNU Name System Business Card</h1> | ||
18 | <p> | ||
19 | Please fill in the information below to generate your business card. | ||
20 | </p> | ||
21 | <form class="form-horizontal" name="gnsinput" action="submit.pdf" method="get" accept-charset="utf-8"> | ||
22 | <xsl:apply-templates /> | ||
23 | <div class="form-group"> | ||
24 | <div class="col-sm-offset-2 col-sm-10"> | ||
25 | <input class="btn btn-submit" type="submit" /> | ||
26 | </div> | ||
27 | </div> | ||
28 | </form> | ||
29 | </div> | ||
30 | </body> | ||
31 | </html> | ||
32 | </xsl:template> | ||
33 | |||
34 | <xsl:template match="group"> | ||
35 | <fieldset> | ||
36 | <legend><!--<xsl:value-of select="@title" />--></legend> | ||
37 | <xsl:apply-templates /> | ||
38 | </fieldset> | ||
39 | </xsl:template> | ||
40 | |||
41 | <xsl:template match="field"> | ||
42 | <div class="form-group"> | ||
43 | <label class="col-sm-2 control-label" for="{@id}"><xsl:value-of select="." />:</label> | ||
44 | <div class="col-sm-10"> | ||
45 | <input class="col-sm-10 form-control" id="{@id}" name="{@id}" type="text" /> | ||
46 | </div> | ||
47 | </div> | ||
48 | </xsl:template> | ||
49 | |||
50 | </xsl:transform> | ||