[%# 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 %]Enter [% terms.Bug %]: [% product.name FILTER html %][% END %] [% PROCESS global/header.html.tmpl title = title yui = [ 'autocomplete', 'calendar', 'datatable', 'button' ] style_urls = [ 'skins/standard/attachment.css', 'skins/standard/enter_bug.css', 'skins/custom/create_bug.css' ] javascript_urls = [ "js/attachment.js", "js/util.js", "js/field.js", "js/TUI.js", "js/bug.js", "js/create_bug.js" ] onload = "init();" %]
[% INCLUDE bug/field.html.tmpl bug = default, field = bug_fields.product, editable = 0, value = product.name %] [% INCLUDE bug/field.html.tmpl bug = default, field = bug_fields.reporter, editable = 0, value = user.login %] [%# We can't use the select block in these two cases for various reasons. %] [% component_desc_url = BLOCK -%] describecomponents.cgi?product=[% product.name FILTER uri %] [% END %] [% INCLUDE "bug/field-label.html.tmpl" field = bug_fields.component editable = 1 desc_url = component_desc_url %] [% INCLUDE "bug/field-label.html.tmpl" field = bug_fields.version editable = 1 rowspan = 3 %] [% INCLUDE bug/field.html.tmpl bug = default, field = bug_fields.bug_severity, editable = 1, value = default.bug_severity %] [% INCLUDE bug/field.html.tmpl bug = default, field = bug_fields.rep_platform, editable = 1, value = default.rep_platform %] [% INCLUDE bug/field.html.tmpl bug = default, field = bug_fields.op_sys, editable = 1, value = default.op_sys %] [% IF (!Param('defaultplatform') || !Param('defaultopsys')) && !cloned_bug_id %] [% END %] [% IF Param('usetargetmilestone') && Param('letsubmitterchoosemilestone') %] [% INCLUDE select field = bug_fields.target_milestone %] [% ELSE %] [% END %] [% IF Param('letsubmitterchoosepriority') %] [% INCLUDE bug/field.html.tmpl bug = default, field = bug_fields.priority, editable = 1, value = default.priority %] [% ELSE %] [% END %] [% 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 %] [% INCLUDE "bug/field-label.html.tmpl" field = bug_fields.assigned_to editable = 1 %] [% IF Param("useqacontact") %] [% INCLUDE "bug/field-label.html.tmpl" field = bug_fields.qa_contact editable = 1 %] [% END %] [% INCLUDE "bug/field-label.html.tmpl" field = bug_fields.cc editable = 1 %] [% IF Param("usebugaliases") %] [% INCLUDE "bug/field-label.html.tmpl" field = bug_fields.alias editable = 1 %] [% END %] [% INCLUDE "bug/field-label.html.tmpl" field = bug_fields.short_desc editable = 1 %] [% IF feature_enabled('jsonrpc') AND !cloned_bug_id AND user.settings.possible_duplicates.value == 'on' %] [% END %] [% INCLUDE "bug/field-label.html.tmpl" field = bug_fields.bug_file_loc editable = 1 %] [% IF Param("maxattachmentsize") || Param("maxlocalattachment") %] [% END %] [% IF user.in_group('editbugs', product.id) %] [% INCLUDE "bug/field-label.html.tmpl" field = bug_fields.dependson editable = 1 %] [% INCLUDE "bug/field-label.html.tmpl" field = bug_fields.blocked editable = 1 %] [% 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 user.is_timetracker %] [% INCLUDE "bug/field-label.html.tmpl" field = bug_fields.estimated_time editable = 1 %] [% INCLUDE bug/field.html.tmpl bug = default, field = bug_fields.deadline, value = deadline, editable = 1 %] [% END %] [% IF Param('use_see_also') %] [% INCLUDE bug/field.html.tmpl bug = default field = bug_fields.see_also editable = 1 value = see_also value_span = 3 %] [% END %] [%# non-tracking flags custom fields %] [% FOREACH field = Bugzilla.active_custom_fields(product=>product) %] [% NEXT IF field.type == constants.FIELD_TYPE_EXTENSION %] [% NEXT UNLESS field.enter_bug %] [% Hook.process('custom_field', 'bug/create/create.html.tmpl') %] [% NEXT IF field.hidden %] [% SET value = ${field.name}.defined ? ${field.name} : "" %] [% INCLUDE bug/field.html.tmpl bug = default, field = field, value = value, editable = 1, value_span = 3 %] [% END %] [% Hook.process('after_custom_fields') %] [% display_flags = 0 %] [% any_flags_requesteeble = 0 %] [% FOREACH flag_type = product.flag_types.bug %] [% display_flags = 1 %] [% SET any_flags_requesteeble = 1 IF flag_type.is_requestable && flag_type.is_requesteeble %] [% LAST IF display_flags && any_flags_requesteeable %] [% END %] [% IF tracking_flags.size || display_flags %] [% END %] [%# BMO - exclude the default security from from the groups_available %] [%# list, as it will be added by the BMO extension %] [% groups_available = [] %] [% FOREACH group = product.groups_available %] [% NEXT IF group.name == product.default_security_group %] [% groups_available.push(group) %] [% END %] [% IF groups_available.size %] [% END %] [%# Form controls for entering additional data about the bug being created. %] [% Hook.process("form") %] [%# "status whiteboard" and "qa contact" are the longest labels # add them here to avoid shifting the page when toggling advanced fields %]
[%# Migration note: The following file corresponds to the old Param # 'entryheaderhtml' #%] [% PROCESS 'bug/create/user-message.html.tmpl' %]
[%# Show the link if the browser supports JS %] (* = Required Field)
[%# Enclose the fieldset in a nested table so that its width changes based # on the length on the component description. %]
Component Description
Select a component to read its description.
 
We've made a guess at your [% IF Param('defaultplatform') %] operating system. Please check it [% ELSIF Param('defaultopsys') %] platform. Please check it [% ELSE %] operating system and platform. Please check them [% END %] and make any corrections if necessary.
  
 
[% 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 %] [% UNLESS assigned_to_disabled %]  (take) [% END %] [% 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 %]
[% INCLUDE global/userselect.html.tmpl id => "cc" name => "cc" value => cc disabled => cc_disabled size => 30 multiple => 5 %] Default [% field_descs.cc FILTER html %]:
 
Possible
Duplicates:
Description: [% defaultcontent = BLOCK %] [% IF cloned_bug_id %] +++ This [% terms.bug %] was initially created as a clone of [% terms.Bug %] #[% cloned_bug_id %] +++ [% 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 bug/comment.html.tmpl minrows = 10 maxrows = 25 cols = constants.COMMENT_COLS defaultcontent = defaultcontent %]
Attachment:
Add an attachment [% PROCESS attachment/createformcontents.html.tmpl flag_types = product.flag_types.attachment any_flags_requesteeble = 1 flag_table_id ="attachment_flags" %]
[% IF user.is_insider %] [% END %]
Status Whiteboard:
Flags:
Set [% terms.bug %] flags [% Hook.process('bug_flags') %] [% IF display_flags %] [% END %]
[% PROCESS "flag/list.html.tmpl" flag_types = product.flag_types.bug any_flags_requesteeble = any_flags_requesteeble flag_table_id = "bug_flags" %]
  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 = groups_available %]
[% END %]
      
Status Whiteboard:   QA Contact:
[%# Links or content with more information about the bug being created. %] [% Hook.process("end") %] [% PROCESS global/footer.html.tmpl %] [%############################################################################%] [%# Block for SELECT fields #%] [%############################################################################%] [% BLOCK select %] [% INCLUDE "bug/field-label.html.tmpl" field = field editable = 1 %] [% END %] [% 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 %]