From bf6de09347dac9282ac9ddf54dd96f8a06f2ef74 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Fri, 7 Mar 2014 15:52:29 +0000 Subject: Bug 956730 - Firefox OS Feature Request Submission Form --- .htaccess | 2 +- .../bug/create/comment-fxos-feature.txt.tmpl | 24 +++ .../bug/create/create-fxos-feature.html.tmpl | 181 +++++++++++++++++++++ 3 files changed, 206 insertions(+), 1 deletion(-) create mode 100644 extensions/BMO/template/en/default/bug/create/comment-fxos-feature.txt.tmpl create mode 100644 extensions/BMO/template/en/default/bug/create/create-fxos-feature.html.tmpl diff --git a/.htaccess b/.htaccess index 84657904a..01a712d84 100644 --- a/.htaccess +++ b/.htaccess @@ -66,7 +66,7 @@ RewriteRule ^form[\.:]moz[\.\-:]project[\.\-:]review$ enter_bug.cgi?product=mozi RewriteRule ^form[\.:]docs?$ enter_bug.cgi?product=Developer+Documentation&format=doc [QSA] RewriteRule ^form[\.:]mdn?$ enter_bug.cgi?product=Mozilla+Developer+Network&format=mdn RewriteRule ^form[\.:](swag|gear)$ enter_bug.cgi?product=mozilla.org&format=swag -RewriteRule ^form[\.:](b2g|fxos)[\.\-:](partner|betaprogram) enter_bug.cgi?product=Firefox+OS&format=fxos-$2 [QSA] +RewriteRule ^form[\.:](b2g|fxos)[\.\-:](partner|betaprogram|feature) enter_bug.cgi?product=Firefox+OS&format=fxos-$2 [QSA] RewriteRule ^form[\.:]ipp$ enter_bug.cgi?product=Internet+Public+Policy&format=ipp RewriteRule ^form[\.:]creative$ enter_bug.cgi?product=Marketing&format=creative RewriteRule ^form[\.:]user[\.\-:]engagement$ enter_bug.cgi?product=Marketing&format=user-engagement diff --git a/extensions/BMO/template/en/default/bug/create/comment-fxos-feature.txt.tmpl b/extensions/BMO/template/en/default/bug/create/comment-fxos-feature.txt.tmpl new file mode 100644 index 000000000..65224bfba --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/comment-fxos-feature.txt.tmpl @@ -0,0 +1,24 @@ +[%# 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 +%] +>> Feature Request Title: +[%+ cgi.param('short_desc') %] + +>> Description of feature, or problem to be solved +[%+ cgi.param("description") %] + +>> Impact of implementing the feature/solution +[%+ cgi.param("implement_impact") %] + +>> Impact of NOT implementing the feature/solution +[%+ cgi.param("not_implement_impact") %] + +>> Date required +[%+ cgi.param("date_required") %] diff --git a/extensions/BMO/template/en/default/bug/create/create-fxos-feature.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-fxos-feature.html.tmpl new file mode 100644 index 000000000..faa0495a4 --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/create-fxos-feature.html.tmpl @@ -0,0 +1,181 @@ +[%# 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 %] +#feature_form { + padding: 10px; +} +#feature_form .required:after { + content: " *"; + color: red; +} +#feature_form .field_label { + font-weight: bold; +} +#feature_form .field_desc { + padding-bottom: 3px; +} +#feature_form .field_desc, +#feature_form .head_desc { + width: 600px; + word-wrap: normal; +} +#feature_form .head_desc { + padding-top: 5px; + padding-bottom: 12px; +} +#feature_form .form_section { + margin-bottom: 10px; +} +#feature_form textarea { + font-family: inherit; + font-size: inherit; +} +#feature_form #comp_description { + test-align: left; + color: green; + padding-left: 1em; +} +[% END %] + +[% inline_javascript = 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() { + var comp_select = document.getElementById('component'); + document.getElementById('comp_description').innerHTML = compdesc[comp_select.value]; +} +function validateAndSubmit() { + var alert_text = ''; + if (!isFilledOut('component')) alert_text += 'Please select a value for product component.\n'; + if (!isFilledOut('short_desc')) alert_text += 'Please enter a value for feature request title.\n'; + if (alert_text != '') { + alert(alert_text); + return false; + } + return true; +} +YAHOO.util.Event.onDOMReady(showCompDesc); +[% END %] + +[% PROCESS global/header.html.tmpl + title = "Firefox OS Feature Request Form" + style = inline_style + javascript = inline_javascript + javascript_urls = [ 'extensions/BMO/web/js/form_validate.js' ] +%] + +[% USE Bugzilla %] +[% cgi = Bugzilla.cgi %] + +
+ + + + + + + + + + + +
+ +
+ Which product component is your feature request applicable to? + If you are not sure, choose "General". +
+ +
+
+ +
+ +
+ Please enter a title for your feature request that is brief and self explanatory. + (Example: "Memory dialing using keypad numbers") +
+ +
+ +
+ +
+ Please describe the feature that you are requesting or the problem that you would like solved in detail + (Example, "Today, there is no way for the user to quickly dial user-defined numbers from the dial pad. + Instead the user must search for an find the contact in their contact list."). + If the described feature only applies to certain device types (eg. tablet vs. smartphone), please make note of it. +
+ +
+ +
+ +
+ If this solution were to be implemented, what would the impact be? + (Example, "If this solution were to be implemented, it would save the users + significant time when dialing commonly used phone numbers.") +
+ +
+ +
+ +
+ If this solution were NOT to be implemented, what would the impact be? + (Example, "By not implementing this solution, we are unable to sell phones in + Iceland which has a certification requirement to have support for memory dialing.") +
+ +
+ +
+ +
+ Is this solution required by a certain date? Why? + (Example: "March 2014. We plan to sell phones in Iceland in June 2014 using Firefox OS 1.4. + Completing the feature in March would allow the device to pass operator certification in time + for a June retail launch.")
+ Note: completing this field does not imply that the feature will indeed be delivered in this timeframe. +
+ +
+ +
+ Once your form has been submitted, a tracking [% terms.bug %] will be created. We will + then reach out for additional info and next steps. Thanks! +
+ + + +

+ [ * Required Field ] +

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