[%# 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 %] #bug_form input[type=text], #bug_form input[type=file], #cc_autocomplete, #bug_form textarea { width: 100%; } [% END %] [% inline_js = BLOCK %] var compdesc = new Array(); [% FOREACH comp = product.components %] compdesc['[% comp.name FILTER js %]'] = '[% comp.description FILTER js %]'; [% END %] function showCompDesc(component) { var value = component.value; document.getElementById('comp_description').innerHTML = compdesc[value]; } function onSubmit() { var alert_text = ''; if (!isFilledOut('component')) alert_text += "Please select a value for request type.\n"; if (!isFilledOut('short_desc')) alert_text += "Please enter a value for the summary.\n"; if (!isFilledOut('team_priority')) alert_text += "Please select a value for team priority.\n"; if (!isFilledOut('signature_time')) alert_text += "Please enter a value for signture timeframe.\n"; if (!isFilledOut('other_party')) alert_text += "Please enter a value for the name of other party.\n"; if (!isFilledOut('business_obj')) alert_text += "Please enter a value for business objective.\n"; if (!isFilledOut('what_purchase')) alert_text += "Please enter a value for what you are purchasing.\n"; if (!isFilledOut('why_purchase')) alert_text += "Please enter a value for why the purchase is needed.\n"; if (!isFilledOut('risk_purchase')) alert_text += "Please enter a value for the risk if not purchased.\n"; if (!isFilledOut('alternative_purchase')) alert_text += "Please enter a value for the purchase alternative.\n"; if (!isFilledOut('total_cost')) alert_text += "Please enter a value for total cost.\n"; if (!isFilledOut('attachment')) alert_text += "Please enter an attachment.\n"; if (alert_text != '') { alert(alert_text); return false; } return true; } [% END %] [% PROCESS global/header.html.tmpl title = "Finance" style = inline_style style_urls = [ 'skins/standard/enter_bug.css' ] javascript = inline_js javascript_urls = [ 'extensions/BMO/web/js/form_validate.js', 'js/attachment.js', 'js/field.js', 'js/util.js' ] onload = "showCompDesc(document.getElementById('component'));" %]
All fields are mandatory
[% PROCESS global/footer.html.tmpl %]