summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorendico%mozilla.org <>1999-06-29 09:24:40 +0200
committerendico%mozilla.org <>1999-06-29 09:24:40 +0200
commit74cfcf36f8fde6b0dd202565be4f827638de60e0 (patch)
treed148c4b7d62e6efc2aa2341e626766e8d0845e55
parent3a875c933f2f4933b6c65a6000ad1c214da3bc19 (diff)
downloadbugzilla-74cfcf36f8fde6b0dd202565be4f827638de60e0.tar.gz
bugzilla-74cfcf36f8fde6b0dd202565be4f827638de60e0.tar.xz
Added "entryheaderhtml" parameter which lets you specify text to
add to beginning of bug entry form. also aligned text in the form to make it pretty. Uncomment the <!--</tr><tr>--> if people complain the 80 col description text box doesn't fit narrow screens.
-rw-r--r--README10
-rw-r--r--defparams.pl5
-rwxr-xr-xenter_bug.cgi39
3 files changed, 41 insertions, 13 deletions
diff --git a/README b/README
index 1d4e9c88b..a335dfd89 100644
--- a/README
+++ b/README
@@ -132,11 +132,11 @@ provide backwards compatibility with the older MySQL packages; you must
answer YES to this question. The default will be no, and if you select it
things won't work later.
- A host of 'localhost' should be fine and a testing user of 'test'
-should find itself with sufficient access to run tests on the 'test'
-database which MySQL created upon installation. If 'make test' and 'make
-install' go through without errors you should be ready to go as far as
-database connectivity is concerned.
+ A host of 'localhost' should be fine and a testing user of 'test' and
+a null password should find itself with sufficient access to run tests on
+the 'test' database which MySQL created upon installation. If 'make test'
+and 'make install' go through without errors you should be ready to go as
+far as database connectivity is concerned.
1.6. TimeDate Perl module collection
diff --git a/defparams.pl b/defparams.pl
index 2f4bef52e..5cba82295 100644
--- a/defparams.pl
+++ b/defparams.pl
@@ -302,6 +302,11 @@ DefParam("webdotbase",
"t",
"http://www.research.att.com/~north/cgi-bin/webdot.cgi/%urlbase%");
+DefParam("entryheaderhtml",
+ "This is a special header for the bug entry page. The text will be printed after the page header, before the bug entry form. It is meant to be a place to put pointers to intructions on how to enter bugs.",
+ "l",
+ '');
+
DefParam("expectbigqueries",
"If this is on, then we will tell mysql to <tt>set option SQL_BIG_TABLES=1</tt> before doing queries on bugs. This will be a little slower, but one will not get the error <tt>The table ### is full</tt> for big queries that require a big temporary table.",
"b",
diff --git a/enter_bug.cgi b/enter_bug.cgi
index e8c77aa18..b04c4e368 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -190,7 +190,20 @@ print "
<INPUT TYPE=HIDDEN NAME=bug_status VALUE=NEW>
<INPUT TYPE=HIDDEN NAME=reporter VALUE=\"$::COOKIE{'Bugzilla_login'}\">
<INPUT TYPE=HIDDEN NAME=product VALUE=\"" . value_quote($product) . "\">
- <TABLE CELLSPACING=2 CELLPADDING=0 BORDER=0>
+ <TABLE CELLSPACING=2 CELLPADDING=0 BORDER=0>";
+
+if (Param("entryheaderhtml")){
+ print "
+ <TR>
+ <td></td>
+ <td colspan=3>" .
+ Param("entryheaderhtml") . "\n" .
+ " </td>
+ </TR>
+ <TR><td><br></td></TR>";
+}
+
+print "
<TR>
<td ALIGN=right valign=top><B>Reporter:</B></td>
<td valign=top>$::COOKIE{'Bugzilla_login'}</td>
@@ -254,8 +267,8 @@ print "
value_quote(formvalue('short_desc')) .
"\"></TD>
</TR>
- <tr><td align=right valign=top><B>Description:</b></tr>
- <tr>
+ <tr><td align=right valign=top><B>Description:</b></td>
+<!-- </tr> <tr> -->
<td colspan=5><TEXTAREA WRAP=HARD NAME=comment ROWS=10 COLS=80>" .
value_quote(formvalue('comment')) .
"</TEXTAREA><BR></td>
@@ -269,14 +282,24 @@ print "
&nbsp;&nbsp;&nbsp;&nbsp;
<INPUT TYPE=\"submit\" NAME=maketemplate VALUE=\"Remember values as bookmarkable template\">
</td>
- </tr>
+ </tr>";
+
+if ( Param('usebrowserinfo') ) {
+ print "
+ <tr>
+ <td></td>
+ <td colspan=3>
+ <br>
+ Some fields initialized from your user-agent,
+ <b>$ENV{'HTTP_USER_AGENT'}</b>. If you think it got it wrong,
+ please tell " . Param('maintainer') . " what it should have been.
+ </td>
+ </tr>";
+}
+print "
</TABLE>
<INPUT TYPE=hidden name=form_name VALUE=enter_bug>
</FORM>\n";
-if ( Param('usebrowserinfo') ) {
- print "Some fields initialized from your user-agent, <b>$ENV{'HTTP_USER_AGENT'}</b>.
- If you think it got it wrong, please tell " . Param('maintainer') . " what it should have been.";
-}
print "</BODY></HTML>\n";