[%# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This Source Code Form is "Incompatible With Secondary Licenses", as # defined by the Mozilla Public License, v. 2.0.%] [% PROCESS global/variables.none.tmpl %] [% title = BLOCK %]Enter [% terms.Bug %] [% END %] [% PROCESS bug_modal/common_header.html.tmpl title = title jquery = [ "selectize" ] jquery_css = [ "js/jquery/plugins/selectize/selectize.bootstrap3.css" ] javascript_urls = ['extensions/BugModal/web/new_bug.js'] style_urls = ['extensions/BugModal/web/new_bug.css'] %] [% PROCESS global/header.html.tmpl %] [% IF user.id %]

Create New [% terms.Bug %]

Before reporting a [% terms.bug %], make sure you've read our [% terms.bug %] writing guidelines and double checked that your [% terms.bug %] hasn't already been reported. Consult our list of most frequently reported [% terms.bugs %] and search through descriptions of previously reported [% terms.bugs %].

[% WRAPPER bug_modal/module.html.tmpl title = "" %] [%# summary %] [% INCLUDE bug_modal/field.html.tmpl field = bug_fields.short_desc field_type = constants.FIELD_TYPE_FREETEXT edit_only = 1 editable = 1 required = 1 help = "https://wiki.mozilla.org/BMO/UserGuide/BugFields#short_desc" %] [% INCLUDE bug_modal/common_new_comment.html.tmpl disable_cols=1 %] [% END %] [% WRAPPER bug_modal/module.html.tmpl title = "Attach a File" collapsed = 1 %]
[% END %]
[% WRAPPER bug_modal/module.html.tmpl title = "Status" %] [% can_edit_product = bug.check_can_change_field("product", 0, 1) %] [% filtered_product = bug.product_obj.name FILTER uri %] [% filtered_component = bug.component_obj.name FILTER uri %] [% WRAPPER bug_modal/field.html.tmpl field = bug_fields.product field_type = constants.FIELD_TYPE_SINGLE_SELECT edit_only = 1 editable = 1 help = "describecomponents.cgi?product=$filtered_product" %]
[% bug.product FILTER html %]
[% END %] [% WRAPPER bug_modal/field.html.tmpl field = bug_fields.product field_type = constants.FIELD_TYPE_SINGLE_SELECT hide_on_view = 1 hide_on_edit = !can_edit_product append_content = 1 help = "describecomponents.cgi?product=$filtered_product" %] [% INCLUDE prodcompsearch/form.html.tmpl id = "pcs" custom_select = 1 hidden = 1 throbber = "product-throbber" %] [% END %] [%# component %] [% WRAPPER bug_modal/field.html.tmpl field = bug_fields.component field_type = constants.FIELD_TYPE_SINGLE_SELECT help = "describecomponents.cgi?product=$filtered_product&component=$filtered_component#$filtered_component" edit_only = 1 editable = 1 %]
[% bug.component FILTER html %]
[% END %] [% INCLUDE bug_modal/field.html.tmpl field = bug_fields.version field_type = constants.FIELD_TYPE_SINGLE_SELECT help = "https://wiki.mozilla.org/BMO/UserGuide/BugFields#version" edit_only = 1 editable = 1 %] [% END %] [% WRAPPER bug_modal/module.html.tmpl title = "Tracking" %] [%# keywords %] [% INCLUDE bug_modal/field.html.tmpl field = bug_fields.keywords field_type = constants.FIELD_TYPE_MULTI_SELECT edit_only = 1 editable = 1 help = "describekeywords.cgi" %] [% WRAPPER bug_modal/field.html.tmpl field = bug_fields.status_whiteboard field_type = constants.FIELD_TYPE_FREETEXT help = "https://wiki.mozilla.org/BMO/UserGuide/Whiteboard" edit_only = 1 editable = 1 %] [% bug.status_whiteboard == "" ? "---" : bug.status_whiteboard FILTER html %] [% END %] [% END %]
[% ELSE %]
You need to log in before you can file a [% terms.bug %].
[% END %] [% PROCESS global/footer.html.tmpl %] [% BLOCK fields_lhs %]
[% content FILTER none %]
[% END %] [% BLOCK fields_rhs %]
[% content FILTER none %]
[% END %]