From 607415d6cf299bc7b57e10b825e881058d439ba3 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Thu, 19 Sep 2013 11:00:12 -0400 Subject: Bug 897236 - Request for Web bounty bugzilla form --- .htaccess | 1 + .../default/bug/create/create-web-bounty.html.tmpl | 142 +++++++++++++++++++++ 2 files changed, 143 insertions(+) create mode 100644 extensions/BMO/template/en/default/bug/create/create-web-bounty.html.tmpl diff --git a/.htaccess b/.htaccess index 71ba3dcbf..e6b7e14ea 100644 --- a/.htaccess +++ b/.htaccess @@ -65,4 +65,5 @@ RewriteRule ^form[\.:]creative$ enter_bug.cgi?product=Marketing&format=creative RewriteRule ^form[\.:]user[\.\-:]engagement$ enter_bug.cgi?product=Marketing&format=user-engagement RewriteRule ^form[\.:]dev[\.\-:]engagement[\.\-\:]event$ enter_bug.cgi?product=Developer+Engagement&format=dev-engagement-event RewriteRule ^form[\.:]mobile[\.\-:]compat$ enter_bug.cgi?product=Tech+Evangelism&format=mobile-compat +RewriteRule ^form[\.:]web[\.:]bounty$ enter_bug.cgi?product=mozilla.org&format=web-bounty RewriteRule ^rest/(.*)$ rest.cgi/$1 [NE] diff --git a/extensions/BMO/template/en/default/bug/create/create-web-bounty.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-web-bounty.html.tmpl new file mode 100644 index 000000000..2e9432d38 --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/create-web-bounty.html.tmpl @@ -0,0 +1,142 @@ +[%# 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" + 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 %] + +
+ + + + + + + + + + + + + + + + +
+ +
+ A short description of the issue being reported including the host name + for the website on which it exists (example xss in blarg.foo.mozilla.org) +
+ +
+ +
+ +
+ How was this issue discovered, include the steps, tools or other information that + will help reproduce and diagnose the issue. A good primer on what to include can + be found here. +
+ +
+ +
+ +
+ The full URL (hostname/subpage) where the issue exists (if the URL is especially long + please just include it in the comments) +
+ +
+ +
+ +
+ A file that can add context to the report, such as a screen shot or code block for + reproduction purposes. +
+ + +
+ +
+ +
+ + + +

+ [ * Required Field ] +

+ +
+ +[% PROCESS global/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b