[%# 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 %] #engagement_form { padding: 10px; } #engagement_form .required:after { content: " *"; color: red; } #engagement_form .field_label { font-weight: bold; } #engagement_form .field_desc { padding-bottom: 3px; } #engagement_form .field_desc, #engagement_form .head_desc { width: 600px; word-wrap: normal; } #engagement_form .head_desc { padding-top: 5px; padding-bottom: 12px; } #engagement_form .form_section { margin-bottom: 10px; } #engagement_form textarea { font-family: inherit; font-size: inherit; } #engagement_form em { font-size: 1em; } .yui-calcontainer { z-index: 2; } [% END %] [% inline_javascript = BLOCK %] function validateAndSubmit() { var alert_text = ''; if (!isFilledOut('goals')) alert_text += 'Please enter a value for project goals.\n'; if (!isFilledOut('short_desc')) alert_text += 'Please enter a value for project title.\n'; if (!isFilledOut('audience')) alert_text += 'Please enter a value for who you are trying to reach.\n'; if (!isFilledOut('timing_date')) alert_text += 'Please enter a value for project timing.\n'; if (!isFilledOut('localization')) alert_text += 'Please enter a value for project localization.\n'; if (!isFilledOut('success')) alert_text += 'Please enter a value for project success\n'; if (!isFilledOut('bug_file_loc')) alert_text += 'Please enter a value for project destination url.\n'; if (!isFilledOut('mozilla_goal')) alert_text += 'Please enter a value for Mozilla goal.\n'; if (alert_text != '') { alert(alert_text); return false; } return true; } function toggleGoalOther() { var goal_select = YAHOO.util.Dom.get('goal'); if (goal_select.options[goal_select.selectedIndex].value == 'Other') { YAHOO.util.Dom.removeClass('goal_other','bz_default_hidden'); } else { YAHOO.util.Dom.addClass('goal_other','bz_default_hidden'); } } [% END %] [% PROCESS global/header.html.tmpl title = "User Engagement Form" generate_api_token = 1 style = inline_style javascript = inline_javascript javascript_urls = [ 'extensions/BMO/web/js/form_validate.js', 'js/field.js', 'js/util.js' ] yui = [ "calendar" ] %] [% USE Bugzilla %] [% cgi = Bugzilla.cgi %]
[% PROCESS global/footer.html.tmpl %]