From 386d410437a2e03de3b75d8a422e8dd7f0a949f8 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Wed, 17 Apr 2013 13:47:36 -0400 Subject: Bug 836006 - Need Bug Template for Partners Bug Submissions --- .../bug/create/comment-bootgecko-partner.txt.tmpl | 23 ++ .../bug/create/create-bootgecko-partner.html.tmpl | 240 +++++++++++++++++++++ 2 files changed, 263 insertions(+) create mode 100644 extensions/BMO/template/en/default/bug/create/comment-bootgecko-partner.txt.tmpl create mode 100644 extensions/BMO/template/en/default/bug/create/create-bootgecko-partner.html.tmpl (limited to 'extensions/BMO/template') diff --git a/extensions/BMO/template/en/default/bug/create/comment-bootgecko-partner.txt.tmpl b/extensions/BMO/template/en/default/bug/create/comment-bootgecko-partner.txt.tmpl new file mode 100644 index 000000000..a718bdef6 --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/comment-bootgecko-partner.txt.tmpl @@ -0,0 +1,23 @@ +[%# 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. + #%] + +[% USE Bugzilla %] +[% cgi = Bugzilla.cgi %] + +What are the steps to reproduce?: +[%+ cgi.param('steps_to_reproduce') %] + +What was the actual behavior?: +[%+ cgi.param('actual_behavior') %] + +What was the expected behavior?: +[%+ cgi.param('expected_behavior') %] + +What build were you using?: [% cgi.param('build') %] + +What are the requirements?: [% cgi.param('requirements') %] diff --git a/extensions/BMO/template/en/default/bug/create/create-bootgecko-partner.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-bootgecko-partner.html.tmpl new file mode 100644 index 000000000..cdfd90174 --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/create-bootgecko-partner.html.tmpl @@ -0,0 +1,240 @@ +[%# 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 = "Boot2Gecko 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'));" +%] + +

Boot2Gecko Partner [% terms.Bug %] Submission

+ +

All fields are mandatory

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
Security: + [% sec_group = sec_groups.${product.name} || sec_groups._default %] + + +
  + +
+ +
+ +[% PROCESS global/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b