[%# 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 %] #web_bounty_form { padding: 10px; } #web_bounty_form .required:after { content: " *"; color: red; } #web_bounty_form .field_label { font-weight: bold; } #web_bounty_form .field_desc { padding-bottom: 3px; } #web_bounty_form .field_desc, #web_bounty_form .head_desc { width: 600px; word-wrap: normal; } #web_bounty_form .head_desc { padding-top: 5px; padding-bottom: 12px; } #web_bounty_form .form_section { margin-bottom: 10px; } #web_bounty_form textarea { font-family: inherit; font-size: inherit; margin: 0 !important; } #web_bounty_form em { font-size: 1em; } [% END %] [% inline_javascript = BLOCK %] function validateAndSubmit() { var alert_text = ''; if (!isFilledOut('short_desc')) alert_text += 'Please enter a value for summary.\n'; if (!isFilledOut('comment')) alert_text += 'Please enter a value for comment.\n'; if (alert_text != '') { alert(alert_text); return false; } return true; } [% END %] [% PROCESS global/header.html.tmpl title = "Web Bounty 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' ] %] [% USE Bugzilla %] [% cgi = Bugzilla.cgi %]