[%# 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 # Ville Skyttä # Shane H. W. Travis # Marc Schumann # Akamai Technologies # Max Kanat-Alexander # Frédéric Buclin #%] [% PROCESS "global/field-descs.none.tmpl" %] [% title = BLOCK %]Create a PR Request[% END %] [% PROCESS global/header.html.tmpl title = title style_urls = [ 'skins/standard/attachment.css' ] javascript_urls = [ "js/attachment.js", "js/util.js", "js/field.js", "js/TUI.js" ] onload = 'set_assign_to();' yui = [ 'autocomplete' ] %] [% IF user.in_group("mozilla-confidential") %] [% USE Bugzilla %] [% SET select_fields = {} %] [% FOREACH field = Bugzilla.get_fields( { type => constants.FIELD_TYPE_SINGLE_SELECT, custom => 0 }) %] [% select_fields.${field.name} = field %] [% END %]
[%# We can't use the select block in these two cases for various reasons. %] [% matches = default.component_.matches('^(.*) - (.*)$') %] [% default.location = matches.0 %] [% default.fakecomp = matches.1 %] [% IF default.location == '' %] [% default.location = 'US' %] [% END %] [% locations = [] %] [% fakecomps = [] %] [% FOREACH c = product.components %] [% matches = c.name.match('^(.*) - (.*)$') %] [% locations.push(matches.0) %] [% fakecomps.push(matches.1) %] [% END %] [% locations = locations.unique %] [% fakecomps = fakecomps.unique %] [% IF bug_status.size <= 1 %] [% ELSE %] [% INCLUDE bug/field.html.tmpl bug = default, field = bug_fields.bug_status, editable = (bug_status.size > 1), value = default.bug_status override_legal_values = bug_status %] [% END %] [%# Calculate the number of rows we can use for flags %] [% num_rows = 6 + (Param("useqacontact") ? 1 : 0) + (user.is_timetracker ? 3 : 0) + (Param("usebugaliases") ? 1 : 0) %] [% IF Param("useqacontact") %] [% END %] [% IF user.is_timetracker %] [% END %] [% IF Param("usebugaliases") %] [% END %] [% IF user.is_insider %] [% END %] [% IF user.in_group('editbugs', product.id) %] [% IF use_keywords %] [% INCLUDE bug/field.html.tmpl bug = default, field = bug_fields.keywords, editable = 1, value = keywords, desc_url = "describekeywords.cgi", value_span = 3 %] [% END %] [% END %] [% IF product.groups_available.size %] [% END %] [%# Form controls for entering additional data about the bug being created. %] [% Hook.process("form") %]
Hide Advanced Fields [%# Show the link if the browser supports JS %] (* = Required Field)
Product: [% product.name FILTER html %] Reporter: [% user.login FILTER html %]
Location:
Request type: [%# Enclose the fieldset in a nested table so that its width changes based # on the length on the component description. %]
Request Description
Select a request type to read its description.
 
Initial State: [% display_value("bug_status", default.bug_status) FILTER html %]  [% IF product.flag_types(is_active=>1).bug.size > 0 %] [% display_flag_headers = 0 %] [% any_flags_requesteeble = 0 %] [% FOREACH flag_type = product.flag_types(is_active=>1).bug %] [% display_flag_headers = 1 %] [% SET any_flags_requesteeble = 1 IF flag_type.is_requestable && flag_type.is_requesteeble %] [% END %] [% IF display_flag_headers %] [% PROCESS "flag/list.html.tmpl" flag_types = product.flag_types(is_active=>1).bug any_flags_requesteeble = any_flags_requesteeble flag_table_id = "bug_flags" %] [% END %] [% END %]
Assign To: [% INCLUDE global/userselect.html.tmpl id => "assigned_to" name => "assigned_to" value => assigned_to disabled => assigned_to_disabled size => 30 emptyok => 1 custom_userlist => assignees_list %]
QA Contact: [% INCLUDE global/userselect.html.tmpl id => "qa_contact" name => "qa_contact" value => qa_contact disabled => qa_contact_disabled size => 30 emptyok => 1 custom_userlist => qa_contacts_list %]
CC: [% INCLUDE global/userselect.html.tmpl id => "cc" name => "cc" value => cc disabled => cc_disabled size => 30 multiple => 5 %]
Default CC:
 
Estimated Hours:
Deadline: (YYYY-MM-DD)
 
Alias:
URL:
Summary:
Description: [% defaultcontent = BLOCK %] [% IF cloned_bug_id %] +++ This [% terms.bug %] was initially created as a clone of [% terms.Bug %] #[% cloned_bug_id FILTER html %] +++ [% END %] [%-# We are within a BLOCK. The comment will be correctly HTML-escaped # by global/textarea.html.tmpl. So we must not escape the comment here. %] [% comment FILTER none %] [%- END %] [% INCLUDE global/textarea.html.tmpl name = 'comment' id = 'comment' minrows = 10 maxrows = 25 cols = constants.COMMENT_COLS defaultcontent = defaultcontent %]
    
Attachment:
Add an attachment [% PROCESS attachment/createformcontents.html.tmpl flag_types = product.flag_types(is_active=>1).attachment any_flags_requesteeble = 1 flag_table_id ="attachment_flags" %]
Status Whiteboard:
Depends on:
Blocks:
 
Only users in all of the selected groups can view this [%+ terms.bug %]:
(Leave all boxes unchecked to make this a public [% terms.bug %].)

[% FOREACH group = product.groups_available %]
[% END %]
      
[%# Links or content with more information about the bug being created. %] [% Hook.process("end") %] [% ELSE %]

Sorry, you do not have access to this page.

[% END %] [% PROCESS global/footer.html.tmpl %] [% BLOCK build_userlist %] [% user_found = 0 %] [% default_login = default_user.login %] [% RETURN UNLESS default_login %] [% FOREACH user = userlist %] [% IF user.login == default_login %] [% user_found = 1 %] [% LAST %] [% END %] [% END %] [% userlist.push({login => default_login, identity => default_user.identity, visible => 1}) UNLESS user_found %] [% END %]