From f7e326aa8d8a30eebb0156223a9e554bffc0f5ac Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Thu, 3 Jul 2014 01:28:33 -0400 Subject: Bug 1028269 - Firefox OS Pre-load App Info Request Form --- .../bug/create/create-fxos-preload-app.html.tmpl | 185 +++++++++++++++++++++ 1 file changed, 185 insertions(+) create mode 100644 extensions/BMO/template/en/default/bug/create/create-fxos-preload-app.html.tmpl (limited to 'extensions/BMO/template/en/default/bug/create/create-fxos-preload-app.html.tmpl') diff --git a/extensions/BMO/template/en/default/bug/create/create-fxos-preload-app.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-fxos-preload-app.html.tmpl new file mode 100644 index 000000000..edf7fdbae --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/create-fxos-preload-app.html.tmpl @@ -0,0 +1,185 @@ +[%# 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_preload_app_form { + padding: 10px; +} +#fxos_preload_app_form .required:after { + content: " *"; + color: red; +} +#fxos_preload_app_form .field_label { + font-weight: bold; +} +#fxos_preload_app_form .field_desc { + padding-bottom: 3px; +} +#fxos_preload_app_form .field_desc, +#fxos_preload_app_form .head_desc { + width: 600px; + word-wrap: normal; +} +#fxos_preload_app_form .head_desc { + padding-top: 5px; + padding-bottom: 12px; +} +#fxos_preload_app_form .form_section { + margin-bottom: 10px; +} +#fxos_preload_app_form textarea { + font-family: inherit; + font-size: inherit; +} +#fxos_preload_app_form em { + font-size: 1em; +} +.yui-calcontainer { + z-index: 2; +} +[% 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_preload_app_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; + } + return true; +} +[% END %] + +[% PROCESS global/header.html.tmpl + title = "Firefox OS Pre-load App" + style = inline_style + javascript = inline_javascript + javascript_urls = [ 'extensions/BMO/web/js/form_validate.js', + 'js/field.js', 'js/util.js' ] + yui = [ "autocomplete", "calendar", "selector" ] +%] + +[% USE Bugzilla %] +[% cgi = Bugzilla.cgi %] + +
+ + + + + + + + + + + +
+ Welcome to the Firefox OS Pre-load App Info Request Form! +
+ +
+ +
+ Please enter the legal name of your company +
+ +
+ + +
+ +
Please enter your Name
+ +
+ +
+ +
Please enter your Email address.
+ +
+ +
+ +
+ Please provide the App Name and Marketplace URL for each app you wish to pre-load on your certified, branded + Firefox OS device. The Marketplace URL is an important identifier because there are many apps in Marketplace with + the same name. +
+ +
+ +
+ +
+ Please list the countries where your device will be distributed. This information is required because it + corresponds to the countries that the developers will evaluate for distribution rights. +
+ +
+ +
+ +
+ Please provide the Version of Firefox OS for your Branded, Certified device on which you plan to pre-load the + requested apps. +
+ +
+ +
+ +
+ Please include the device make and model, screen size, Chipset and RAM configuration for the Branded, Certified + device on which you plan to pre-load the requested apps. +
+ +
+ +

When you press submit the information you've provided will be routed to Mozilla team members for follow up. The + system will also respond with a [% terms.Bugzilla %] tracking number that you may use for follow up.

+ + + +

+ [ * + Required Field ] +

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