diff options
author | Nils Gillmann <ng0@n0.is> | 2018-05-19 14:43:13 +0000 |
---|---|---|
committer | Nils Gillmann <ng0@n0.is> | 2018-05-19 14:43:13 +0000 |
commit | 6ab60d4920bb3199aee8cd872b930e9e3e808ba7 (patch) | |
tree | 3d761dbf8793a1d2422fbd14667255c7e0292ea4 /contrib/gns/gns-form.xslt | |
parent | c2f27dfe8218545c327ab49d225a49910347c5c6 (diff) | |
download | gnunet-6ab60d4920bb3199aee8cd872b930e9e3e808ba7.tar.gz gnunet-6ab60d4920bb3199aee8cd872b930e9e3e808ba7.zip |
Restructure contrib folder.
contrib/pogen.sh -> bin/pogen.sh
bootstrap: Use new pogen location and execute it.
contrib/openvpn-tap32: Move to contrib/3rdparty/Windows/openvpn-tap32.
contrib/gnunet-logo*: Move to contrib/branding/logo/
Delete old patches in contrib, predating git.
Move buildbot data to contrib/ci/buildbot,
move docker data to contrib/ci/docker.
Create contrib/conf and populate it with config files found in contrib and bin.
Move gns related data to contrib/gns.
delete contrib/repeat.sh
Move contrib/log.php into contrib/web/log.php.
Create folder contrib/scripts and use it for most scripts in contrib.
Remove trailing whitespace in doc/Makefile.am
Signed-off-by: Nils Gillmann <ng0@n0.is>
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> | ||