Page MenuHomePhabricator

create-guided.html.tmpl

Authored By
• bzimport
Nov 22 2014, 12:29 AM
Size
13 KB
Referenced Files
None
Subscribers
None

create-guided.html.tmpl

[%# 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 <gerv@gerv.net>
# Christine Begle <cbegle@mozilla.org>
#%]
[%# 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()"
style = "#somebugs { width: 100%; height: 300px }"
%]
[% style = "" %]
[% tablecolor = "#CDFF6F" %]
[%# This script displays the descriptions for selected components. %]
<script type="text/javascript">
var descriptions = [
[% FOREACH c = product.components %]
'[% c.description FILTER js %]',
[% END %]
];
function PutDescription() {
if ((document.getElementById) && (document.body.innerHTML)) {
var componentIndex = document.getElementById('component').selectedIndex;
if (componentIndex != -1) {
var description = document.getElementById('description');
description.innerHTML = descriptions[componentIndex];
}
}
}
</script>
<h3 id="header">File a bug report</h3>
[% IF product.name == "MediaWiki" OR
product.name == "MediaWiki extensions" %]
<hr>
<p style="text-align:center">Looking for technical support or help getting your site to work with the MediaWiki software?<br>Visit the <a href="https://www.mediawiki.org/wiki/Project:Support_desk">MediaWiki Support Desk</a> before filing a bug report.</p>
<hr style="margin-bottom:15px;">
[% END %]
[% IF product.name == "Wikimedia" %]
<hr>
<p style="text-align:center">Looking for general help on Wikipedia?<br>Visit the <a href="https://en.wikipedia.org/wiki/Wikipedia:Village_pump">Wikipedia Village Pump</a> before filing a bug report.</p>
<hr style="margin-bottom:15px;">
[% END %]
<p>
<a target="_blank" href="https://www.mediawiki.org/wiki/How_to_report_a_bug">These guidelines</a> explain how to write effective [% terms.bug %] reports.
</p>
<h3 id="step1">Step 1 of 3 - Has your bug already been reported?</h3>
<p>
Please search if your [% terms.bug %] has been already reported
before by entering some search words in this box that have to
do with your [% terms.bug %], and press the "Search" button.
For example: <code>upload error</code> or <code>search empty</code>.
The results will appear below.
</p>
<form action="buglist.cgi" method="get" target="somebugs">
<input type="hidden" name="format" value="simple">
<input type="hidden" name="order" value="relevance desc">
<input type="hidden" name="bug_status" value="__all__">
<input type="hidden" name="product" value="[% product.name FILTER html %]">
[% IF product.name == "MediaWiki" OR
product.name == "Wikimedia" %]
<input type="hidden" name="product" value="MediaWiki extensions">
[% END %]
<input type="hidden" name="chfieldfrom" value="-12m">
<input type="hidden" name="chfieldto" value="Now">
<input type="hidden" name="chfield" value="[Bug creation]">
<input type="text" name="content" size="50">
<input type="submit" id="search" value="Search">
</form>
<p></p>
<iframe name="somebugs" id="somebugs"
style="border: 2px black solid"
src="">
</iframe>
<p>
Look through the search results. If you get the
<code>[% terms.zeroSearchResults %]</code> message, no
bug reports were found that
match. Check for typing mistakes, or try different words (e.g. remove "instead" of "delete"), or drop the last letter (so "delet" will cover "delete" and "deleting").
If you find [% terms.abug %] report that looks the same as yours, please add
any useful extra information you have to it, rather than opening a new one.
</p>
<h3 id="step2">Step 2 of 3 - Provide information</h3>
<p>
If you have tried searches and your [% terms.bug %] is not listed,
tell us more about it.
</p>
<form method="post" action="post_bug.cgi">
<input type="hidden" name="format" value="guided">
<input type="hidden" name="assigned_to" value="">
<input type="hidden" name="priority"
value="[% default.priority FILTER html %]">
<input type="hidden" name="version"
value="[% default.version FILTER html %]">
<input type="hidden" name="token" value="[% token FILTER html %]">
<table valign="top" cellpadding="5" cellspacing="5" border="0">
<tr style="background-color:[% tablecolor %];">
<td align="right" valign="top">
<b>Product</b>
</td>
<td valign="top">
<input type="hidden" name="product" value="[% product.name FILTER html %]">
[% product.name FILTER html %]
</td>
</tr>
<tr>
<td align="right" valign="top">
<b>Component</b>
</td>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<select name="component" id="component"
size="5" onchange="PutDescription()">
[% IF NOT default.component_ %]
[%# Various b.m.o. products have a "General" component,
which is a useful default. %]
[% default.component_ = "General" %]
[% END %]
[% FOREACH c = product.components %]
<option value="[% c.name FILTER html %]"
[% " selected=\"selected\"" IF c.name == default.component_ %]>
[% c.name FILTER html %]
</option>
[% END %]
</select>
</td>
<td valign="top" width="100%">
<div id="description" style="color: green; margin-left: 10px;
height: 5em; overflow: auto;">
<script type="text/javascript">
if ((document.getElementById) && (document.body.innerHTML)) {
document.write("\
Select a component to see its description here.");
}
</script>
</div>
</td>
</tr>
</table>
<p>
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
<a target="_blank" href="describecomponents.cgi?product=
[% product.name FILTER uri %]">component
descriptions</a> (opens in new window) if you need more help.
</p>
</td>
</tr>
<tr style="background-color:[% tablecolor %];">
<td align="right" valign="top">
<b>Summary</b>
</td>
<td valign="top">
<input type="text" size="80" name="short_desc" id="short_desc"
maxlength="255" spellcheck="true">
<p>
A sentence which summarizes the problem.
Please be descriptive.
</p>
<p>
<span>Good example:</span>
<code>
Selecting gender is not functional
</code>;
<span>Bad example:</span>
<code>
Problem with website
</code>
</p>
</td>
</tr>
<tr>
<td align="right" valign="top">
<b>Steps to Reproduce</b>
</td>
<td valign="top">
[% INCLUDE global/textarea.html.tmpl
name = 'reproduce_steps'
minrows = 4
cols = constants.COMMENT_COLS
defaultcontent = "1.\n2.\n3.\n4."
%]
<p>
Describe how to reproduce the problem, step by
step. Include any special setup steps.
</p>
</td>
</tr>
<tr style="background-color:[% tablecolor %];">
<td valign="top" align="right">
<b>Actual Results</b>
</td>
<td valign="top">
[% INCLUDE global/textarea.html.tmpl
name = 'actual_results'
minrows = 3
cols = constants.COMMENT_COLS
%]
<p>
What happened after you performed the steps above?
</p>
</td>
</tr>
<tr>
<td valign="top" align="right">
<b>Expected Results</b>
</td>
<td valign="top">
[% INCLUDE global/textarea.html.tmpl
name = 'expected_results'
minrows = 3
cols = constants.COMMENT_COLS
%]
<p>
What should the software have done instead?
</p>
</td>
</tr>
<tr style="background-color:[% tablecolor %];">
<td align="right" valign="top">
<b>Reproducibility</b>
</td>
<td valign="top">
<select name="reproducible">
<option name="AlwaysReproducible" value="Always">
Happens every time.
</option>
<option name="Sometimes" value="Sometimes">
Happens sometimes, but not always.
</option>
<option name="DidntTry" value="Didn't try">
Haven't tried to reproduce it.
</option>
<option name="NotReproducible" value="Couldn't Reproduce">
Tried, but couldn't reproduce it.
</option>
</select>
</td>
</tr>
<tr>
<td valign="top" align="right">
<b>Severity</b>
</td>
<td valign="top">
<select name="bug_severity">
<option name="blocker" value="blocker">
Blocker: This completely blocks software development or testing work.
</option>
<option name="critical" value="critical">
Critical: It crashes, hangs, or makes you irrevertibly lose data.
</option>
<option name="major" value="major">
Major: A major feature is broken that is used by many people.
</option>
<option name="normal" value="normal" selected="selected">
Normal: An average [% terms.abug %] that should be fixed.
</option>
<option name="minor" value="minor">
Minor: Minor loss of function, and there is an easy workaround.
</option>
<option name="trivial" value="trivial">
Trivial: A cosmetic problem, such as a misspelled word or
misaligned text.
</option>
<option name="enhancement" value="enhancement">
Enhancement: Request for new feature or enhancement.
</option>
</select>
<p>
Say how serious the problem is, or if your [% terms.bug %] is a
request for a new feature.
</p>
</td>
</tr>
[% cf_browser = [ "---", "Apple Safari", "Firefox", "Google Chrome", "Internet Explorer", "Opera", "Other" ] %]
<tr style="background-color:[% tablecolor %];">
<td align="right" valign="top">
<b>Web browser</b>
</td>
<td valign="top">
[% PROCESS select sel = 'cf_browser' %]
</td>
</tr>
<tr>
<td align="right" valign="top">
<b>URL</b>
</td>
<td valign="top">
<input type="text" size="80" name="bug_file_loc" value="http://">
<p>
A link that shows the problem that you are seeing (optional).
</p>
</td>
</tr>
<tr style="background-color:[% tablecolor %];">
<td valign="top" align="right">
<b>Additional Information</b>
</td>
<td valign="top">
[% INCLUDE global/textarea.html.tmpl
name = 'additional_info'
minrows = 3
cols = constants.COMMENT_COLS
%]
<p>
Add any additional information you feel may be
relevant to this [% terms.bug %], such as a potential <b>skin</b> you were
using (does the [% terms.bug %] still occur
with the default theme?), or special
information about <b>your computer's configuration</b>. Any information
longer than a few lines, such as a <b>stack trace</b> or <b>HTML
testcase</b>, should be added
using the "Add an Attachment" link on the [% terms.bug %], after
it is filed.
</p>
</td>
</tr>
[% Hook.process('form') %]
</table>
<h3 id="step3">Step 3 of 3 - submit the [% terms.bug %] report</h3>
<p>
<input type="submit" id="report" value=" Submit [% terms.Bug %] Report "
onclick="if (this.form.comment.value == '')
{ alert('Please enter some details about this [% terms.bug %].');
this.form.comment.focus();
return false; } return true;">
</p>
<p>
That's it! Thanks very much. You'll be notified by email about any
progress that is made on fixing your [% terms.bug %].
<p>
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 %] report is
complete and easy to understand, and by quickly replying to any questions
which may arrive by email.
</p>
</form>
[% PROCESS global/footer.html.tmpl %]
[%############################################################################%]
[%# Block for SELECT fields #%]
[%############################################################################%]
[% BLOCK select %]
<select name="[% sel %]">
[%- IF default.$sel %]
<option value="[% default.$sel FILTER html %]" selected="selected">
[% default.$sel FILTER html -%]
</option>
[% END %]
[%- FOREACH x = $sel %]
[% NEXT IF x == default.$sel %]
<option value="[% x FILTER html %]">
[% x FILTER html -%]
</option>
[%- END %]
</select>
[% END %]

File Metadata

Mime Type
text/html
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9014
Default Alt Text
create-guided.html.tmpl (13 KB)

Event Timeline