[%# 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 %] #ipp_form th { text-align: right; } #ipp_form input[type="text"], #ipp_form textarea { width: 100%; } #ipp_form textarea { font-family: inherit; font-size: inherit; } #standard_link { margin-top: 2em; } #standard_link img { vertical-align: middle; } #standard_link a { cursor: pointer; } [% END %] [% inline_javascript = BLOCK %] function validateAndSubmit() { var alert_text = ''; if (!isFilledOut('component')) alert_text += 'Please select the "Area".\n'; if (!isFilledOut('short_desc')) alert_text += 'Please enter a "Summary".\n'; if (!isFilledOut('region')) alert_text += 'Please enter the "Region/Country".\n'; if (!isFilledOut('desc')) alert_text += 'Please provide a "Description".\n'; if (!isFilledOut('relevance')) alert_text += 'Please provide some "Relevance".\n'; if (!isFilledOut('goal')) alert_text += 'Please enter the "Goal".\n'; if (!isFilledOut('when')) alert_text += 'Please enter data for the "When" field.\n'; if (alert_text != '') { alert(alert_text); return false; } return true; } [% END %] [% PROCESS global/header.html.tmpl title = "Internet Public Policy Issue" style = inline_style javascript = inline_javascript javascript_urls = [ 'extensions/BMO/web/js/form_validate.js', 'js/field.js', 'js/util.js', 'js/bug.js' ] %] [% USE Bugzilla %] [% cgi = Bugzilla.cgi %]