From d27748a8cead8918d91f53eded6f30c158fbe5e3 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Mon, 21 Oct 2013 22:59:06 -0400 Subject: Bug 913075 - Change the Bugzilla Product Name of BootToGecko to Firefox OS r=glob --- .../bug/create/create-bootgecko-partner.html.tmpl | 239 --------------------- .../bug/create/create-fxos-betaprogram.html.tmpl | 2 +- .../bug/create/create-fxos-partner.html.tmpl | 239 +++++++++++++++++++++ .../en/default/global/choose-product.html.tmpl | 3 +- 4 files changed, 241 insertions(+), 242 deletions(-) delete mode 100644 extensions/BMO/template/en/default/bug/create/create-bootgecko-partner.html.tmpl create mode 100644 extensions/BMO/template/en/default/bug/create/create-fxos-partner.html.tmpl (limited to 'extensions/BMO/template') 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 deleted file mode 100644 index 46ed25ef8..000000000 --- a/extensions/BMO/template/en/default/bug/create/create-bootgecko-partner.html.tmpl +++ /dev/null @@ -1,239 +0,0 @@ -[%# 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: - - -
  - -
- -
- -[% PROCESS global/footer.html.tmpl %] diff --git a/extensions/BMO/template/en/default/bug/create/create-fxos-betaprogram.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-fxos-betaprogram.html.tmpl index d08b2fb78..cd3a539e0 100644 --- a/extensions/BMO/template/en/default/bug/create/create-fxos-betaprogram.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-fxos-betaprogram.html.tmpl @@ -74,7 +74,7 @@ enctype="multipart/form-data" onsubmit="return onSubmit();"> - + diff --git a/extensions/BMO/template/en/default/bug/create/create-fxos-partner.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-fxos-partner.html.tmpl new file mode 100644 index 000000000..3e910990d --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/create-fxos-partner.html.tmpl @@ -0,0 +1,239 @@ +[%# 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 %] diff --git a/extensions/BMO/template/en/default/global/choose-product.html.tmpl b/extensions/BMO/template/en/default/global/choose-product.html.tmpl index 1ee21a8bd..8368523f3 100644 --- a/extensions/BMO/template/en/default/global/choose-product.html.tmpl +++ b/extensions/BMO/template/en/default/global/choose-product.html.tmpl @@ -85,9 +85,8 @@ icon="firefox.png" %] [% INCLUDE easyproduct - name="Boot2Gecko" + name="Firefox OS" icon="firefox.png" - caption="Firefox OS" %] [% INCLUDE easyproduct name="Firefox for Android" -- cgit v1.2.3-24-g4f1b