[%# 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 %] #webops { padding: 10px; } #webops .required:after { content: " *"; color: red; } #webops .field_label { font-weight: bold; } #webops .head_desc { width: 600px; word-wrap: normal; } #webops .head_desc { padding-top: 5px; padding-bottom: 12px; } #webops .form_section { margin-bottom: 10px; } #webops textarea { font-family: inherit; font-size: inherit; } [% END %] [% inline_javascript = BLOCK %] function validateAndSubmit() { 'use strict'; var alert_text = ''; var requiredLabels = YAHOO.util.Selector.query('label.required'); if (requiredLabels) { requiredLabels.forEach(function (label) { var id = label.getAttribute('for'); if (id) { if (!isFilledOut(id)) { var desc = label.textContent || id; alert_text += "Please enter a value for " + desc.replace(/[\r\n]+/, "").replace(/\s+/g, " ") + "\n"; } } }); } if (alert_text != '') { alert(alert_text); return false; } return true; } [% END %] [% PROCESS global/header.html.tmpl title = "WebOps Request 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 = [ "autocomplete", "selector" ] %] [% USE Bugzilla %] [% cgi = Bugzilla.cgi %]
[% PROCESS global/footer.html.tmpl %]