diff --git a/webtools/hendrix/hendrix.css b/webtools/hendrix/hendrix.css deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/webtools/hendrix/hendrix.jpg b/webtools/hendrix/hendrix.jpg deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/webtools/hendrix/index.cgi b/webtools/hendrix/index.cgi index d02a1a16bfc..c103afe4060 100755 --- a/webtools/hendrix/index.cgi +++ b/webtools/hendrix/index.cgi @@ -23,6 +23,7 @@ # # Contributor(s): # +# The Initial Developer wrote this software to the Glory of God. # ***** END LICENSE BLOCK ***** use strict; @@ -44,7 +45,7 @@ my $form = $cgi->Vars; my $vars; $vars->{'form'} = $form; $vars->{'newsgroup'} = $newsgroup; -$vars->{'stylesheet'} = $form->{'stylesheet'} || "hendrix.css"; +$vars->{'stylesheet'} = $form->{'stylesheet'} || "skin/default.css"; my $template = Template->new({ INCLUDE_PATH => ["template"], diff --git a/webtools/hendrix/skin/default.css b/webtools/hendrix/skin/default.css new file mode 100644 index 00000000000..46dbf5394ac --- /dev/null +++ b/webtools/hendrix/skin/default.css @@ -0,0 +1,63 @@ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is the Hendrix Feedback System. + * + * The Initial Developer of the Original Code is + * Gervase Markham. + * Portions created by the Initial Developer are Copyright (C) 2004 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * + * ***** END LICENSE BLOCK ***** */ + +.sidebar { + float: right; + width: 200px; + font-size: small; + text-align: center; +} + +#header-img { + border: 1px grey solid; + margin-left: 10px; +} + +p.error { + color: red; +} + +h1 { + font-size: x-large; +} + +input[type="text"] { + font-family: monospace; +} + +#name, #email { + width: 25em; +} + +#subject, #comments { + width: 45em; +} + +#comments { + height: 20ex; +} + +.newsgroup { + font-family: monospace; +} diff --git a/webtools/hendrix/skin/hendrix.jpg b/webtools/hendrix/skin/hendrix.jpg new file mode 100644 index 00000000000..e15a535efcf Binary files /dev/null and b/webtools/hendrix/skin/hendrix.jpg differ diff --git a/webtools/hendrix/skin/planet.css b/webtools/hendrix/skin/planet.css new file mode 100644 index 00000000000..bd7baa2dd8f --- /dev/null +++ b/webtools/hendrix/skin/planet.css @@ -0,0 +1,66 @@ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is a stylesheet for the Hendrix Feedback System. + * + * The Initial Developer of the Original Code is + * KDS Sahambi . + * Portions created by the Initial Developer are Copyright (C) 2005 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Gervase Markham + * + * ***** END LICENSE BLOCK ***** */ + +@import url("http://planet.mozilla.org/planet2.css"); + +input[type="text"] { + font-family: monospace; +} + +#name:focus, #email:focus, #subject:focus, #comments:focus{ + background-color: #e4ecec; +} + +#name, #email { + width: 25em; +} + +#subject, #comments { + width: 40em; +} + +#comments { + height: 20ex; +} + +#header-img { + padding: 2px; + border: 2px solid #455372; + background: #e4ecec; +} + +div.sidebar { + float: right; + text-align: center; +} + +.newsgroup { + font-family: monospace; +} + +p.error { + color: red; +} + diff --git a/webtools/hendrix/template/error.html.tmpl b/webtools/hendrix/template/error.html.tmpl index a86ed6edd7c..219f741655b 100644 --- a/webtools/hendrix/template/error.html.tmpl +++ b/webtools/hendrix/template/error.html.tmpl @@ -20,6 +20,7 @@ # # Contributor(s): # + # The Initial Developer wrote this software to the Glory of God. # ***** END LICENSE BLOCK ***** %] [% PROCESS header.html.tmpl diff --git a/webtools/hendrix/template/footer.html.tmpl b/webtools/hendrix/template/footer.html.tmpl index e9e1c7e0288..c142bfb9d83 100644 --- a/webtools/hendrix/template/footer.html.tmpl +++ b/webtools/hendrix/template/footer.html.tmpl @@ -20,7 +20,8 @@ # # Contributor(s): # + # The Initial Developer wrote this software to the Glory of God. # ***** END LICENSE BLOCK ***** %] - + diff --git a/webtools/hendrix/template/header.html.tmpl b/webtools/hendrix/template/header.html.tmpl index 5ec7df535ba..44828bdfb7c 100644 --- a/webtools/hendrix/template/header.html.tmpl +++ b/webtools/hendrix/template/header.html.tmpl @@ -20,6 +20,7 @@ # # Contributor(s): # + # The Initial Developer wrote this software to the Glory of God. # ***** END LICENSE BLOCK ***** %] - [% IF NOT h1 AND title %] [% h1 = title %] [% END %] @@ -43,3 +43,15 @@ [% IF h1 %]

[% h1 %]

[% END %] + + diff --git a/webtools/hendrix/template/index.html.tmpl b/webtools/hendrix/template/index.html.tmpl index 37987f74902..d5ee9106f09 100644 --- a/webtools/hendrix/template/index.html.tmpl +++ b/webtools/hendrix/template/index.html.tmpl @@ -20,6 +20,7 @@ # # Contributor(s): # + # The Initial Developer wrote this software to the Glory of God. # ***** END LICENSE BLOCK ***** %] [% script = BLOCK %] @@ -112,20 +113,19 @@ function onLoad() { >[% form.comments FILTER html %] + + + + + + - - - [%# Add JS to only enable button when form is filled in %] - - + +

Information from this form will be published to the newsgroup [% newsgroup %] so project contributors can read it. Do not submit any information unless you wish it to be made public. Your email address will be spam-proofed.

-

Why "Hendrix"? The late -Jimi Hendrix -is credited with making popular the technique of making feedback useful in the creation of music :-).

- [% PROCESS footer.html.tmpl %] diff --git a/webtools/hendrix/template/message-headers.txt.tmpl b/webtools/hendrix/template/message-headers.txt.tmpl index 07d852c080d..eee2bfa4d0c 100644 --- a/webtools/hendrix/template/message-headers.txt.tmpl +++ b/webtools/hendrix/template/message-headers.txt.tmpl @@ -20,6 +20,7 @@ # # Contributor(s): # + # The Initial Developer wrote this software to the Glory of God. # ***** END LICENSE BLOCK ***** %] [% from = form.name %] [% IF form.email %] diff --git a/webtools/hendrix/template/message.txt.tmpl b/webtools/hendrix/template/message.txt.tmpl index 09941e0b7f8..3f6ab540bae 100644 --- a/webtools/hendrix/template/message.txt.tmpl +++ b/webtools/hendrix/template/message.txt.tmpl @@ -20,6 +20,7 @@ # # Contributor(s): # + # The Initial Developer wrote this software to the Glory of God. # ***** END LICENSE BLOCK ***** %] Name: [% form.name %] [% IF form.email %] diff --git a/webtools/hendrix/template/submit-successful.html.tmpl b/webtools/hendrix/template/submit-successful.html.tmpl index 75f2bef531f..ac5994b83b8 100644 --- a/webtools/hendrix/template/submit-successful.html.tmpl +++ b/webtools/hendrix/template/submit-successful.html.tmpl @@ -20,6 +20,7 @@ # # Contributor(s): # + # The Initial Developer wrote this software to the Glory of God. # ***** END LICENSE BLOCK ***** %] [% PROCESS header.html.tmpl