[%# 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 %] #fsa_form .required:after { content: " *"; color: red; } #fsa_form .field_label { text-align: left; font-weight: bold; } #fsa_form .field_desc, #fsa_form .head_desc { word-wrap: normal; } #fsa_form .head_desc { font-size: 1.5em; padding-bottom: .5em; } #fsa_form .form_section { margin-bottom: 1em; } .yui-calcontainer { z-index: 2; } [% END %] [% inline_javascript = BLOCK %] function trySubmit() { var firstname = document.getElementById('firstname').value; var lastname = document.getElementById('lastname').value; var eventpage = document.getElementById('eventpage').value; var shortdesc = 'Budget Request - ' + firstname + ' ' + lastname + ' - ' + eventpage; document.getElementById('short_desc').value = shortdesc; return true; } function validateAndSubmit() { var alert_text = ''; if (!isFilledOut('firstname')) alert_text += "Please enter your first name\n"; if (!isFilledOut('lastname')) alert_text += "Please enter your last name\n"; if (!isFilledOut('profilepage')) alert_text += "Please enter your profile page.\n"; if (!isFilledOut('eventpage')) alert_text += "Please enter an event page address.\n"; if (!isFilledOut('cf_due_date')) alert_text += "Please enter an event date.\n"; if (!isFilledOut('position')) alert_text += "Please enter a value for position.\n"; if (!isFilledOut('country')) alert_text += "Please enter a valid value for country.\n"; if (!isFilledOut('budgettotal')) alert_text += "Please enter the total budget for the event.\n"; if (!isFilledOut('service1') || !isFilledOut('cost1')) alert_text += "Please enter at least one service and cost value.\n"; //Everything required is filled out..try to submit the form! if (alert_text == '') { return trySubmit(); } //alert text, stay here on the pagee alert(alert_text); return false; } [% END %] [% PROCESS global/header.html.tmpl title = "FSA Budget Request Form" generate_api_token = 1 style = inline_style style_urls = [ 'skins/standard/enter_bug.css' ] javascript = inline_javascript javascript_urls = [ 'extensions/BMO/web/js/form_validate.js', 'js/util.js', 'js/field.js' ] yui = [ 'calendar' ] %]
* - Required Fields
Thanks for contacting us.
[% PROCESS global/footer.html.tmpl %]