Bugzilla page for Fedora bugs
Will Woods
wwoods at redhat.com
Tue Jun 12 23:34:47 UTC 2007
On Tue, 2007-06-12 at 19:33 -0400, Will Woods wrote:
> I'm attaching the current enter_bug template and extras review template.
> I forget what the templating language is called but its use should be
> pretty obvious - check the bugzilla docs[1] for more info.
D'oh. Guess who forgot to actually attach the attachments. Sorry about
that.
-w
-------------- next part --------------
[%# 1.0 at 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 at gerv.net>
# Ville Skytt? <ville.skytta at iki.fi>
# Mike MacKenzie <mmackenz at redhat.com>
#%]
[% PROCESS global/variables.none.tmpl %]
[% PROCESS global/header.html.tmpl
title = "Enter $terms.Bug (Expert)"
h2 = "This page lets you enter a new $terms.bug into ${terms.Bugzilla}."
onload="set_assign_to(); setContentTypeDisabledState();"
nav_selected = "new"
%]
[% USE Bugzilla %]
<script type="text/javascript" language="JavaScript">
<!--
var default_owners = new Array([% component_.size %]);
var components = new Array([% component_.size %]);
[% count = 0 %]
[%- FOREACH c = component_ %]
components[[% count %]] = "[% c.name FILTER js %]";
default_owners[[% count %]] = "[% c.default_login FILTER js %]";
[% count = count + 1 %]
[%- END %]
var last_default_owner;
function set_assign_to() {
// Based on the selected component, fill the "Assign To:" field
// with the default component owner.
var form = document.Create;
var assigned_to = form.assigned_to.value;
var index = -1;
if (form.component.type == 'select-one') {
index = form.component.selectedIndex;
} else if (form.component.type == 'hidden') {
// Assume there is only one component in the list
index = 0;
}
if (index != -1) {
var owner = default_owners[index];
var component = components[index];
if (assigned_to == last_default_owner
|| assigned_to == owner
|| assigned_to == '') {
form.assigned_to.value = owner;
last_default_owner = owner;
}
}
}
function setContentTypeDisabledState()
{
var entryform = document.Create;
var isdisabled = false;
if (entryform.ispatch.checked)
isdisabled = true;
for (var i=0 ; i<entryform.contenttypemethod.length ; i++)
entryform.contenttypemethod[i].disabled = isdisabled;
entryform.contenttypeselection.disabled = isdisabled;
entryform.contenttypeentry.disabled = isdisabled;
}
//-->
</script>
<form name="Create" id="Create" method="post" action="post_bug.cgi" enctype="multipart/form-data">
<input type="hidden" name="product" value="[% product FILTER html %]">
[% IF Param('usetargetmilestone') %]
<input type="hidden" name="target_milestone" value="---">
[% END %]
[% IF bug_status.size <= 1 %]
<input type="hidden" name="bug_status" value="[% default.bug_status FILTER html %]">
[% END %]
[%# Migration note: The following file corresponds to the old Param
# 'entryheaderhtml'
#%]
[% INCLUDE 'bug/create/user-message.html.tmpl' %]
<h2>[% terms.Bug %] Information</h2>
<table cellspacing="2" cellpadding="2" border="0">
<tr>
<td align="right" valign="top" id="header-label">Reporter</td>
<td valign="top">[% Bugzilla.user.login FILTER html %]</td>
</tr>
<tr>
<td align="right" valign="top" id="header-label">Product</td>
<td valign="top">[% product FILTER html %]</td>
</tr>
[%# We can't use the select block in these two cases for various reasons. %]
<tr>
<td align="right" valign="top" id="header-label">
Version
</td>
<td>
<select name="version" size="5">
[%- FOREACH v = version %]
<option value="[% v FILTER html %]"
[% " selected=\"selected\"" IF v == default.version %]>[% v FILTER html -%]
</option>
[%- END %]
</select>
</td>
</tr>
<tr>
<td align="right" valign="top" id="header-label">
<a href="describecomponents.cgi?product=[% product FILTER url_quote %]">
Component</a>
</td>
<td>
<select name="component" onchange="set_assign_to();" size="5">
[%- FOREACH c = component_ %]
<option value="[% c.name FILTER html %]"
[% " selected=\"selected\"" IF c.name == default.component_ %]>
[% c.name FILTER html -%]
</option>
[%- END %]
</select>
</td>
</tr>
<tr>
[% sel = { description => 'Platform', name => 'rep_platform' } %]
[% INCLUDE select %]
</tr>
<tr>
[% sel = { description => 'OS', name => 'op_sys' } %]
[% INCLUDE select %]
</tr>
[% IF Param('letsubmitterchoosepriority') || UserInGroup('setpriority') %]
<tr>
[% sel = { description => 'Priority', name => 'priority' } %]
[% INCLUDE select %]
</tr>
[% ELSE %]
<input type="hidden" name="priority"
value="[% default.priority FILTER html %]">
[% END %]
<tr>
[% sel = { description => 'Severity', name => 'bug_severity' } %]
[% INCLUDE select %]
</tr>
[% IF bug_status.size > 1 %]
<tr>
[% sel = { description => 'Initial State', name => 'bug_status' } %]
[% INCLUDE select %]
</tr>
[% END %]
<tr>
<td align="right" id="header-label">
<a href="page.cgi?id=fields.html#assigned_to">Assign To</a>
</td>
<td>
<input name="assigned_to" size="32"
value="[% assigned_to FILTER html %]">
<noscript>(Leave blank to assign to default component owner)</noscript>
</td>
</tr>
<tr>
<td align="right" id="header-label">Cc</td>
<td>
<input name="cc" size="45" value="[% cc FILTER html %]">
</td>
</tr>
[% IF UserInGroup(Param('timetrackinggroup')) %]
<tr>
<td align="right" id="header-label">Estimated Hours</td>
<td>
<select name="estimated_time_presets"
onchange="document.Create.estimated_time.value=document.Create.estimated_time_presets.value;">
<option value="0.0" selected>Other</option>
<option value="2.0">2 hours</option>
<option value="4.0">1/2 day</option>
<option value="8.0">1 day</option>
<option value="24.0">3 days</option>
<option value="40.0">1 week</option>
<option value="80.0">2 weeks</option>
<option value="160.0">1 month</option>
<option value="480.0">3 months</option>
</select>
<input name="estimated_time" size="6" maxlength="6" value="0.0">
</td>
</tr>
[% END %]
<tr>
<td align="right" id="header-label">URL</td>
<td>
<input name="bug_file_loc" size="60"
value="[% bug_file_loc FILTER html %]">
</td>
</tr>
<tr>
<td align="right" id="header-label">Summary</td>
<td>
<input name="short_desc" size="60" value="[% short_desc FILTER html %]">
</td>
</tr>
<tr><td align="right" valign="top" id="header-label">Description</td>
<td>
<textarea wrap="hard" name="comment" rows="10" cols="80">
[% IF comment %]
[% IF cloned_bug_id %]
+++ This [% terms.bug %] was initially created as a clone of [% terms.Bug %] #[% cloned_bug_id %] +++
[% END %]
[% comment FILTER html %]
[% ELSE %]
[% PROCESS bug/create/comment.txt.tmpl %]
[% END %]</textarea>
<br/>
Please create attachment for large amounts of text such as log files, patches, test cases, etc.
</td>
</tr>
[% IF Param("insidergroup") && UserInGroup(Param("insidergroup")) %]
<tr>
<td align="right" valign="top" id="header-label">
<label for="commentprivacy">
Description is Private
</label>
</td>
<td>
<input type="checkbox" id="commentprivacy" name="commentprivacy"
[% " checked=\"checked\"" IF commentprivacy %]>
</td>
</tr>
[% ELSE %]
<input type="hidden" name="commentprivacy" value="0">
[% END %]
[% IF Param('usestatuswhiteboard') %]
<tr>
<td align="right" id="header-label">
Status Whiteboard
</td>
<td>
<input name="status_whiteboard" accesskey="w"
value="[% status_whiteboard FILTER html %]" size="60">
</td>
</tr>
[% END %]
[% IF UserInGroup('qa') %]
<tr>
<td align="right" id="header-label">
QA Whiteboard
</td>
<td>
<input name="qa_whiteboard" accesskey="w"
value="[% qa_whiteboard FILTER html %]" size="60">
</td>
</tr>
[% END %]
[% IF UserInGroup('devel') %]
<tr>
<td align="right" id="header-label">
Devel Whiteboard
</td>
<td>
<input name="devel_whiteboard" accesskey="w"
value="[% devel_whiteboard FILTER html %]" size="60">
</td>
</tr>
[% END %]
[% IF UserInGroup('editbugs') %]
[% IF use_keywords %]
<tr>
<td align="right" valign="top" id="header-label">
<a href="describekeywords.cgi">Keywords</a>
</td>
<td>
<input name="keywords" size="60" value="[% keywords FILTER html %]">
</td>
</tr>
[% END %]
[% IF Param('useissuetracker') && UserInGroup('issuetracker') %]
<tr>
<td align="right" id="header-label">Issue <u>T</u>rackers</td>
<td>
<input name="issuetrackers" accesskey="t"
value="[% issuetrackers FILTER html %]" size="60">
</td>
</tr>
[% END %]
<tr>
<td align="right" id="header-label">
Depends on
</td>
<td>
<input name="dependson" accesskey="d" value="[% dependson FILTER html %]">
</td>
</tr>
<tr>
<td align="right" id="header-label">
Blocks
</td>
<td>
<input name="blocked" accesskey="b" value="[% blocked FILTER html %]">
</td>
</tr>
[% END %]
</table>
[% IF Param('external_bugs') %]
<h2>External [% terms.Bugzilla %]</h2>
<table>
[% PROCESS bug/create/external_bugzilla.html.tmpl %]
</table>
[% END %]
<h2>Create Attachment</h2>
<table>
<tr>
<td align="right" valign="top" id="header-label">File to Attach</td>
<td>
<em>Enter the path to the file on your computer.</em><br>
<input type="file" name="data" size="50">
</td>
</tr>
<tr>
<td align="right" valign="top" id="header-label">File Description</td>
<td>
<em>Describe the attachment briefly.</em><br>
<input type="text" name="description" size="60" maxlength="200">
</td>
</tr>
<tr>
<td align="right" valign="top" id="header-label">File Content Type</td>
<td>
<em>If the attachment is a patch, check the box below.</em><br>
<input type="checkbox" id="ispatch" name="ispatch" value="1"
onchange="setContentTypeDisabledState();">
<label for="ispatch">patch</label><br><br>
<em>Otherwise, choose a method for determining the content type.</em><br>
<input type="radio" id="autodetect"
name="contenttypemethod" value="autodetect" CHECKED>
<label for="autodetect">auto-detect</label><br>
<input type="radio" id="list"
name="contenttypemethod" value="list">
<label for="list">select from list:</label>
<select name="contenttypeselection"
onchange="this.form.contenttypemethod[1].checked = true;">
[% PROCESS "attachment/content-types.html.tmpl" %]
</select><br>
<input type="radio" id="manual"
name="contenttypemethod" value="manual">
<label for="manual">enter manually:</label>
<input type="text" name="contenttypeentry" size="30" maxlength="200"
onchange="if (this.value) this.form.contenttypemethod[2].checked = true;">
</td>
</tr>
<table>
[% IF group.size %]
<h2>Group Permissions</h2>
Only users in all of the selected groups can view this [% terms.bug %]:
<br>
<font size="-1">
(Leave all boxes unchecked to make this a public [% terms.bug %].)
</font>
<br>
<!-- Checkboxes -->
[% FOREACH g = group %]
<input type="checkbox" id="bit-[% g.bit FILTER html %]"
name="bit-[% g.bit FILTER html %]" value="1"
[% " checked=\"checked\"" IF g.checked || g.mandatory %] [% " disabled=\"disabled\"" IF g.mandatory %]>
<label for="bit-[% g.bit FILTER html %]">[% g.description FILTER html %]</label><br>
[% END %]
<br>
[% END %]
<table>
<tr>
<td></td>
<td>
<input id="button" type="submit" value=" Commit "
onclick="if (this.form.short_desc.value == '')
{ alert('Please enter a summary sentence for this [% terms.bug %].');
return false; } return true;">
<input id="button" type="submit" name="maketemplate"
value="Remember values as bookmarkable template">
</td>
</tr>
[% IF Param('usebrowserinfo') %]
<tr>
<td></td>
<td>
<br>
We've made a guess at your operating system and platform.
Please check them and, if we got it wrong, email
[%+ Param('maintainer') %].
</td>
</tr>
[% END %]
</table>
<input type="hidden" name="form_name" value="enter_bug">
</form>
[% PROCESS global/footer.html.tmpl %]
[%############################################################################%]
[%# Block for SELECT fields #%]
[%############################################################################%]
[% BLOCK select %]
[% IF sel.description %]
<td align="right" id="header-label">
<a href="page.cgi?id=fields.html#[% sel.name %]">
[% sel.description %]</a>
</td>
[% END %]
<td>
<select name="[% sel.name %]">
[%- FOREACH x = ${sel.name} %]
<option value="[% x FILTER html %]"
[% " selected=\"selected\"" IF x == default.${sel.name} %]>[% x FILTER html -%]</option>
[%- END %]
</select>
</td>
[% END %]
-------------- next part --------------
[%# 1.0 at 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 at gerv.net>
# Ville Skytt? <ville.skytta at iki.fi>
# Shane H. W. Travis <travis at sedsystems.ca>
#%]
[% PROCESS global/variables.none.tmpl %]
[% product_name = product FILTER html %]
[% PROCESS global/header.html.tmpl
title = "Fedora Extras Package Review Request"
h2 = "This page lets you create a request for package review."
onload="set_assign_to();"
%]
[% USE Bugzilla %]
Once submitted, the request will be automatically attached to the FE-NEW blocker report and
the appropriate people notified.
<form name="Create" id="Create" method="post" action="post_bug.cgi" enctype="multipart/form-data">
<input type="hidden" name="product" value="[% product FILTER html %]">
<input type="hidden" name="version" value="devel">
<input type="hidden" name="component" value="Package Review">
<input type="hidden" name="priority" value="medium">
<input type="hidden" name="op_sys" value="Linux">
<input type="hidden" name="bug_status" value="NEW">
<input type="hidden" name="bug_severity" value="medium">
<input type="hidden" name="blocked" value="">
<input type="hidden" name="dependson" value="">
<input type="hidden" name="rep_platform" value="All">
<input type="hidden" name="bug_file_loc" value="http://"/>
<table cellspacing="2" cellpadding="0" border="0">
<tr>
<td><br/></td>
</tr>
<tr>
<td align="right"><strong>Review Summary:</strong></td>
<td colspan="3">
<input name="short_desc" size="60" value="Review Request: <main package name here> - <short summary here> [% short_desc FILTER html %]">
</td>
</tr>
<tr>
<td></td>
<td>
Help: Brief description of new package. Ex: Review Request: foogrokker -
Universal parser library</td>
</tr>
<tr><td align="right" valign="top"><strong>Review Description:</strong></td>
<td colspan="3">
<textarea name="comment" rows="10" cols="80">
[% IF cloned_bug_id %]
+++ This [% terms.bug %] was initially created as a clone of [% terms.Bug %] #[% cloned_bug_id %] +++
[% END %]
Spec URL: <spec info here>
SRPM URL: <srpm info here>
Description: <description here>
[% comment FILTER html %]</textarea>
<br>
</td>
</tr>
<tr>
<td></td><td>Help: Package information and more detailed description of function the new package performs.</td>
</tr>
<tr>
<td></td>
<td colspan="3">
[% IF group.size %]
<br>
<strong>
Only users in all of the selected groups can view this review request:
</strong>
<br>
<font size="-1">
(Leave all boxes unchecked to make this a public review request.)
</font>
<br>
<br>
<!-- Checkboxes -->
[% FOREACH g = group %]
<input type="checkbox" id="bit-[% g.bit %]"
name="bit-[% g.bit %]" value="1"
[% " checked=\"checked\"" IF g.checked %]>
<label for="bit-[% g.bit %]">[% g.description %]</label><br>
[% END %]
<br>
[% END %]
</td>
</tr>
[%# Form controls for entering additional data about the bug being created. %]
[% Hook.process("form") %]
<tr>
<td><br/></td>
</tr>
<tr>
<td></td>
<td colspan="3">
<input type="submit" value=" Commit "
onclick="if (this.form.short_desc.value == '')
{ alert('Please enter a summary sentence for this request.');
return false; } return true;">
<input type="submit" name="maketemplate"
value="Remember values as bookmarkable template">
</td>
</tr>
</table>
<input type="hidden" name="form_name" value="enter_bug">
</form>
[% PROCESS global/footer.html.tmpl %]
[%############################################################################%]
[%# Block for SELECT fields #%]
[%############################################################################%]
[% BLOCK select %]
[% IF sel.description %]
<td align="right">
<strong>
<a href="page.cgi?id=fields.html#[% sel.name %]">
[% sel.description %]</a>:
</strong>
</td>
[% END %]
<td>
<select name="[% sel.name %]">
[%- FOREACH x = ${sel.name} %]
<option value="[% x FILTER html %]"
[% " selected=\"selected\"" IF x == default.${sel.name} %]>[% x FILTER html -%]
</option>
[%- END %]
</select>
</td>
[% END %]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-websites-list/attachments/20070612/7f8c9637/attachment.sig>
More information about the Fedora-websites-list
mailing list