[%# 1.0@mozilla.org %] [%# 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 Bugzilla Bug Tracking System. # # The Initial Developer of the Original Code is Netscape Communications # Corporation. Portions created by Netscape are # Copyright (C) 1998 Netscape Communications Corporation. All # Rights Reserved. # # Contributor(s): Gervase Markham # Christine Begle #%] [%# INTERFACE: # This template has the same interface as create.html.tmpl #%] [% PROCESS global/variables.none.tmpl %] [% USE Bugzilla %] [% cgi = Bugzilla.cgi %] [% PROCESS global/header.html.tmpl title = "Enter $terms.ABug" onload = "PutDescription()" %]

This is a template used on mozilla.org. This template, and the comment-guided.txt.tmpl template that formats the data submitted via the form in this template, are included as a demo of what it's possible to do with custom templates in general, and custom [% terms.bug %] entry templates in particular. As much of the text will not apply, you should alter it if you want to use this form on your [% terms.Bugzilla %] installation.

[% tablecolour = "#FFFFCC" %] [%# This script displays the descriptions for selected components. %] [%# Browser sniff to try and reduce the incidence of Netscape 6/7 bugs %] [% IF cgi.user_agent('Netscape(\d)') %] [% matches = cgi.user_agent().match('Netscape(\d)') %]
You are using Netscape [% matches.0 %]. Report [% terms.bugs %] with this browser to the Netscape [% matches.0 %] Feedback Center. This form is only for reporting [% terms.bugs %] in the Mozilla web browser and other products from mozilla.org. To report [% terms.abug %] you find in Netscape [% matches.0 %] with this form, you must reproduce it first in a recent build of Mozilla, Firefox, Thunderbird or Camino to make sure the problem hasn't been fixed already.
[% END %] [% IF cgi.user_agent('Gecko/') %] [% matches = cgi.user_agent().match('Gecko/(\d+)') %] [% END %]

Step 1 of 3 - has your [% terms.bug %] already been reported?

Please don't skip this step - half of all [% terms.bugs %] filed are reported already. Check the two lists of frequently-reported [% terms.bugs %]:

[%# Include other products if sensible %] [% IF product.name == "Firefox" %] [% productstring = "product=Mozilla%20Application%20Suite&product=Firefox" %] [% ELSIF product.name == "Thunderbird" %] [% productstring = "product=Mozilla%20Application%20Suite&product=Thunderbird" %] [% ELSE %] [% productstring = BLOCK %]product=[% product.name FILTER url_quote %][% END %] [% END %]

All-time Top 100 (loaded initially) | Hot in the last two weeks

If your [% terms.bug %] isn't there, search [% terms.Bugzilla %] by entering a few key words having to do with your [% terms.bug %] in this box. For example: pop3 mail or copy paste. The results will appear above.

[%# All bugs opened inside the past six months %]
[% IF product.name == "Firefox" OR product.name == "Thunderbird" OR product.name == "Mozilla Application Suite" OR product.name == "Camino" %] [% END %]

Look through the search results. If you get the [% terms.zeroSearchResults %] message, [% terms.Bugzilla %] found no [% terms.bugs %] that match. Check for typing mistakes, or try fewer or different keywords. If you find [% terms.abug %] that looks the same as yours, please add any useful extra information you have to it, rather than opening a new one.

Step 2 of 3 - give information

If you've tried a few searches and your [% terms.bug %] really isn't in there, tell us all about it.

[%# We override rep_platform and op_sys for simplicity. The values chosen are based on which are most common in the b.m.o database %] [% rep_platform = [ "PC", "Macintosh", "All", "Other" ] %] [% op_sys = [ "Windows 98", "Windows NT", "Windows 2000", "Windows XP", "Mac System 9.x", "MacOS X", "Linux", "All", "other" ] %] [% matches = cgi.user_agent('Gecko/(\d+)') %] [% buildid = cgi.user_agent() IF matches %]
Product [% product.name FILTER html %]
Component

The area where the problem occurs. To pick the right component, you could use the same one as similar [% terms.bugs %] you found in your search, or read the full list of component descriptions (opens in new window) if you need more help.

Hardware Platform [% PROCESS select sel = 'rep_platform' %]
Operating System [% PROCESS select sel = 'op_sys' %]
Build Identifier
(User Agent)

This identifies exactly the version of the product you were using. If reporting [% terms.abug %] in Mozilla or Firefox, this is the line beginning "Mozilla/5.0" in Help | About. If you are using the problematic software to file the bug, this field will already be filled in correctly. If the product won't start, just enter the complete URL you downloaded it from.

URL

URL that demonstrates the problem you are seeing (optional.)

Summary

A sentence which summarises the problem. Please be descriptive and use lots of keywords.

Bad example: mail crashed
Good example: crash if I close the mail window while checking for new POP mail

Details [% INCLUDE global/textarea.html.tmpl name = 'comment' minrows = 6 cols = constants.COMMENT_COLS %]

Expand on the Summary. Please be as specific as possible about what is wrong.

Bad example: Mozilla crashed. You suck!
Good example: After a crash which happened when I was sorting in the Bookmark Manager,
all of my top-level bookmark folders beginning with the letters Q to Z are no longer present.

Reproducibility
Steps to Reproduce [% INCLUDE global/textarea.html.tmpl name = 'reproduce_steps' minrows = 4 cols = constants.COMMENT_COLS defaultcontent = "1.\n2.\n3." %]

Describe how to reproduce the problem, step by step. Include any special setup steps.

Actual Results [% INCLUDE global/textarea.html.tmpl name = 'actual_results' minrows = 4 cols = constants.COMMENT_COLS %]

What happened after you performed the steps above?

Expected Results [% INCLUDE global/textarea.html.tmpl name = 'expected_results' minrows = 4 cols = constants.COMMENT_COLS %]

What should the software have done instead?

Additional Information [% INCLUDE global/textarea.html.tmpl name = 'additional_info' minrows = 8 cols = constants.COMMENT_COLS %]

Add any additional information you feel may be relevant to this [% terms.bug %], such as the theme you were using (does the [% terms.bug %] still occur with the default theme?), a Talkback crash ID, or special information about your computer's configuration. Any information longer than a few lines, such as a stack trace or HTML testcase, should be added using the "Create a new Attachment" link on the [% terms.bug %], after it is filed. If you believe that it's relevant, please also include your build configuration, obtained by typing about:buildconfig into your URL bar.

If you are reporting a crash, note the module in which the software crashed (e.g., Application Violation in gkhtml.dll).

Severity

Say how serious the problem is, or if your [% terms.bug %] is a request for a new feature.

Step 3 of 3 - submit the [% terms.bug %] report

That's it! Thanks very much. You'll be notified by email about any progress that is made on fixing your [% terms.bug %].

Please be warned that we get a lot of [% terms.bug %] reports filed - it may take quite a while to get around to yours. You can help the process by making sure your [%+ terms.bug %] is complete and easy to understand, and by quickly replying to any questions which may arrive by email.

[% PROCESS global/footer.html.tmpl %] [%############################################################################%] [%# Block for SELECT fields #%] [%############################################################################%] [% BLOCK select %] [% END %]