From d999330304bef65c0f94fac2c504c19eb2e6ff41 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Tue, 12 Aug 2014 13:03:48 +0800 Subject: Bug 1033897: Firefox OS MCTS Waiver Request Submission Form --- .htaccess | 1 + .../bug/create/comment-fxos-mcts-waiver.txt.tmpl | 36 ++++ .../bug/create/create-fxos-mcts-waiver.html.tmpl | 207 +++++++++++++++++++++ 3 files changed, 244 insertions(+) create mode 100644 extensions/BMO/template/en/default/bug/create/comment-fxos-mcts-waiver.txt.tmpl create mode 100644 extensions/BMO/template/en/default/bug/create/create-fxos-mcts-waiver.html.tmpl diff --git a/.htaccess b/.htaccess index b3f4d9e85..c392c4653 100644 --- a/.htaccess +++ b/.htaccess @@ -75,5 +75,6 @@ RewriteRule ^form[\.:]mobile[\.\-:]compat$ enter_bug.cgi?product=Tech+Evangelism RewriteRule ^form[\.:]web[\.:]bounty$ enter_bug.cgi?product=mozilla.org&format=web-bounty RewriteRule ^form[\.:]automative$ enter_bug.cgi?product=Testing&format=automative RewriteRule ^form[\.:]fxos[\.\-:]preload[\.\-:]app$ enter_bug.cgi?product=Marketplace&format=fxos-preload-app +RewriteRule ^form[\.:]fxos[\.\-:]mcts[\.\-:]waiver$ enter_bug.cgi?product=Firefox+OS&format=fxos-mcts-waiver RewriteRule ^rest/(.*)$ rest.cgi/$1 [NE] RewriteRule ^bzapi/(.*)$ extensions/BzAPI/bin/rest.cgi/$1 [NE] diff --git a/extensions/BMO/template/en/default/bug/create/comment-fxos-mcts-waiver.txt.tmpl b/extensions/BMO/template/en/default/bug/create/comment-fxos-mcts-waiver.txt.tmpl new file mode 100644 index 000000000..abad3f3c4 --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/comment-fxos-mcts-waiver.txt.tmpl @@ -0,0 +1,36 @@ +[%# 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 %] +[% USE Bugzilla %] +[% cgi = Bugzilla.cgi +%] +> Company Name +[%+ cgi.param('company_name') %] + +> Device Description +[%+ cgi.param('device_desc') %] + +> Firefox OS Release +[%+ cgi.param('ffos_release') %] + +> Branding Tier +[%+ cgi.param('branding_tier') %] + +> Distribution Countries +[%+ cgi.param('dist_countries') %] + +> Distribution Channel +[%+ cgi.param('dist_channel') %] + +> Reason for Waiver Request +[%+ cgi.param('reason') %] + +> Rationale for Granting Waiver Request +[%+ cgi.param('rationale') %] + +> Impact Analysis +[%+ cgi.param('impact') %] diff --git a/extensions/BMO/template/en/default/bug/create/create-fxos-mcts-waiver.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-fxos-mcts-waiver.html.tmpl new file mode 100644 index 000000000..39182a32f --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/create-fxos-mcts-waiver.html.tmpl @@ -0,0 +1,207 @@ +[%# 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_style = BLOCK %] +#fxos_mcts_waiver_form { + padding: 10px; +} +#fxos_mcts_waiver_form .required:after { + content: " *"; + color: red; +} +#fxos_mcts_waiver_form .field_label { + font-weight: bold; +} +#fxos_mcts_waiver_form .field_desc { + padding-bottom: 3px; +} +#fxos_mcts_waiver_form .field_desc, +#fxos_mcts_waiver_form .head_desc { + width: 600px; + word-wrap: normal; +} +#fxos_mcts_waiver_form .head_desc { + padding-top: 5px; + padding-bottom: 12px; +} +#fxos_mcts_waiver_form .form_section { + margin-bottom: 10px; +} +#fxos_mcts_waiver_form textarea { + font-family: inherit; + font-size: inherit; +} +#fxos_mcts_waiver_form em { + font-size: 1em; +} +[% END %] + +[% inline_javascript = BLOCK %] +function validateAndSubmit() { + 'use strict'; + var alert_text = ''; + var requiredLabels = YAHOO.util.Selector.query('label.required'); + if (requiredLabels) { + requiredLabels.forEach(function (label) { + var name = label.getAttribute('for'); + var ids = YAHOO.util.Selector.query( + '#fxos_mcts_waiver_form *[name="' + name + '"]' + ).map(function (e) { + return e.id + }); + + if (ids && ids[0]) { + if (!isFilledOut(ids[0])) { + var desc = label.textContent || name; + alert_text += + "Please enter a value for " + + desc.replace(/[\r\n]+/, "").replace(/\s+/g, " ") + + "\n"; + } + } + }); + } + + if (alert_text != '') { + alert(alert_text); + return false; + } + + var short_desc = document.getElementById('short_desc'); + var company_name = document.getElementById('company_name').value; + short_desc.value = "MCTS Waiver for " + company_name; + + return true; +} +[% END %] + +[% PROCESS global/header.html.tmpl + title = "Firefox OS MCTS Waiver Form" + style = inline_style + javascript = inline_javascript + javascript_urls = [ 'extensions/BMO/web/js/form_validate.js', + 'js/field.js', 'js/util.js' ] +%] + +[% USE Bugzilla %] +[% cgi = Bugzilla.cgi %] + +
+ + + + + + + + + + + + +
+ Welcome to the [% title FILTER html %]! +
+ +
+ +
+ Please enter the legal name of the company requesting the Waiver +
+ +
+ +
+ +
+ Please enter the Make, Model, Chipset, screensize and type the device associated with the waiver request. For + example type may be mobile phone, tablet, dongle, tv, etc. +
+ +
+ +
+ +
+ Please Enter the Release this Waiver applies to for this partner. +
+ +
+ +
+ +
+ Please Enter the Branding Tier associated with the Waiver Request (Powered by Firefox OS or Co-Branded). +
+ +
+ +
+ +
+ Please include list of countries where the device is planned to be distributed. +
+ +
+ +
+ +
+ Please identify how this device will be sold. For example, Operator, Retail. +
+ +
+ +
+ +
+ Please describe which test cases, Branding Guidelines and/or Requirements the Partner is request waived. +
+ +
+ +
+ +
+ Please document why the Partner thinks a waiver should be granted. +
+ +
+ +
+ +
+ Please provide an assessment of the impact of granting this waiver in general business terms (this should include + broad perspective of potential issues such as brand consistency, impacts on reporting & tracking capabilities, + help desk/support issues, etc.) +
+ +
+ + + +

+ [ * + Required Field ] +

+
+ +[% PROCESS global/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b