[%# 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 %] [% phones = [ 'ZTE Open', 'Alcatel One Touch', 'LG' ] %] [% inline_css = BLOCK %] #dogfood { margin: 0 5em 0 2em; } #dogfood th { text-align: left; padding-top: 1em; } [% END %] [% inline_js = BLOCK %] function onSubmit() { var alert_text = ''; var phone = false; [% FOREACH phone = phones %] if (document.getElementById('phone-cb-[% phone FILTER js %]').checked) phone = true; [% END %] if (document.getElementById('phone-cb-other').checked && isFilledOut('phone-other')) phone = true; if (!phone) alert_text += "Please select the type of phone you have.\n"; if (!isFilledOut('fxos-version')) alert_text += "Please provide the version of Firefox OS you are running.\n"; if (!isFilledOut('short_desc')) alert_text += "Please enter a value for the summary.\n"; if (!isFilledOut('details')) alert_text += "Please describe your issue in more detail.\n"; if (alert_text != '') { alert(alert_text); return false; } return true; } [% END %] [% PROCESS global/header.html.tmpl title = "Firefox OS Beta Program $terms.Bug Submission" style = inline_css style_urls = [ 'skins/standard/enter_bug.css' ] javascript = inline_js javascript_urls = [ 'extensions/BMO/web/js/form_validate.js', 'js/field.js', 'js/util.js' ] %]