602 lines
17 KiB
Cheetah
602 lines
17 KiB
Cheetah
[%# 1.0@bugzilla.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 <gerv@gerv.net>
|
|
# Vaskin Kissoyan <vkissoyan@yahoo.com>
|
|
#%]
|
|
|
|
[% PROCESS global/variables.none.tmpl %]
|
|
|
|
[% PROCESS bug/time.html.tmpl %]
|
|
|
|
<script type="text/javascript" language="JavaScript">
|
|
<!--
|
|
|
|
/* Outputs a link to call replyToComment(); used to reduce HTML output */
|
|
function addReplyLink(id) {
|
|
/* XXX this should really be updated to use the DOM Core's
|
|
* createElement, but finding a container isn't trivial */
|
|
document.write('[<a href="#add_comment" onclick="replyToComment(' +
|
|
id + ');">reply<' + '/a>]');
|
|
}
|
|
|
|
/* Adds the reply text to the `comment' textarea */
|
|
function replyToComment(id) {
|
|
/* pre id="comment_name_N" */
|
|
var text_elem = document.getElementById('comment_text_'+id);
|
|
var text = getText(text_elem);
|
|
|
|
/* make sure we split on all newlines -- IE or Moz use \r and \n
|
|
* respectively */
|
|
text = text.split(/\r|\n/);
|
|
|
|
var replytext = "";
|
|
for (var i=0; i < text.length; i++) {
|
|
replytext += "> " + text[i] + "\n";
|
|
}
|
|
|
|
replytext = "(In reply to comment #" + id + ")\n" + replytext + "\n";
|
|
|
|
[% IF Param("insidergroup") && UserInGroup(Param("insidergroup")) %]
|
|
if (document.getElementById('isprivate-'+id).checked) {
|
|
document.getElementById('newcommentprivacy').checked = 'checked';
|
|
}
|
|
[% END %]
|
|
|
|
/* <textarea id="comment"> */
|
|
var textarea = document.getElementById('comment');
|
|
textarea.value += replytext;
|
|
|
|
textarea.focus();
|
|
}
|
|
|
|
if (!Node) {
|
|
/* MSIE doesn't define Node, so provide a compatibility array */
|
|
var Node = {
|
|
TEXT_NODE: 3,
|
|
ENTITY_REFERENCE_NODE: 5
|
|
};
|
|
}
|
|
|
|
/* Concatenates all text from element's childNodes. This is used
|
|
* instead of innerHTML because we want the actual text (and
|
|
* innerText is non-standard) */
|
|
function getText(element) {
|
|
var child, text = "";
|
|
for (var i=0; i < element.childNodes.length; i++) {
|
|
child = element.childNodes[i];
|
|
var type = child.nodeType;
|
|
if (type == Node.TEXT_NODE || type == Node.ENTITY_REFERENCE_NODE) {
|
|
text += child.nodeValue;
|
|
} else {
|
|
/* recurse into nodes of other types */
|
|
text += getText(child);
|
|
}
|
|
}
|
|
return text;
|
|
}
|
|
|
|
[% IF UserInGroup(Param('timetrackinggroup')) %]
|
|
var fRemainingTime = [% bug.remaining_time %]; // holds the original value
|
|
function adjustRemainingTime() {
|
|
// subtracts time spent from remaining time
|
|
var new_time;
|
|
|
|
new_time =
|
|
fRemainingTime - document.changeform.work_time.value;
|
|
// get upto 2 decimal places
|
|
document.changeform.remaining_time.value =
|
|
Math.round(new_time * 100)/100;
|
|
}
|
|
|
|
function updateRemainingTime() {
|
|
// if the remaining time is changed manually, update fRemainingTime
|
|
fRemainingTime = document.changeform.remaining_time.value;
|
|
}
|
|
|
|
[% END %]
|
|
|
|
//-->
|
|
</script>
|
|
|
|
<form name="changeform" method="post" action="process_bug.cgi">
|
|
|
|
<input type="hidden" name="delta_ts" value="[% bug.delta_ts %]">
|
|
<input type="hidden" name="longdesclength" value="[% bug.longdescs.size %]">
|
|
<input type="hidden" name="id" value="[% bug.bug_id %]">
|
|
|
|
[%# *** Hardware Reporter Product OS AddCC *** %]
|
|
|
|
<table cellspacing="1" cellpadding="1" border="0">
|
|
<tr>
|
|
<td align="right">
|
|
[% IF Param('useclassification') %]
|
|
[% IF bug.classification_id != "1" %]
|
|
<b>[[% bug.classification FILTER html %]]</b>
|
|
[% END %]
|
|
[% END %]
|
|
<b>[% terms.Bug %]#:</b>
|
|
</td>
|
|
<td>
|
|
<a href="[% Param('urlbase') %]show_bug.cgi?id=[% bug.bug_id %]">
|
|
[% bug.bug_id %]</a>
|
|
[% IF Param("usebugaliases") %]
|
|
<label title="a name for the [% terms.bug %] that can be used in place of its ID number, f.e. when adding it to a list of dependencies">
|
|
<b>alias:</b>
|
|
<input name="alias" value="[% bug.alias FILTER html %]" size="20" maxlength="20">
|
|
</label>
|
|
[% END %]
|
|
</td>
|
|
|
|
<td> </td>
|
|
|
|
<td align="right">
|
|
<b><u>H</u>ardware:</b>
|
|
</td>
|
|
[% PROCESS select selname => "rep_platform" accesskey => "h" %]
|
|
|
|
<td align="right">
|
|
<b>Reporter:</b>
|
|
</td>
|
|
<td>
|
|
<a href="mailto:[% bug.reporter.email FILTER html %]">
|
|
[% bug.reporter.identity FILTER html %]</a>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="right">
|
|
<b><u>P</u>roduct:</b>
|
|
</td>
|
|
[% PROCESS select selname => "product" accesskey => "p" %]
|
|
|
|
<td align="right">
|
|
<b><u>O</u>S:</b>
|
|
</td>
|
|
[% PROCESS select selname => "op_sys" accesskey => "o" %]
|
|
|
|
<td align="right">
|
|
<b><u>A</u>dd CC:</b>
|
|
</td>
|
|
<td>
|
|
[% INCLUDE global/userselect.html.tmpl
|
|
name => "newcc"
|
|
value => ""
|
|
accesskey => "a"
|
|
size => 30
|
|
emptyok => 1
|
|
%]
|
|
</td>
|
|
</tr>
|
|
|
|
[%# *** Component Version CC Priority Severity AssignedTo Milestone *** %]
|
|
|
|
<tr>
|
|
<td align="right">
|
|
<b>
|
|
<a href="describecomponents.cgi?product=[% bug.product FILTER url_quote %]">
|
|
Co<u>m</u>ponent</a>:
|
|
</b>
|
|
</td>
|
|
[% PROCESS select selname => "component" accesskey => "m" %]
|
|
|
|
<td align="right">
|
|
<b><u>V</u>ersion:</b>
|
|
</td>
|
|
[% PROCESS select selname => "version" accesskey => "v" %]
|
|
|
|
<td rowspan="4" align="right" valign="top">
|
|
<b>CC:</b>
|
|
</td>
|
|
<td rowspan="4" valign="top">
|
|
[% IF bug.cc %]
|
|
<select name="cc" multiple="multiple" size="5">
|
|
[% FOREACH c = bug.cc %]
|
|
<option value="[% c FILTER html %]">[% c FILTER html %]</option>
|
|
[% END %]
|
|
</select>
|
|
<br>
|
|
<input type="checkbox" name="removecc">Remove selected CCs
|
|
<br>
|
|
[% ELSE %]
|
|
<input type="hidden" name="cc" value="">
|
|
[% END %]
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="right">
|
|
<b>
|
|
<a href="page.cgi?id=fields.html#status">Status</a>:
|
|
</b>
|
|
</td>
|
|
<td>[% bug.bug_status FILTER html %]</td>
|
|
<td> </td>
|
|
|
|
<td align="right">
|
|
<b><a href="page.cgi?id=fields.html#priority">Pr<u>i</u>ority</a>:</b>
|
|
</td>
|
|
[% PROCESS select selname => "priority" accesskey => "i" %]
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="right">
|
|
<b>
|
|
<a href="page.cgi?id=fields.html#resolution">Resolution</a>:
|
|
</b>
|
|
</td>
|
|
<td>
|
|
[% bug.resolution FILTER html %]
|
|
[% IF bug.resolution == "DUPLICATE" %]
|
|
of [% terms.bug %] [%+ "${bug.dup_id}" FILTER bug_link(bug.dup_id) %]
|
|
[% END %]
|
|
</td>
|
|
<td> </td>
|
|
|
|
<td align="right">
|
|
<b><a href="page.cgi?id=fields.html#bug_severity">S<u>e</u>verity</a>:</b>
|
|
</td>
|
|
[% PROCESS select selname = "bug_severity" accesskey => "e" %]
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="right">
|
|
<b>
|
|
<a href="page.cgi?id=fields.html#assigned_to">Assigned To</a>:
|
|
</b>
|
|
</td>
|
|
<td>[% bug.assigned_to.identity FILTER html %]</td>
|
|
<td> </td>
|
|
|
|
[% IF Param("usetargetmilestone") && bug.target_milestone %]
|
|
<td align="right">
|
|
<b>
|
|
[% IF bug.milestoneurl %]
|
|
<a href="[% bug.milestoneurl FILTER html %]">
|
|
[% END %]
|
|
<u>T</u>arget Milestone[% "</a>" IF bug.milestoneurl %]:
|
|
</b>
|
|
</td>
|
|
[% PROCESS select selname = "target_milestone" accesskey => "t" %]
|
|
[% ELSE %]
|
|
<td colspan="3"> </td>
|
|
[% END %]
|
|
</tr>
|
|
|
|
[%# *** QAContact URL Requests Summary Whiteboard Keywords *** %]
|
|
|
|
[% IF Param('useqacontact') %]
|
|
<tr>
|
|
<td align="right">
|
|
<b><u>Q</u>A Contact:</b>
|
|
</td>
|
|
<td colspan="7">
|
|
[% INCLUDE global/userselect.html.tmpl
|
|
name => "qa_contact"
|
|
value => bug.qa_contact.email
|
|
accesskey => "q"
|
|
size => 60
|
|
emptyok => 1
|
|
%]
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
|
|
<tr>
|
|
<td align="right">
|
|
<b>
|
|
[% IF bug.bug_file_loc %]
|
|
<a href="[% bug.bug_file_loc FILTER html %]"><u>U</u>RL</a>:
|
|
[% ELSE %]
|
|
<u>U</u>RL:
|
|
[% END %]
|
|
</b>
|
|
</td>
|
|
<td colspan="5">
|
|
<input name="bug_file_loc" accesskey="u"
|
|
value="[% bug.bug_file_loc FILTER html %]" size="60">
|
|
</td>
|
|
<td rowspan="4" colspan="2" valign="top">
|
|
[% IF bug.flag_types.size > 0 %]
|
|
[% PROCESS "flag/list.html.tmpl"
|
|
flag_types = bug.flag_types
|
|
any_flags_requesteeble = bug.any_flags_requesteeble %]
|
|
[% END %]
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="right">
|
|
<b><u>S</u>ummary:</b>
|
|
</td>
|
|
<td colspan="5">
|
|
<input name="short_desc" accesskey="s"
|
|
value="[% bug.short_desc FILTER html %]" size="60">
|
|
</td>
|
|
</tr>
|
|
|
|
[% IF Param('usestatuswhiteboard') %]
|
|
<tr>
|
|
<td align="right">
|
|
<b>Status <u>W</u>hiteboard:</b>
|
|
</td>
|
|
<td colspan="5">
|
|
<input name="status_whiteboard" accesskey="w"
|
|
value="[% bug.status_whiteboard FILTER html %]" size="60">
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
|
|
[% IF bug.use_keywords %]
|
|
<tr>
|
|
<td align="right">
|
|
<b>
|
|
<a href="describekeywords.cgi"><u>K</u>eywords</a>:
|
|
</b>
|
|
<td colspan="5">
|
|
<input name="keywords" accesskey="k"
|
|
value="[% bug.keywords.join(', ') FILTER html %]" size="60">
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
</table>
|
|
|
|
[% IF UserInGroup(Param('timetrackinggroup')) %]
|
|
<br>
|
|
<table cellspacing="0" cellpadding="4" border="1">
|
|
<tr>
|
|
<th align="center" bgcolor="#cccccc">
|
|
Orig. Est.
|
|
</th>
|
|
<th align="center" bgcolor="#cccccc">
|
|
Current Est.
|
|
</th>
|
|
<th align="center" bgcolor="#cccccc">
|
|
Hours Worked
|
|
</th>
|
|
<th align="center" bgcolor="#cccccc">
|
|
Hours Left
|
|
</th>
|
|
<th align="center" bgcolor="#cccccc">
|
|
%Complete
|
|
</th>
|
|
<th align="center" bgcolor="#cccccc">
|
|
Gain
|
|
</th>
|
|
</tr>
|
|
<tr>
|
|
<td align="center">
|
|
<input name="estimated_time"
|
|
value="[% PROCESS formattimeunit
|
|
time_unit=bug.estimated_time %]"
|
|
size="6" maxlength="6">
|
|
</td>
|
|
<td align="center">
|
|
[% PROCESS formattimeunit
|
|
time_unit=(bug.actual_time + bug.remaining_time) %]
|
|
</td>
|
|
<td align="center">
|
|
[% PROCESS formattimeunit time_unit=bug.actual_time %] +
|
|
<input name="work_time" value="0" size="3" maxlength="6"
|
|
onchange="adjustRemainingTime();">
|
|
</td>
|
|
<td align="center">
|
|
<input name="remaining_time"
|
|
value="[% PROCESS formattimeunit
|
|
time_unit=bug.remaining_time %]"
|
|
size="6" maxlength="6" onchange="updateRemainingTime();">
|
|
</td>
|
|
<td align="center">
|
|
[% PROCESS calculatepercentage act=bug.actual_time
|
|
rem=bug.remaining_time %]
|
|
</td>
|
|
<td align="center">
|
|
[% PROCESS formattimeunit time_unit=bug.estimated_time - (bug.actual_time + bug.remaining_time) %]
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
[% END %]
|
|
|
|
[%# *** Attachments *** %]
|
|
|
|
[% PROCESS attachment/list.html.tmpl
|
|
attachments = bug.attachments
|
|
bugid = bug.bug_id
|
|
num_attachment_flag_types = bug.num_attachment_flag_types
|
|
show_attachment_flags = bug.show_attachment_flags
|
|
%]
|
|
|
|
[%# *** Dependencies Votes *** %]
|
|
|
|
<table>
|
|
<tr>
|
|
[% PROCESS dependencies accesskey = "d"
|
|
dep = { title => "<u>d</u>epends on", fieldname => "dependson" } %]
|
|
<td rowspan="2">
|
|
<a href="showdependencytree.cgi?id=[% bug.bug_id %]">Show
|
|
dependency tree</a>
|
|
|
|
[% IF Param('webdotbase') %]
|
|
<br>
|
|
<a href="showdependencygraph.cgi?id=[% bug.bug_id %]">Show
|
|
dependency graph</a>
|
|
[% END %]
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
[% PROCESS dependencies accesskey = "b"
|
|
dep = { title => "<u>b</u>locks", fieldname => "blocked" } %]
|
|
</tr>
|
|
</table>
|
|
|
|
[% IF bug.use_votes %]
|
|
<table>
|
|
<tr>
|
|
<th>
|
|
<a href="page.cgi?id=voting.html">Votes</a>:
|
|
</th>
|
|
<td>
|
|
[% bug.votes %]
|
|
<a href="votes.cgi?action=show_bug&bug_id=[% bug.bug_id %]">Show
|
|
votes for this [% terms.bug %]</a>
|
|
<a href="votes.cgi?action=show_user&bug_id=[% bug.bug_id %]">Vote
|
|
for this [% terms.bug %]</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
[% END %]
|
|
|
|
[%# *** Comments Groups *** %]
|
|
|
|
<br>
|
|
<b>Additional <u>C</u>omments:</b>
|
|
[% IF Param("insidergroup") && UserInGroup(Param("insidergroup")) %]
|
|
<input type="checkbox" name="commentprivacy" value="1"
|
|
id="newcommentprivacy"> Private
|
|
[% END %]
|
|
<br>
|
|
<a name="add_comment"></a>
|
|
<textarea wrap="hard" name="comment" id="comment" rows="10" cols="80"
|
|
accesskey="c"></textarea>
|
|
<br>
|
|
|
|
[% IF bug.groups.size > 0 %]
|
|
[% inallgroups = 1 %]
|
|
[% inagroup = 0 %]
|
|
[% FOREACH group = bug.groups %]
|
|
[% SET inallgroups = 0 IF NOT group.ingroup %]
|
|
[% SET inagroup = 1 IF group.ison %]
|
|
|
|
[% IF NOT group.mandatory %]
|
|
[% IF NOT emitted_description %]
|
|
[% emitted_description = 1 %]
|
|
<br>
|
|
<b>Only users in all of the selected groups can view this [% terms.bug %]:</b>
|
|
<br>
|
|
<font size="-1">
|
|
(Unchecking all boxes makes this a more public [% terms.bug %].)
|
|
</font>
|
|
<br>
|
|
<br>
|
|
[% END %]
|
|
|
|
|
|
<input type="checkbox" name="bit-[% group.bit %]" value="1"
|
|
[% " checked=\"checked\"" IF group.ison %]
|
|
[% " disabled=\"disabled\"" IF NOT group.ingroup %]>
|
|
[% group.description %]
|
|
<br>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% IF NOT inallgroups %]
|
|
<b>
|
|
Only members of a group can change the visibility of [% terms.abug %] for
|
|
that group
|
|
</b>
|
|
<br>
|
|
[% END %]
|
|
|
|
[% IF inagroup %]
|
|
<p>
|
|
<b>Users in the roles selected below can always view this [% terms.bug %]:</b>
|
|
<br>
|
|
<small>
|
|
(The assignee
|
|
[% IF (Param('useqacontact')) %]
|
|
and QA contact
|
|
[% END %]
|
|
can always see [% terms.abug %], and this section does not take effect unless
|
|
the [% terms.bug %] is restricted to at least one group.)
|
|
</small>
|
|
</p>
|
|
|
|
<p>
|
|
<input type="checkbox" name="reporter_accessible" value="1"
|
|
[% " checked" IF bug.reporter_accessible %]>Reporter
|
|
<input type="checkbox" name="cclist_accessible" value="1"
|
|
[% " checked" IF bug.cclist_accessible %]>CC List
|
|
</p>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% PROCESS bug/knob.html.tmpl %]
|
|
|
|
[%# *** Additional Comments *** %]
|
|
|
|
<hr>
|
|
<table>
|
|
<tr>
|
|
<td align="left">
|
|
<b><a name="c0" href="#c0">Description</a>:</b> <script
|
|
type="text/javascript" language="JavaScript"><!--
|
|
addReplyLink(0);
|
|
//--></script>
|
|
</td>
|
|
<td align="right" width="100%">
|
|
Opened: [% bug.creation_ts FILTER time %]
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
[% PROCESS bug/comments.html.tmpl
|
|
comments = bug.longdescs
|
|
mode = "edit"
|
|
%]
|
|
|
|
</form>
|
|
|
|
[%############################################################################%]
|
|
[%# Block for dependencies #%]
|
|
[%############################################################################%]
|
|
|
|
[% BLOCK dependencies %]
|
|
<th align="right">[% terms.Bug %] [%+ bug.bug_id %] [%+ dep.title %]:</th>
|
|
<td>
|
|
[% FOREACH depbug = bug.${dep.fieldname} %]
|
|
[% depbug FILTER bug_link(depbug) %][% " " %]
|
|
[% END %]
|
|
</td>
|
|
<td>
|
|
<input name="[% dep.fieldname %]" accesskey="[% accesskey %]"
|
|
value="[% bug.${dep.fieldname}.join(', ') %]">
|
|
</td>
|
|
[% END %]
|
|
|
|
|
|
[%############################################################################%]
|
|
[%# Block for SELECT fields #%]
|
|
[%############################################################################%]
|
|
|
|
[% BLOCK select %]
|
|
<td>
|
|
<label for="[% selname %]" accesskey="[% accesskey %]">
|
|
<select name="[% selname %]" id="[% selname %]">
|
|
[% FOREACH x = bug.choices.${selname} %]
|
|
<option value="[% x FILTER html %]"
|
|
[% " selected" IF x == bug.${selname} %]>[% x FILTER html %]
|
|
</option>
|
|
[% END %]
|
|
</select>
|
|
</label>
|
|
</td>
|
|
<td> </td>
|
|
[% END %]
|