From 8058b5d3504043a7e0be9fd28f664f866737b5ca Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 10 Mar 2015 02:42:05 +0000 Subject: Bug 1140215: 3rd Party Applications Issue Form --- .htaccess | 1 + .../bug/create/comment-third-party-apps.txt.tmpl | 22 +++ .../bug/create/create-third-party-apps.html.tmpl | 190 +++++++++++++++++++++ .../en/default/bug/create/custom_forms.none.tmpl | 4 + 4 files changed, 217 insertions(+) create mode 100644 extensions/BMO/template/en/default/bug/create/comment-third-party-apps.txt.tmpl create mode 100644 extensions/BMO/template/en/default/bug/create/create-third-party-apps.html.tmpl diff --git a/.htaccess b/.htaccess index a98688e7b..796d1a5af 100644 --- a/.htaccess +++ b/.htaccess @@ -78,6 +78,7 @@ RewriteRule ^form[\.:]comm[\.:]newsletter$ enter_bug.cgi?product=Marketing&forma RewriteRule ^form[\.:]screen[\.:]share[\.:]whitelist$ enter_bug.cgi?product=Firefox&format=screen-share-whitelist RewriteRule ^form[\.:]webops[\.\-:]request$ enter_bug.cgi?product=Infrastructure+\%26+Operations&format=webops-request RewriteRule ^form[\.:]data[\.\-:]compliance$ enter_bug.cgi?product=Data+Compliance&format=data-compliance +RewriteRule ^form[\.:]third[\.\-:]party$ enter_bug.cgi?product=Marketing&format=third-party-apps RewriteRule ^rest/(.*)$ rest.cgi/$1 [NE] RewriteRule ^(?:latest|1\.2|1\.3)/(.*)$ extensions/BzAPI/bin/rest.cgi/$1 [NE] RewriteRule ^bzapi/(.*)$ extensions/BzAPI/bin/rest.cgi/$1 [NE] diff --git a/extensions/BMO/template/en/default/bug/create/comment-third-party-apps.txt.tmpl b/extensions/BMO/template/en/default/bug/create/comment-third-party-apps.txt.tmpl new file mode 100644 index 000000000..7a30902f2 --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/comment-third-party-apps.txt.tmpl @@ -0,0 +1,22 @@ +[%# 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 %] + +> Detailed description of the issue or enhancement request +[%+ cgi.param('desc') %] + +> Is this issue reproducible? +[%+ cgi.param('reproducible') %] + +> Device Information +[%+ cgi.param('device_info') %] + +> Mozilla Reference Device +[%+ cgi.param('reference_device') %] diff --git a/extensions/BMO/template/en/default/bug/create/create-third-party-apps.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-third-party-apps.html.tmpl new file mode 100644 index 000000000..8d911e2c9 --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/create-third-party-apps.html.tmpl @@ -0,0 +1,190 @@ +[%# 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_css = BLOCK %] +#third_party_form { + width: 60%; +} +#third_party_form .required:after { + content: " *"; + color: red; +} +#third_party_form .field_label { + text-align: left; + font-weight: bold; +} +#third_party_form .field_desc, +#third_party_form .head_desc { + word-wrap: normal; +} +#third_party_form .head_desc { + font-size: 1.25em; + padding-bottom: .5em; +} +#third_party_form .form_section { + margin-bottom: 1em; + padding-left: 2em; +} +.yui-calcontainer { + z-index: 2; +} +[% END %] + +[% inline_javascript = BLOCK %] + function validateAndSubmit() { + var alert_text = ''; + $('label.required').each(function () { + var id = $(this).attr('for'); + if (id && !isFilledOut(id)) { + var desc = $(this).text() || id; + alert_text += "Please select or enter a value for" + + desc.replace(/[\r\n]+/, "").replace(/\s+/g, " ") + "\n"; + } + }); + if (alert_text != '') { + alert(alert_text); + return false; + } + return true; + } +[% END %] + +[% PROCESS global/header.html.tmpl + title = "Third Party Applications Issue Form" + style = inline_css + style_urls = [ 'skins/standard/enter_bug.css', + 'skins/standard/attachment.css' ] + javascript = inline_javascript + javascript_urls = [ 'js/attachment.js', + 'js/field.js', + 'js/util.js', + 'extensions/BMO/web/js/form_validate.js' ] +%] + +

Third Party Applications Issue Form

+ +
+ + + + + + + + + + + + +
+ +
+ Please enter the name of the application in brackets and a short summary of + the issue. (ex. [App Name] Fails to launch at startup. +
+ +
+ +
+ +
+ Please copy the App listing page URL from Marketplace. +
+ +
+ +
+ +
+ Please enter a description of the issue with as much detail as possible. +
+ +
+ +
+ +
+ Please let us know if this issue is reproducible, steps to reproduction, and + how often the issue presents itself. +
+ +
+ +
+ +
+ Please let us know what device you were using when you experienced this + issue. For FirefoxOS devices; please include the device make, model, and OS + version at a minimum. RAM, Chipset, and Screen size is preferred if that + information is available. +
+ +
+ +
+ +
+ Have you tried to reproduce this issue on a Mozilla reference device? If + yes, please post your results, which device you were using, and OS version. +
+ +
+ +
+ +
+ Please attach any additional information that will help us understand and + diagnose this issue. Screenshots, testing documents, etc. +
+ + + + + + + + +
+ + + +
+ + + + +
+
+ + + +
+ +[% PROCESS global/footer.html.tmpl %] diff --git a/extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl b/extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl index c8a6f05b4..6e7841ecc 100644 --- a/extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl +++ b/extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl @@ -180,6 +180,10 @@ custom_forms = { link => "form.fxos.preload.app", title => "Firefox OS Pre-load App", }, + { + link => "form.third.party", + title => "Third Party Applications Issue Form", + }, ], "Data Compliance" => [ { -- cgit v1.2.3-24-g4f1b