[%# 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 %] #newsletter_form { padding: 10px; } #newsletter_form .required:after { content: " *"; color: red; } #newsletter_form .field_label { font-weight: bold; } #newsletter_form .field_desc { padding-bottom: 3px; } #newsletter_form .field_desc, #newsletter_form .head_desc { width: 600px; word-wrap: normal; } #newsletter_form .head_desc { padding-top: 5px; padding-bottom: 12px; } #newsletter_form .form_section { margin-bottom: 10px; } #newsletter_form textarea { font-family: inherit; font-size: inherit; } #newsletter_form em { font-size: 1em; } .yui-calcontainer { z-index: 2; } [% END %] [% inline_javascript = BLOCK %] function validateAndSubmit() { var alert_text = ''; if (!isFilledOut('short_desc')) alert_text += 'Please enter a value for opportunity headline.\n'; if (!isFilledOut('description')) alert_text += 'Please enter a value for description.\n'; if (!isFilledOut('time_required')) alert_text += 'Please enter a value for time required.\n'; if (!isFilledOut('primary_contact')) alert_text += 'Please enter a value for contact email.\n'; if (!isFilledOut('timeframe')) alert_text += 'Please select a value for timeframe.\n'; if (YAHOO.util.Dom.get('area_other').checked == true && !isFilledOut('area_other_text')) { alert_text += 'Please enter a value for other type of functional area.\n'; } if (alert_text != '') { alert(alert_text); return false; } return true; } function toggleAreaOther() { var area_other_cb = document.getElementById('area_other'); if (area_other_cb.checked == true) { YAHOO.util.Dom.removeClass('area_other_text', 'bz_default_hidden'); } else { YAHOO.util.Dom.addClass('area_other_text', 'bz_default_hidden'); } } [% END %] [% PROCESS global/header.html.tmpl title = "Contributor Opportunity Submission" style = inline_style javascript = inline_javascript javascript_urls = [ 'extensions/BMO/web/js/form_validate.js' ] %] [% USE Bugzilla %] [% cgi = Bugzilla.cgi %]
[% PROCESS global/footer.html.tmpl %]