From ebd63c458dc540747e41ebf8280db71298212c29 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Wed, 18 Sep 2013 11:37:42 -0400 Subject: Bug 910728 - User Engagement Project initiation form that generates a bug by default --- .../bug/create/comment-user-engagement.txt.tmpl | 36 ++++ .../bug/create/create-user-engagement.html.tmpl | 219 +++++++++++++++++++++ 2 files changed, 255 insertions(+) create mode 100644 extensions/BMO/template/en/default/bug/create/comment-user-engagement.txt.tmpl create mode 100644 extensions/BMO/template/en/default/bug/create/create-user-engagement.html.tmpl (limited to 'extensions/BMO/template/en/default') diff --git a/extensions/BMO/template/en/default/bug/create/comment-user-engagement.txt.tmpl b/extensions/BMO/template/en/default/bug/create/comment-user-engagement.txt.tmpl new file mode 100644 index 000000000..cff8f23b8 --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/comment-user-engagement.txt.tmpl @@ -0,0 +1,36 @@ +[%# 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. + #%] + +[% USE Bugzilla %] +[% cgi = Bugzilla.cgi +%] +>>Project/Request Title: +[%+ cgi.param('short_desc') %] + +>>Project Goals: +[%+ cgi.param('goals') %] + +>>Who are you trying to reach?: +[%+ cgi.param("audience") %] + +>>Localization: +[%+ cgi.param("localization") %] + +>>Destination URL: +[%+ cgi.param("bug_file_loc") %] + +>>Timing: +[%+ cgi.param("timing_date") %] + +>>Success: +[%+ cgi.param("success") %] + +>>Mozilla Goal: +[%+ cgi.param("mozilla_goal") %] + +>>Points of Contact: +[%+ cgi.param('cc') || 'Not provided' %] diff --git a/extensions/BMO/template/en/default/bug/create/create-user-engagement.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-user-engagement.html.tmpl new file mode 100644 index 000000000..f523b205b --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/create-user-engagement.html.tmpl @@ -0,0 +1,219 @@ +[%# 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 %] +#engagement_form { + padding: 10px; +} +#engagement_form .required:after { + content: " *"; + color: red; +} +#engagement_form .field_label { + font-weight: bold; +} +#engagement_form .field_desc { + padding-bottom: 3px; +} +#engagement_form .field_desc, +#engagement_form .head_desc { + width: 600px; + word-wrap: normal; +} +#engagement_form .head_desc { + padding-top: 5px; + padding-bottom: 12px; +} +#engagement_form .form_section { + margin-bottom: 10px; +} +#engagement_form textarea { + font-family: inherit; + font-size: inherit; +} +#engagement_form em { + font-size: 1em; +} +.yui-calcontainer { + z-index: 2; +} +[% END %] + +[% inline_javascript = BLOCK %] +function validateAndSubmit() { + var alert_text = ''; + if (!isFilledOut('goals')) alert_text += 'Please enter a value for project goals.\n'; + if (!isFilledOut('short_desc')) alert_text += 'Please enter a value for project title.\n'; + if (!isFilledOut('audience')) alert_text += 'Please enter a value for who you are trying to reach.\n'; + if (!isFilledOut('timing_date')) alert_text += 'Please enter a value for project timing.\n'; + if (!isFilledOut('localization')) alert_text += 'Please enter a value for project localization.\n'; + if (!isFilledOut('success')) alert_text += 'Please enter a value for project success\n'; + if (!isFilledOut('bug_file_loc')) alert_text += 'Please enter a value for project destination url.\n'; + if (!isFilledOut('mozilla_goal')) alert_text += 'Please enter a value for Mozilla goal.\n'; + if (alert_text != '') { + alert(alert_text); + return false; + } + return true; +} +function toggleGoalOther() { + var goal_select = YAHOO.util.Dom.get('goal'); + if (goal_select.options[goal_select.selectedIndex].value == 'Other') { + YAHOO.util.Dom.removeClass('goal_other','bz_default_hidden'); + } + else { + YAHOO.util.Dom.addClass('goal_other','bz_default_hidden'); + } +} +[% END %] + +[% PROCESS global/header.html.tmpl + title = "User Engagement Form" + style = inline_style + javascript = inline_javascript + javascript_urls = [ 'extensions/BMO/web/js/form_validate.js', + 'js/field.js', 'js/util.js' ] + yui = [ "autocomplete", "calendar" ] +%] + +[% USE Bugzilla %] +[% cgi = Bugzilla.cgi %] + +
+ + + + + + + + + + + +
+ Have something that you think our users should know about? Is there a campaign that you + think may benefit from promotion on Mozilla’s User Engagement channels?
+
+ Please use this form to help us understand the goals of your project or campaign. + We’ll use this data to recommend a promotional plan that will meet your needs. +
+ +
+ +
+ Please tell us about your request in a few words +
+ +
+ +
+ +
+ Here’s where you tell us all the juicy details, especially your GOALS for this project. + Please tell us “I want to achieve this awesome goal” (ie. increase sign ups for this initiative, + get 1 million users to do X, etc.) rather than “I want a promotion on this specific channel.” +
+ +
+ +
+ +
+ Use this section to explain the type of user you’re targeting. Who is the audience? Consumers? + Early adopters? Developers? Be specific. +
+ +
+ +
+ +
+ Please tell us if your content needs to be localized, and in what languages. + Is the landing page localized? +
+ +
+ +
+ +
+ Where would the user be sent when they click on the promotion? +
+ +
+ +
+ +
+ Here’s where you tell us when the initiative will launch. The content calendar + is determined at least 6 weeks in advance (to accommodate localization, etc.) + so the more notice we have, the better we’ll be able to help you meet your goals. +
+ + +
+ +
+ +
+ +
+ In a few words, tell us how you will define success from promotion to our consumers? + (example: Success is 1000 people clicking on this link.) +
+ +
+ +
+ +
+ What high-level Mozilla goal does this achieve? +
+ +
+ +
+ +
+ Who should be cc’d on this [% terms.bug %] and kept informed of updates? +
+ [% INCLUDE global/userselect.html.tmpl + id => "cc" + name => "cc" + value => "" + size => 80 + classes => ["bz_userfield"] + multiple => 5 + %] +
+ +
+ Once your form has been submitted, a tracking [% terms.bug %] will be created. We will + then reach out for additional info and next steps. Thanks! +
+ + + +

+ [ * Required Field ] +

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