/[web]/templates/bugzilla/trunk/bug/create/create-guided.html.tmpl
ViewVC logotype

Annotation of /templates/bugzilla/trunk/bug/create/create-guided.html.tmpl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 48 - (hide annotations) (download)
Fri Nov 26 14:56:29 2010 UTC (13 years, 4 months ago) by dmorgan
File size: 17437 byte(s)
Add custom template with identity support
1 dmorgan 48 [%# The contents of this file are subject to the Mozilla Public
2     # License Version 1.1 (the "License"); you may not use this file
3     # except in compliance with the License. You may obtain a copy of
4     # the License at http://www.mozilla.org/MPL/
5     #
6     # Software distributed under the License is distributed on an "AS
7     # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
8     # implied. See the License for the specific language governing
9     # rights and limitations under the License.
10     #
11     # The Original Code is the Bugzilla Bug Tracking System.
12     #
13     # The Initial Developer of the Original Code is Netscape Communications
14     # Corporation. Portions created by Netscape are
15     # Copyright (C) 1998 Netscape Communications Corporation. All
16     # Rights Reserved.
17     #
18     # Contributor(s): Gervase Markham <gerv@gerv.net>
19     # Christine Begle <cbegle@mozilla.org>
20     #%]
21    
22     [%# INTERFACE:
23     # This template has the same interface as create.html.tmpl
24     #%]
25    
26     [% PROCESS global/variables.none.tmpl %]
27    
28     [% USE Bugzilla %]
29     [% cgi = Bugzilla.cgi %]
30    
31     [% PROCESS global/header.html.tmpl
32     title = "Enter $terms.ABug"
33     onload = "PutDescription()"
34     style = "#somebugs { width: 100%; height: 500px }"
35     %]
36    
37     <p>
38     <font color="red">
39     This is a template used on mozilla.org. This template, and the
40     comment-guided.txt.tmpl template that formats the data submitted via
41     the form in this template, are included as a demo of what it's
42     possible to do with custom templates in general, and custom [% terms.bug %]
43     entry templates in particular. As much of the text will not apply,
44     you should alter it
45     if you want to use this form on your [% terms.Bugzilla %] installation.
46     </font>
47     </p>
48    
49     [% tablecolour = "#FFFFCC" %]
50    
51     [%# This script displays the descriptions for selected components. %]
52     <script type="text/javascript">
53     var descriptions = [
54     [% FOREACH c = product.components %]
55     '[% c.description FILTER js %]',
56     [% END %]
57     ];
58    
59     function PutDescription() {
60     if ((document.getElementById) && (document.body.innerHTML)) {
61     var componentIndex = document.getElementById('component').selectedIndex;
62     if (componentIndex != -1) {
63     var description = document.getElementById('description');
64     description.innerHTML = descriptions[componentIndex];
65     }
66     }
67     }
68     </script>
69    
70     <a name="step1"></a>
71     <h3>Step 1 of 3 - has your [% terms.bug %] already been reported?</h3>
72    
73     <p>
74     <font color="red">Please don't skip this step - half of all
75     [% terms.bugs %] filed are
76     reported already.</font>
77     Check the two lists of frequently-reported [% terms.bugs %]:
78     </p>
79    
80     [%# Include other products if sensible %]
81     [% IF product.name == "Firefox" %]
82     [% productstring = "product=Mozilla%20Application%20Suite&amp;product=Firefox" %]
83     [% ELSIF product.name == "Thunderbird" %]
84     [% productstring = "product=Mozilla%20Application%20Suite&amp;product=Thunderbird" %]
85     [% ELSE %]
86     [% productstring = BLOCK %]product=[% product.name FILTER url_quote %][% END %]
87     [% END %]
88    
89     <p>
90     <a href="duplicates.cgi?[% productstring %]&amp;format=simple" target="somebugs">All-time Top 100</a> (loaded initially) |
91     <a href="duplicates.cgi?[% productstring %]&amp;format=simple&amp;sortby=delta&amp;reverse=1&amp;maxrows=100&amp;changedsince=14" target="somebugs">Hot in the last two weeks</a>
92     </p>
93    
94     <iframe name="somebugs" id="somebugs"
95     style="border: 2px black solid"
96     src="duplicates.cgi?[% productstring %]&amp;format=simple">
97     </iframe>
98    
99     <p>
100     If your [% terms.bug %] isn't there, search [% terms.Bugzilla %] by entering
101     a few key words having to do with your [% terms.bug %] in this box.
102     For example: <tt><b>pop3 mail</b></tt> or <tt><b>copy paste</b></tt>.
103     The results will appear above.
104     </p>
105    
106     [%# All bugs opened inside the past six months %]
107     <form action="buglist.cgi" method="get" target="somebugs">
108     <input type="hidden" name="format" value="simple">
109     <input type="hidden" name="order" value="relevance desc">
110     <input type="hidden" name="bug_status" value="__all__">
111     <input type="hidden" name="product" value="[% product.name FILTER html %]">
112     [% IF product.name == "Firefox" OR
113     product.name == "Thunderbird" OR
114     product.name == "Mozilla Application Suite" OR
115     product.name == "Camino" %]
116     <input type="hidden" name="product" value="Core">
117     <input type="hidden" name="product" value="Toolkit">
118     <input type="hidden" name="product" value="PSM">
119     <input type="hidden" name="product" value="NSPR">
120     <input type="hidden" name="product" value="NSS">
121     [% END %]
122     <input type="hidden" name="chfieldfrom" value="-6m">
123     <input type="hidden" name="chfieldto" value="Now">
124     <input type="hidden" name="chfield" value="[Bug creation]">
125     <input type="text" name="content" size="40">
126     <input type="submit" id="search" value="Search">
127     </form>
128    
129     <p>
130     Look through the search results. If you get the
131     <tt><b>[% terms.zeroSearchResults %]</b></tt> message, [% terms.Bugzilla %]
132     found no [% terms.bugs %] that
133     match. Check for typing mistakes, or try fewer or different keywords.
134     If you find [% terms.abug %] that looks the same as yours, please add
135     any useful extra information you have to it, rather than opening a new one.
136     </p>
137    
138    
139     <a name="step2"></a>
140     <h3>Step 2 of 3 - give information</h3>
141    
142     <p>
143     If you've tried a few searches and your [% terms.bug %] really isn't in
144     there, tell us all about it.
145     </p>
146    
147     <form method="post" action="post_bug.cgi">
148     <input type="hidden" name="format" value="guided">
149     <input type="hidden" name="assigned_to" value="">
150     <input type="hidden" name="priority"
151     value="[% default.priority FILTER html %]">
152     <input type="hidden" name="version"
153     value="[% default.version FILTER html %]">
154     <input type="hidden" name="token" value="[% token FILTER html %]">
155    
156     <table valign="top" cellpadding="5" cellspacing="5" border="0">
157    
158     <tr bgcolor="[% tablecolour %]">
159     <td align="right" valign="top">
160     <b>Product</b>
161     </td>
162     <td valign="top">
163     <input type="hidden" name="product" value="[% product.name FILTER html %]">
164     [% product.name FILTER html %]
165     </td>
166     </tr>
167    
168     <tr>
169     <td align="right" valign="top">
170     <b>Component</b>
171     </td>
172     <td valign="top">
173     <table border="0" cellpadding="0" cellspacing="0">
174     <tr>
175     <td valign="top">
176     <select name="component" id="component"
177     size="5" onchange="PutDescription()">
178     [% IF NOT default.component_ %]
179     [%# Various b.m.o. products have a "General" component,
180     which is a useful default. %]
181     [% default.component_ = "General" %]
182     [% END %]
183     [% FOREACH c = product.components %]
184     <option value="[% c.name FILTER html %]"
185     [% " selected=\"selected\"" IF c.name == default.component_ %]>
186     [% c.name FILTER html %]
187     </option>
188     [% END %]
189     </select>
190     </td>
191     <td valign="top" width="100%">
192     <div id="description" style="color: green; margin-left: 10px;
193     height: 5em; overflow: auto;">
194     <script type="text/javascript">
195     if ((document.getElementById) && (document.body.innerHTML)) {
196     document.write("\
197     Select a component to see its description here.");
198     }
199     </script>
200     </div>
201     </td>
202     </tr>
203     </table>
204    
205     <p>
206     The area where the problem occurs.
207     To pick the right component, you could use the same one as
208     similar [% terms.bugs %] you found in your search, or read the full list of
209     <a target="_blank" href="describecomponents.cgi?product=
210     [% product.name FILTER url_quote %]">component
211     descriptions</a> (opens in new window) if you need more help.
212     </p>
213     </td>
214     </tr>
215    
216     [%# We override rep_platform and op_sys for simplicity. The values chosen
217     are based on which are most common in the b.m.o database %]
218     [% rep_platform = [ "PC", "Macintosh", "All", "Other" ] %]
219    
220     <tr bgcolor="[% tablecolour %]">
221     <td align="right" valign="top">
222     <b>Hardware Platform</b>
223     </td>
224     <td valign="top">
225     [% PROCESS select sel = 'rep_platform' %]
226     </td>
227     </tr>
228    
229     [% op_sys = [ "Windows 2000", "Windows XP", "Windows Vista", "Windows 7",
230     "Mac OS X", "Linux", "All", "Other" ] %]
231    
232     <tr>
233     <td align="right" valign="top">
234     <b>Operating System</b>
235     </td>
236     <td valign="top">
237     [% PROCESS select sel = 'op_sys' %]
238     </td>
239     </tr>
240    
241     [% IF product.name.match("Firefox|Camino|Mozilla Application Suite") %]
242     [% matches = cgi.user_agent('Gecko/(\d+)') %]
243     [% buildid = cgi.user_agent() IF matches %]
244     [% END %]
245    
246     [%# Accept URL parameter build ID for non-browser products %]
247     [% IF cgi.param("buildid") %]
248     [% buildid = cgi.param("buildid") %]
249     [% END %]
250    
251     <tr bgcolor="[% tablecolour %]">
252     <td align="right" valign="top">
253     <b>Build Identifier</b>
254     </td>
255     <td valign="top">
256     <input type="text" size="80" name="buildid" value="[% buildid FILTER html %]">
257     <p>
258     This should identify the exact version of the product you were using.
259     If the above field is blank or you know it is incorrect, copy the
260     version text from the product's Help |
261     About menu (for browsers this will begin with "Mozilla/5.0...").
262     If the product won't start, instead paste the complete URL you downloaded
263     it from.
264     </p>
265     </td>
266     </tr>
267    
268     <tr>
269     <td align="right" valign="top">
270     <b>URL</b>
271     </td>
272     <td valign="top">
273     <input type="text" size="80" name="bug_file_loc" value="http://">
274     <p>
275     URL that demonstrates the problem you are seeing (optional).<br>
276     <b>IMPORTANT</b>: if the problem is with a broken web page, you need
277     to report it
278     <a href="https://bugzilla.mozilla.org/page.cgi?id=broken-website.html">a different way</a>.
279     </p>
280     </td>
281     </tr>
282    
283     <tr bgcolor="[% tablecolour %]">
284     <td align="right" valign="top">
285     <b>Summary</b>
286     </td>
287     <td valign="top">
288     <input type="text" size="80" name="short_desc" id="short_desc"
289     maxlength="255" spellcheck="true">
290     <p>
291     A sentence which summarises the problem.
292     Please be descriptive and use lots of keywords.
293     </p>
294     <p>
295     <tt>
296     <font color="#990000">Bad example</font>: mail crashed
297     </tt>
298     <br>
299     <tt>
300     <font color="#009900">Good example</font>:
301     crash if I close the mail window while checking for new POP mail
302     </tt>
303     </p>
304     </td>
305     </tr>
306    
307     <tr>
308     <td align="right" valign="top">
309     <b>Details</b>
310     </td>
311     <td valign="top">
312     [% INCLUDE global/textarea.html.tmpl
313     name = 'comment'
314     minrows = 6
315     cols = constants.COMMENT_COLS
316     %]
317     <p>
318     Expand on the Summary. Please be
319     as specific as possible about what is wrong.
320     </p>
321     <p>
322     <tt>
323     <font color="#990000">Bad example</font>: Mozilla crashed.
324     You suck!
325     </tt>
326     <br>
327     <tt>
328     <font color="#009900">Good example</font>: After a crash which
329     happened when I was sorting in the Bookmark Manager,<br> all of my
330     top-level bookmark folders beginning with the letters Q to Z are
331     no longer present.
332     </tt>
333     </p>
334     </td>
335     </tr>
336    
337     <tr bgcolor="[% tablecolour %]">
338     <td align="right" valign="top">
339     <b>Reproducibility</b>
340     </td>
341     <td valign="top">
342     <select name="reproducible">
343     <option name="AlwaysReproducible" value="Always">
344     Happens every time.
345     </option>
346     <option name="Sometimes" value="Sometimes">
347     Happens sometimes, but not always.
348     </option>
349     <option name="DidntTry" value="Didn't try">
350     Haven't tried to reproduce it.
351     </option>
352     <option name="NotReproducible" value="Couldn't Reproduce">
353     Tried, but couldn't reproduce it.
354     </option>
355     </select>
356     </td>
357     </tr>
358    
359     <tr>
360     <td align="right" valign="top">
361     <b>Steps to Reproduce</b>
362     </td>
363     <td valign="top">
364     [% INCLUDE global/textarea.html.tmpl
365     name = 'reproduce_steps'
366     minrows = 4
367     cols = constants.COMMENT_COLS
368     defaultcontent = "1.\n2.\n3."
369     %]
370     <p>
371     Describe how to reproduce the problem, step by
372     step. Include any special setup steps.
373     </p>
374     </td>
375     </tr>
376    
377     <tr bgcolor="[% tablecolour %]">
378     <td valign="top" align="right">
379     <b>Actual Results</b>
380     </td>
381     <td valign="top">
382     [% INCLUDE global/textarea.html.tmpl
383     name = 'actual_results'
384     minrows = 4
385     cols = constants.COMMENT_COLS
386     %]
387     <p>
388     What happened after you performed the steps above?
389     </p>
390     </td>
391     </tr>
392    
393     <tr>
394     <td valign="top" align="right">
395     <b>Expected Results</b>
396     </td>
397     <td valign="top">
398     [% INCLUDE global/textarea.html.tmpl
399     name = 'expected_results'
400     minrows = 4
401     cols = constants.COMMENT_COLS
402     %]
403     <p>
404     What should the software have done instead?
405     </p>
406     </td>
407     </tr>
408    
409     <tr bgcolor="[% tablecolour %]">
410     <td valign="top" align="right">
411     <b>Additional Information</b>
412     </td>
413     <td valign="top">
414     [% INCLUDE global/textarea.html.tmpl
415     name = 'additional_info'
416     minrows = 8
417     cols = constants.COMMENT_COLS
418     %]
419     <p>
420     Add any additional information you feel may be
421     relevant to this [% terms.bug %], such as the <b>theme</b> you were
422     using (does the [% terms.bug %] still occur
423     with the default theme?), a
424     <b><a href="http://kb.mozillazine.org/Quality_Feedback_Agent">Talkback crash ID</a></b>, or special
425     information about <b>your computer's configuration</b>. Any information
426     longer than a few lines, such as a <b>stack trace</b> or <b>HTML
427     testcase</b>, should be added
428     using the "Add an Attachment" link on the [% terms.bug %], after
429     it is filed. If you believe that it's relevant, please also include
430     your build configuration, obtained by typing <tt>about:buildconfig</tt>
431     into your URL bar.
432     <br>
433     <br>
434     If you are reporting a crash, note the module in
435     which the software crashed (e.g., <tt>Application Violation in
436     gkhtml.dll</tt>).
437     </p>
438     </td>
439     </tr>
440    
441     <tr>
442     <td valign="top" align="right">
443     <b>Severity</b>
444     </td>
445     <td valign="top">
446     <select name="bug_severity">
447     <option name="critical" value="critical">
448     Critical: The software crashes, hangs, or causes you to
449     lose data.
450     </option>
451     <option name="major" value="major">
452     Major: A major feature is broken.
453     </option>
454     <option name="normal" value="normal" selected="selected">
455     Normal: It's [% terms.abug %] that should be fixed.
456     </option>
457     <option name="minor" value="minor">
458     Minor: Minor loss of function, and there's an easy workaround.
459     </option>
460     <option name="trivial" value="trivial">
461     Trivial: A cosmetic problem, such as a misspelled word or
462     misaligned text.
463     </option>
464     <option name="enhancement" value="enhancement">
465     Enhancement: Request for new feature or enhancement.
466     </option>
467     </select>
468     <p>
469     Say how serious the problem is, or if your [% terms.bug %] is a
470     request for a new feature.
471     </p>
472     </td>
473     </tr>
474     </table>
475    
476    
477     <a name="step3"></a>
478     <h3>Step 3 of 3 - submit the [% terms.bug %] report</h3>
479    
480     <p>
481     <input type="submit" id="report" value=" Submit [% terms.Bug %] Report "
482     onclick="if (this.form.comment.value == '')
483     { alert('Please enter some details about this [% terms.bug %].');
484     this.form.comment.focus();
485     return false; } return true;">
486     </p>
487    
488     <p>
489     That's it! Thanks very much. You'll be notified by email about any
490     progress that is made on fixing your [% terms.bug %].
491    
492     <p>
493     Please be warned
494     that we get a lot of [% terms.bug %] reports filed - it may take quite a
495     while to get around to yours. You can help the process by making sure your
496     [%+ terms.bug %] is
497     complete and easy to understand, and by quickly replying to any questions
498     which may arrive by email.
499     </p>
500    
501     </form>
502    
503     [% PROCESS global/footer.html.tmpl %]
504    
505     [%############################################################################%]
506     [%# Block for SELECT fields #%]
507     [%############################################################################%]
508    
509     [% BLOCK select %]
510     <select name="[% sel %]">
511     [%- IF default.$sel %]
512     <option value="[% default.$sel FILTER html %]" selected="selected">
513     [% default.$sel FILTER html -%]
514     </option>
515     [% END %]
516     [%- FOREACH x = $sel %]
517     [% NEXT IF x == default.$sel %]
518     <option value="[% x FILTER html %]">
519     [% x FILTER html -%]
520     </option>
521     [%- END %]
522     </select>
523     [% END %]

  ViewVC Help
Powered by ViewVC 1.1.30