[%# 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 %] #creative_form { padding: 10px; } #creative_form .required:after { content: " *"; color: red; } #creative_form .field_label { font-weight: bold; } #creative_form .field_desc { padding-bottom: 3px; } #creative_form .field_desc, #creative_form .head_desc { width: 600px; word-wrap: normal; } #creative_form .head_desc { padding-top: 5px; padding-bottom: 12px; } #creative_form .form_section { margin-bottom: 10px; } #creative_form textarea { font-family: inherit; font-size: inherit; } #creative_form em { font-size: 1em; } .yui-calcontainer { z-index: 2; } [% END %] [% inline_javascript = BLOCK %] function validateAndSubmit() { var alert_text = ''; if (!isFilledOut('overview')) alert_text += 'Please enter a value for Project Overview.\n'; if (!isFilledOut('short_desc')) alert_text += 'Please enter a value for Request Title.\n'; if (!isFilledOut('specs')) alert_text += 'Please enter a value for Creative Specs.\n'; if (!isFilledOut('goal')) alert_text += 'Please select a value for Mozilla Goal.\n'; if (YAHOO.util.Dom.get('goal').value == 'Other') { if (!isFilledOut('goal_other')) alert_text += 'Please select a value for Mozilla Goal Other.\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 = "Creative Initiation Form" style = inline_style javascript = inline_javascript javascript_urls = [ 'extensions/BMO/web/js/form_validate.js', 'js/field.js', 'js/util.js' ] yui = [ "autocomplete", "calendar" ] %] [% USE Bugzilla %] [% cgi = Bugzilla.cgi %]
[% PROCESS global/footer.html.tmpl %]