Aklapper has uploaded a new change for review. https://gerrit.wikimedia.org/r/74360
Change subject: Configure Bugzilla's Guided Bug Entry Form ...................................................................... Configure Bugzilla's Guided Bug Entry Form So it can actually be advertised to new Bugzilla users. This is an initial version, smaller tweaks can be done later. Bug: 36762 Change-Id: I79344b0ab4b9d0bc05bbedbf9eb60bb2a604d9cf --- A template/en/custom/bug/create/create-guided.html.tmpl 1 file changed, 425 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/wikimedia/bugzilla/modifications refs/changes/60/74360/1 diff --git a/template/en/custom/bug/create/create-guided.html.tmpl b/template/en/custom/bug/create/create-guided.html.tmpl new file mode 100644 index 0000000..5ff2213 --- /dev/null +++ b/template/en/custom/bug/create/create-guided.html.tmpl @@ -0,0 +1,425 @@ +[%# 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 <[email protected]> + # Christine Begle <[email protected]> + #%] + +[%# 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 = "Report $terms.abug or request a new feature" + onload = "PutDescription()" + style = "#somebugs { width: 100%; height: 300px }" + %] + +[% style = "" %] + +[% tablecolor = "#d9eee9" %] + +[%# 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> + +<h2 style="font-size:1.6em; font-family:sans-serif; padding:2px; line-height:1.2em; border-bottom:1px solid rgb(170, 170, 170);" id="header">Report a software bug or request a new feature</h3> + + [% IF product.name == "MediaWiki" OR + product.name == "MediaWiki extensions" %] + + <p style="text-align:center; background-image: url('http://upload.wikimedia.org/wikipedia/commons/thumb/b/b6/Gnome_User_Speech.svg/45px-Gnome_User_Speech.svg.png'); background-repeat: no-repeat; padding-left: 30px; display: block; border: 2px solid #bfb1a3; color:black; margin-bottom:10px;">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> + [% END %] + [% IF product.name == "Wikimedia" %] + <p style="text-align:center; background-image: url('http://upload.wikimedia.org/wikipedia/commons/thumb/b/b6/Gnome_User_Speech.svg/45px-Gnome_User_Speech.svg.png'); background-repeat: no-repeat; padding-left: 30px; display: block; border: 2px solid #bfb1a3; color:black; margin-bottom:10px;">Looking for general help on Wikipedia?<br>Visit the <a href="https://en.wikipedia.org/wiki/Wikipedia:Village_pump">Wikipedia Village Pump</a> or <a href="http://en.wikipedia.org/wiki/Wikipedia:Help_desk">Help Desk</a> to discuss.</p> + [% END %] + +<p> +Newcomers to Bugzilla are encouraged to read <a target="_blank" href="https://www.mediawiki.org/wiki/How_to_report_a_bug">these guidelines</a> prior to creating a [% terms.bug %] report here. +</p> + +<h3 style="font-size:150%; font-family:sans-serif; padding:2px; line-height:1.5em; border-bottom:1px solid rgb(170, 170, 170);" id="step1">Step 1 of 3: Search if your issue has already been reported</h3> + +<p> + Please search if your [% terms.bug %] or feature request has been already reported + before by entering some search words in this box that have to + do with your issue, for example <span style="font-family:monospace; background-color:#eeeeee;">upload error</span> or <span style="font-family:monospace; background-color:#eeeeee;">search empty</span>. + Then press the "Search" button. The results will appear in the box 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> + +<iframe name="somebugs" id="somebugs" + style="border: 1px grey solid; margin-top: 10px; margin-bottom: 10px; padding:5px" + src=""> +</iframe> + +<p> + You may try different words (e.g. "remove" instead of "delete"), or drop the last letter (so "delet" will find "delete" and "deleting"). + If you find [% terms.abug %] report in the search results that looks the same as yours, please add + any useful extra information to it, rather than creating a new report. +</p> + + +<h3 style="font-size:150%; font-family:sans-serif; padding:2px; line-height:1.5em; border-bottom:1px solid rgb(170, 170, 170);" id="step2">Step 2 of 3: Describe the problem</h3> + +<p> + If you could not find an already existing report, + tell us more about your issue. +</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 style="vertical-align:top; padding:5px; border-spacing:5px; border:0px; margin-right:0px"> + + <tr style="background-color:[% tablecolor %];"> + <td style="text-align:right; vertical-align:top"> + <span style="font-weight:bold;">Product</span> + </td> + <td style="vertical-align:top"> + <input type="hidden" name="product" value="[% product.name FILTER html %]"> + [% product.name FILTER html %] + </td> + </tr> + + <tr> + <td style="text-align:right; vertical-align:top"> + <span style="font-weight:bold;">Component</span> + </td> + <td style="vertical-align:top"> + <p> + The area where the issue occurs. If you are unsure, just use "General/Unknown". + You could also use the same one as + similar [% terms.bugs %] you found when searching above, or read the list of + <a target="_blank" href="describecomponents.cgi?product= + [% product.name FILTER uri %]">component + descriptions</a>. + </p> + <table style="border:0px; padding:0px; border-spacing:0px; margin-right:0px"> + <tr> + <td style="vertical-align: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 style="vertical-align:top; width:100px"> + <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> + </td> + </tr> + + <tr style="background-color:[% tablecolor %];"> + <td style="text-align:right; vertical-align:top"> + <span style="font-weight:bold;">Summary</span> + </td> + <td style="vertical-align:top"> + <p> + A sentence which summarizes the issue. + </p> + <p> + <span>Good example:</span> + <span style="font-family:monospace; background-color:#eeeeee;"> + Changing gender does not update the preferences + </span>; + <span>Bad example:</span> + <span style="font-family:monospace; background-color:#eeeeee;"> + Problem with website + </span> + </p> + <input type="text" size="80" name="short_desc" id="short_desc" + maxlength="255" spellcheck="true"> + </td> + </tr> + + <tr> + <td style="text-align:right; vertical-align:top"> + <span style="font-weight:bold;">Steps to Reproduce</span> + </td> + <td style="vertical-align:top"> + <p> + Describe how to reproduce the problem, step by + step. Include any special setup steps. + </p> + [% INCLUDE global/textarea.html.tmpl + name = 'reproduce_steps' + minrows = 4 + cols = constants.COMMENT_COLS + defaultcontent = "1.\n2.\n3.\n4." + %] + </td> + </tr> + + <tr style="background-color:[% tablecolor %];"> + <td style="text-align:right; vertical-align:top"> + <span style="font-weight:bold;">Actual Results</span> + </td> + <td style="vertical-align:top"> + <p> + What happened after you performed the steps above? + </p> + [% INCLUDE global/textarea.html.tmpl + name = 'actual_results' + minrows = 3 + cols = constants.COMMENT_COLS + %] + </td> + </tr> + + <tr> + <td style="text-align:right; vertical-align:top"> + <span style="font-weight:bold;">Expected Results</span> + </td> + <td style="vertical-align:top"> + <p> + What did you expect to happen instead? + </p> + [% INCLUDE global/textarea.html.tmpl + name = 'expected_results' + minrows = 3 + cols = constants.COMMENT_COLS + %] + </td> + </tr> + + <tr style="background-color:[% tablecolor %];"> + <td style="text-align:right; vertical-align:top"> + <span style="font-weight:bold;">Severity</span> + </td> + <td style="vertical-align:top"> + <p> + Say how serious the problem is, or if your [% terms.bug %] is a + request for new functionality. + </p> + <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"> + 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" selected="selected"> + Enhancement: Request for new functionality or enhancement. + </option> + </select> + </td> + </tr> + + <tr> + <td style="text-align:right; vertical-align:top"> + <span style="font-weight:bold;">Reproducibility</span><span> (optional)</span> + </td> + <td style="vertical-align:top"> + <p> + If you had time to test if the problem happens more than only once. + </p> + <select name="reproducible"> + <option name="DidntTry" value="Didn't try"> + I have not tried to reproduce it. + </option> + <option name="AlwaysReproducible" value="Always"> + I have tried more than once and it happens every time. + </option> + <option name="Sometimes" value="Sometimes"> + Problem happens sometimes, but not always. + </option> + <option name="NotReproducible" value="Couldn't Reproduce"> + I have tried, but I could not reproduce it. + </option> + </select> + </td> + </tr> + + [% cf_browser = [ "---", "Apple Safari", "Firefox", "Google Chrome", "Internet Explorer", "Opera", "Other" ] %] + + <tr style="background-color:[% tablecolor %];"> + <td style="text-align:right; vertical-align:top"> + <span style="font-weight:bold;">Web browser</span><span> (optional)</span> + </td> + <td style="vertical-align:top"> + <p> + The web browser that you use for internet pages. + </p> + [% PROCESS select sel = 'cf_browser' %] + </td> + </tr> + + <tr> + <td style="text-align:right; vertical-align:top"> + <span style="font-weight:bold;">URL</span><span> (optional)</span> + </td> + <td style="vertical-align:top"> + <p> + A link that shows the problem that you are seeing. + </p> + <input type="text" size="80" name="bug_file_loc" value="http://"> + </td> + </tr> + + <tr style="background-color:[% tablecolor %];"> + <td style="text-align:right; vertical-align:top"> + <span style="font-weight:bold;">Additional Information</span><span> (optional)</span> + </td> + <td style="vertical-align:top"> + <p> + Add any additional information you feel may be + relevant to this [% terms.bug %], such as a potential <span style="font-weight:bold;">skin</span> you were + using (does the [% terms.bug %] still occur + with the default theme?), or special + information about <span style="font-weight:bold;">your computer's configuration</span>. Any information + longer than a few lines, such as a <span style="font-weight:bold;">HTML testcase</span>, <a href="http://www.mediawiki.org/wiki/Manual:How_to_debug"><span style="font-weight:bold;">debug log file</span> or <span style="font-weight:bold;">stack trace</span></a>, should be added + using the "Add an Attachment" link on the [% terms.bug %] report, after + it is filed. + </p> + [% INCLUDE global/textarea.html.tmpl + name = 'additional_info' + minrows = 3 + cols = constants.COMMENT_COLS + %] + </td> + </tr> + + [% Hook.process('form') %] +</table> + + +<h3 style="font-size:150%; font-family:sans-serif; padding:2px; line-height:1.5em; border-bottom:1px solid rgb(170, 170, 170);" id="step3">Step 3 of 3: Submit the report</h3> + +<p> + <input type="submit" id="report" value=" Submit Report " + onclick="if (this.form.comment.value == '') + { alert('Please enter some details about this [% terms.bug %] or feature request first.'); + this.form.comment.focus(); + return false; } return true;"> +</p> + +<p> + Submit your report by pressing the "Submit Report" button. + That's it! Thanks very much. You will be notified by email about any + progress that is made on fixing your [% terms.bug %] or feature request. + +<p> + Please be warned + that a lot of [% terms.bug %] reports get 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> +<p> + If you feel like trying to write a software + patch for the problem yourself, check + <a target="_blank" href="https://www.mediawiki.org/wiki/Developer_access">these guidelines</a>. +</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 %] -- To view, visit https://gerrit.wikimedia.org/r/74360 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I79344b0ab4b9d0bc05bbedbf9eb60bb2a604d9cf Gerrit-PatchSet: 1 Gerrit-Project: wikimedia/bugzilla/modifications Gerrit-Branch: master Gerrit-Owner: Aklapper <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
