From dffe77c8a6200f5f4f39dd3849d95843366d45e7 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Thu, 24 Oct 2002 05:15:16 +0000 Subject: Bug 171770 - check in Bugzilla Helper. Code by gerv; r=myk. --- .../en/default/bug/create/comment-guided.txt.tmpl | 49 ++ .../en/default/bug/create/create-guided.html.tmpl | 542 +++++++++++++++++++++ 2 files changed, 591 insertions(+) create mode 100644 template/en/default/bug/create/comment-guided.txt.tmpl create mode 100644 template/en/default/bug/create/create-guided.html.tmpl (limited to 'template/en/default') diff --git a/template/en/default/bug/create/comment-guided.txt.tmpl b/template/en/default/bug/create/comment-guided.txt.tmpl new file mode 100644 index 000000000..9ef4f1b51 --- /dev/null +++ b/template/en/default/bug/create/comment-guided.txt.tmpl @@ -0,0 +1,49 @@ +[%# 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 + #%] +[%# INTERFACE: + # form: hash. This is the $::FORM variable from a bug submission (i.e. the + # fields on a template from enter_bug.cgi.) It can be used to pull out + # various custom fields and format an initial Description entry from them. + #%] +User-Agent: [%+ user_agent %] +Build Identifier: [%+ form.buildid %] + +[%+ form.comment IF form.comment %] + +[%+ IF form.reproducible != "Choose one..." -%] +Reproducible: [%+ form.reproducible %] +[% END -%] + +[%# I can't make TT check for "1.\n2.\n3." so this is not conditional. -%] +Steps to Reproduce: +[%+ form.reproduce_steps %] + +[% IF form.actual_results -%] +Actual Results: +[%+ form.actual_results %] +[% END %] + +[% IF form.expected_results %] +Expected Results: +[%+ form.expected_results %] +[% END %] + +[%+ form.additional_info %] diff --git a/template/en/default/bug/create/create-guided.html.tmpl b/template/en/default/bug/create/create-guided.html.tmpl new file mode 100644 index 000000000..6150a620e --- /dev/null +++ b/template/en/default/bug/create/create-guided.html.tmpl @@ -0,0 +1,542 @@ + +[%# 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/header.html.tmpl + title = "Enter A Bug" + onload = "PutDescription()" + %] + +

+ + This is a template used on mozilla.org - it, along with the + comment-guided.txt.tmpl template, are included as a demo of what it's + possible to do with custom templates in general, and custom bug entry + templates in particular. It is recommended that this template be + customised if you want to use it on your Bugzilla installation. + +

+ +[% tablecolour = "#FFFFCC" %] + +[%# This script displays the descriptions for selected components. %] + + +[%# Browser sniff to try and reduce the incidence of 4.x and NS 6/7 bugs %] + +[% IF user_agent.search("Mozilla/4") AND NOT user_agent.search("compatible") %] +
+ + + Note: This is a tool for reporting bugs + with the Mozilla web browser from mozilla.org. Use Netscape's + bug reporting + form to report bugs with Netscape products like Navigator 4.x. + Netscape products have a blue and black N in the top right hand + corner. + + +
+[% END %] + +[% IF (matches = user_agent.match('Netscape(\d)')) %] +
+ + + You are using Netscape [% matches.0 %]. + Report bugs with this browser to the + + Netscape [% matches.0 %] Feedback Center. + + + This form is only for reporting bugs in the Mozilla + web browser from mozilla.org. To report a bug you find in + Netscape [% matches.0 %] with this form, + you must reproduce it first in a + + recent build of Mozilla to make sure the problem hasn't been + fixed already. +
+[% END %] + +

+ This form prompts you for the information required to + file a good bug report (or enhancement request.) + It may seem lengthy, but Mozilla developers need all this information + to understand and reproduce the bug, which is the first step towards + fixing it. Please note that we do not accept bug reports by + email - please do not email developers or mozilla.org staff + with bug reports. Also, please do not + file bugs on copies of Mozilla older than two weeks. +

+ + +

Step 1 - search for your bug

+ +

+ You need to see if your bug has already been reported. + Please don't skip this step. + 50% of the bugs filed in + Bugzilla are duplicates, and and this wastes a lot of our QA engineers' time. +

+ +[%# Stop NS 4.x and all v.3 browsers from getting +[% END %] + +

+ Look through the search results. If you get the + Zarro Boogs message, Bugzilla found no bugs that + match. Check for typos, or add fewer or different keywords. +

+ +

+ If you find a bug that looks the same as yours, you can add + useful comments to that bug, but please don't open a new one. + Please don't add comments like "please fix this bug" - this + tends to annoy engineers and slow, rather than speed, the fixing of it. +

+ +

+ If you find bugs similar to yours, read them and note which component + they are in. You should file your bug in that same component. +

+ + + +

Step 2 - give information

+ +

+ If you're pretty certain that your bug isn't in there already, then + please try to complete this form as accurately as you + can. The more you can tell us, the better our chance of being able + to understand and reproduce your bug. +

+ +
+ + + + + + + + + + + + + + + + + + [%# 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 = [ "All", "PC", "Macintosh", "Sun", "Other" ] %] + + + + + + + [% op_sys = [ "All", "Windows 95", "Windows 98", "Windows NT", "Windows ME", + "Windows 2000", "Windows XP", "Mac System 8.6", + "Mac System 9.x", "MacOS X", "Linux", "Solaris", + "FreeBSD", "other" ] %] + + + + + + + [% matches = user_agent.match('Gecko/(\d+)') %] + [% buildid = user_agent IF matches %] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Product + + + [% product FILTER html %] +
+ Component + +

+ The area where the problem occurs. + To pick the right component, you could use the same one as + similar bugs you found in your search, or read the full list of + component + descriptions if you need more help. +

+ + + + + + +
+ + + [% IF user_agent.search("Mozilla/5") %] +
+ Select a component to see its description here. +
+ [% END %] +
+
+ Hardware Platform + + [% PROCESS select sel = 'rep_platform' %] +
+ Operating System + + [% PROCESS select sel = 'op_sys' %] +
+ Build Identifier
(User Agent)
+
+

+ This is the line beginning "Mozilla/5.0" in + Help | About Mozilla. + It identifies exactly the version of Mozilla you were using. + If you are using the problem copy of Mozilla, this will be + filled in correctly for you already. + If Mozilla won't start, just enter the URL of the directory you + downloaded it from. +

+ +
+ URL + +

+ URL that demonstrates the problem you are seeing (optional.) + IMPORTANT: If you are filing a bug about a broken web page, + you need to read the + Mozilla + Web Developer FAQ, which explains how we handle old or + badly-coded web pages. +

+ +
+ 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 + +

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

+

+ + Bad example: This page looks wrong in + Mozilla. Other browsers display it correctly. You suck! + +
+ + Good example: In the + page at http://www.foo.com/, text in the first column should be + fully justified -- text should be aligned with both the left and + right margins. In Mozilla, the text is only left-justified. + +

+ +
+ Reproducibility + +

+ How often can you reproduce the problem? +

+ +
+ Steps to Reproduce + +

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

+ +
+ Actual Results + +

+ What happened after you performed the steps above? +

+ +
+ Expected Results + +

+ What should Mozilla have done instead? +

+ +
+ Additional Information + +

+ Add any additional information you feel may be + relevant to this bug, such as the theme you were using + (does the 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 bug, after it is filed. +
+
+ If you are reporting a crash, note the module in + which Mozilla crashed (e.g., Application Violation in + gkhtml.dll). On Macintosh, if you + have MacsBug, attach the results of the how and + sc commands. +

+ +
+ Severity + +

+ How serious the problem is. Also, if your bug is a request for a new + feature or enhancement, say so here. +

+ +
+ + + +

Step 3 - submit the bug

+ +

+ +

+ +

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

+ +
+ +[% PROCESS global/footer.html.tmpl %] + +[%############################################################################%] +[%# Block for SELECT fields #%] +[%############################################################################%] + +[% BLOCK select %] + +[% END %] -- cgit v1.2.3-24-g4f1b