pjs/webtools/hendrix/template/index.html.tmpl

142 строки
4.7 KiB
Cheetah

[%# ***** 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):
#
# The Initial Developer wrote this software to the Glory of God.
# ***** END LICENSE BLOCK ***** %]
[% script = BLOCK %]
var ids = ["name", "subject", "comments"];
function checkSubmitEnable() {
/* To enable the button, all fields must have a value */
var enable = true;
for (var i = 0; i < ids.length; i++) {
if (document.getElementById(ids[i]).value == "") {
enable = false;
break;
}
}
document.getElementById("send-feedback").disabled = !enable;
}
function onLoad() {
/* Add the event listeners, and disable the button initially */
for (var i = 0; i < ids.length; i++) {
document.getElementById(ids[i]).onkeyup = checkSubmitEnable;
}
checkSubmitEnable();
}
[% END %]
[% PROCESS header.html.tmpl
title = "Hendrix - mozilla.org Feedback System"
onload = "onLoad()"
%]
<p>This is Hendrix - the mozilla.org system for leaving quick feedback on and suggestions for our products. Looking for support? <a href="http://www.mozilla.org/support/">See our support pages</a>.</p>
<p>If you are using the latest developer release of Firefox, and have noticed a website is broken, please instead pull down the Help menu and select "Report Broken Web Site". If you have a specific and detailed bug report, please file it in
<a href="https://bugzilla.mozilla.org/enter_bug.cgi">Bugzilla</a>.</p>
<p>Due to the number of suggestions and comments that are received, you should not expect a direct response. But your views are important to us, so please do let us know what you think.</p>
<form id="feedback-form" method="POST">
<table id="feedback-table">
<tr>
<td class="label">Name:</td>
<td class="widget">
<input id="name" name="name" type="text"
value="[% form.email FILTER html %]"/>
</td>
</tr>
<tr>
<td class="label">Email:</td>
<td class="widget">
<input id="email" name="email" type="text"
value="[% form.email FILTER html %]"/> (optional)
</td>
</tr>
<tr>
<td class="label">
Product:
</td>
<td class="widget">
<select id="product" name="product">
<option name="Firefox">Firefox</option>
<option name="Thunderbird">Thunderbird</option>
<option name="Mozilla Suite">Mozilla Suite</option>
<option name="SeaMonkey">SeaMonkey</option>
<option name="Sunbird">Sunbird</option>
<option name="Camino">Camino</option>
<option name="Bon Echo">Bon Echo</option>
<option name="Minefield">Minefield</option>
<option name="Other">Other (please state)</option>
</select>
</td>
</tr>
<tr>
<td class="label">
Summary:
</td>
<td class="widget">
<input id="subject" name="subject" type="text"
value="[% form.subject FILTER html %]"/>
</td>
</tr>
<tr>
<td class="label">
Detailed Comments:
</td>
<td class="widget">
<textarea id="comments" name="comments" wrap="hard" cols="72"
>[% form.comments FILTER html %]</textarea>
</td>
</tr>
<tr>
<td></td>
<td>
<input id="send-feedback" type="submit" value="Send Feedback"/>
</td>
</tr>
</table>
<input type="hidden" name="useragent" id="useragent" value=""/>
<script type="text/javascript">
if (document.getElementById)
{
var useragent = navigator.userAgent;
document.getElementById("useragent").setAttribute("value", useragent);
}
</script>
<input type="hidden" name="action" value="submit"/>
</form>
<p>
Information from this form will be published to the newsgroup <span class="newsgroup">[% newsgroup %]</span> so project contributors can read it. Do not submit any information unless you wish it to be made public. Your email address will be obfuscated to make life difficult for spammers.
</p>
[% PROCESS footer.html.tmpl %]