[%# 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 %] [% inline_js = BLOCK %] var compdesc = new Array(); compdesc[""] = 'Please select a component from the list above.'; [% FOREACH comp = product.components %] compdesc['[% comp.name FILTER js %]'] = '[% comp.description FILTER js %]'; [% END %] function showCompDesc(component) { var value = component.value; document.getElementById('comp_description').innerHTML = compdesc[value]; } function onSubmit() { var alert_text = ''; var status_whiteboard = ''; if (!isFilledOut('component')) alert_text += "Please select a value for component.\n"; if (!isFilledOut('short_desc')) alert_text += "Please enter a value for the summary.\n"; if (!isFilledOut('steps_to_reproduce')) alert_text += "Please enter the steps to reproduce.\n"; if (!isFilledOut('actual_behavior')) alert_text += "Please enter the actual behavior.\n"; if (!isFilledOut('expected_behavior')) alert_text += "Please enter the expected behavior.\n"; if (!isFilledOut('build')) alert_text += "Please enter a value for the build.\n"; if (!isFilledOut('requirements')) alert_text += "Please enter a value for the requirements.\n"; var device_values = new Array(); var device_select = document.getElementById("b2g_device"); for (var i = 0, l = device_select.options.length; i < l; i++) { if (device_select.options[i].selected) device_values.push(device_select.options[i].value); } if (device_values.length == 0) alert_text += "Please select one or more devices.\n"; if (alert_text != '') { alert(alert_text); return false; } for (var i = 0, l = device_values.length; i < l; i++) status_whiteboard += '[device:' + device_values[i] + '] '; if (document.getElementById('third_party_app').checked) status_whiteboard += '[apps watch list]'; document.getElementById('status_whiteboard').value = status_whiteboard; return true; } [% END %] [% PROCESS global/header.html.tmpl title = "Firefox OS Partner $terms.Bug Submission" style_urls = [ 'skins/standard/enter_bug.css' ] javascript = inline_js javascript_urls = [ 'extensions/BMO/web/js/form_validate.js', 'js/attachment.js', 'js/field.js', 'js/util.js' ] onload = "showCompDesc(document.getElementById('component'));" %]

Firefox OS Partner [% terms.Bug %] Submission

All fields are mandatory

Security:
 
[% PROCESS global/footer.html.tmpl %]