diff options
author | endico%mozilla.org <> | 1999-06-29 09:24:40 +0200 |
---|---|---|
committer | endico%mozilla.org <> | 1999-06-29 09:24:40 +0200 |
commit | 74cfcf36f8fde6b0dd202565be4f827638de60e0 (patch) | |
tree | d148c4b7d62e6efc2aa2341e626766e8d0845e55 /enter_bug.cgi | |
parent | 3a875c933f2f4933b6c65a6000ad1c214da3bc19 (diff) | |
download | bugzilla-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.
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-x | enter_bug.cgi | 39 |
1 files changed, 31 insertions, 8 deletions
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 " <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"; |