From 41e58e2f043162806bfb9fd3723a5391c9599de2 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Mon, 13 Oct 2014 21:38:24 +0000 Subject: Bug 1080554: Create custom entry form for submissions to Mozilla Communities newsletter --- .../bug/create/create-comm-newsletter.html.tmpl | 251 +++++++++++++++++++++ 1 file changed, 251 insertions(+) create mode 100644 extensions/BMO/template/en/default/bug/create/create-comm-newsletter.html.tmpl (limited to 'extensions/BMO/template/en/default/bug/create/create-comm-newsletter.html.tmpl') diff --git a/extensions/BMO/template/en/default/bug/create/create-comm-newsletter.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-comm-newsletter.html.tmpl new file mode 100644 index 000000000..5e1a13c9a --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/create-comm-newsletter.html.tmpl @@ -0,0 +1,251 @@ +[%# 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 %] +#newsletter_form { + padding: 10px; +} +#newsletter_form .required:after { + content: " *"; + color: red; +} +#newsletter_form .field_label { + font-weight: bold; +} +#newsletter_form .field_desc { + padding-bottom: 3px; +} +#newsletter_form .field_desc, +#newsletter_form .head_desc { + width: 600px; + word-wrap: normal; +} +#newsletter_form .head_desc { + padding-top: 5px; + padding-bottom: 12px; +} +#newsletter_form .form_section { + margin-bottom: 10px; +} +#newsletter_form textarea { + font-family: inherit; + font-size: inherit; +} +#newsletter_form em { + font-size: 1em; +} +.yui-calcontainer { + z-index: 2; +} +[% END %] + +[% inline_javascript = BLOCK %] +function validateAndSubmit() { + var alert_text = ''; + if (!isFilledOut('short_desc')) alert_text += 'Please enter a value for opportunity headline.\n'; + if (!isFilledOut('description')) alert_text += 'Please enter a value for description.\n'; + if (!isFilledOut('time_required')) alert_text += 'Please enter a value for time required.\n'; + if (!isFilledOut('primary_contact')) alert_text += 'Please enter a value for contact email.\n'; + if (!isFilledOut('timeframe')) alert_text += 'Please select a value for timeframe.\n'; + if (YAHOO.util.Dom.get('area_other').checked == true + && !isFilledOut('area_other_text')) + { + alert_text += 'Please enter a value for other type of functional area.\n'; + } + if (alert_text != '') { + alert(alert_text); + return false; + } + return true; +} +function toggleAreaOther() { + var area_other_cb = document.getElementById('area_other'); + if (area_other_cb.checked == true) { + YAHOO.util.Dom.removeClass('area_other_text', 'bz_default_hidden'); + } + else { + YAHOO.util.Dom.addClass('area_other_text', 'bz_default_hidden'); + } +} +[% END %] + +[% PROCESS global/header.html.tmpl + title = "Contributor Opportunity Submission" + style = inline_style + javascript = inline_javascript + javascript_urls = [ 'extensions/BMO/web/js/form_validate.js' ] +%] + +[% USE Bugzilla %] +[% cgi = Bugzilla.cgi %] + +
+ + + + + + + + + +

Contributor Opportunity Submission

+ +
+ I have a contribution opportunity I’d like to promote for use in the Mozilla + Communities newsletter and beyond! +
+ +

+ [ * Required Field ] +

+ +
+ +
+ What's the opportunity called? +
+ +
+ +
+ +
+ Can contributors do this only one time or are you looking for long-term + contributors? +
+ One time
+ Recurring +
+ +
+ +
+ Please describe how contributors can help or participate and how might you + recognize their participation. Please also include any information about how + it fits into the Mozilla Mission or Goals for 2014 +
+ +
+ +
+ +
+ Approximately how much time per volunteer, will this task take? +
+ +
+ +
+ +
+ Your contact information +
+ +
+ +
+ +
+ Is there someone else we can reach out to for information on this project? +
+ +
+ +
+ +
+ What product or functional area does this opportunity relate to? Click + multiple areas if they apply (ie both Marketplace and UX) +
+ Coding
+ Community Building
+ Education
+ Badges
+ UX
+ Design
+ Marketing
+ Engagement
+ Firefox Desktop
+ Firefox for Android
+ Firefox OS
+ Marketplace
+ User Research
+ Security
+ Support
+ Public Policy
+ Privacy
+ Other:
+ +
+ +
+ +
+ Please provide specifics on the timeframe for the opportunity. It can be + ongoing, but the newsletter is especially oriented toward time sensitive + contribution. +
+ +
+ +
+ +
+ We especially appreciate mozilla.org urls as we can instrument them more easily + to count responses, but we accept other ones too. +
+ +
+ + + +
+ +[% PROCESS global/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b