From 2cb62213b7827ab66d8ca2dc3d3aadb84709f74d Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Fri, 25 Mar 2016 20:21:00 +0000 Subject: Bug 1253718 - CRM/Email request form --- .../en/default/bug/create/comment-crm.txt.tmpl | 55 ++++ .../en/default/bug/create/create-crm.html.tmpl | 306 +++++++++++++++++++++ 2 files changed, 361 insertions(+) create mode 100644 extensions/BMO/template/en/default/bug/create/comment-crm.txt.tmpl create mode 100644 extensions/BMO/template/en/default/bug/create/create-crm.html.tmpl (limited to 'extensions/BMO/template') diff --git a/extensions/BMO/template/en/default/bug/create/comment-crm.txt.tmpl b/extensions/BMO/template/en/default/bug/create/comment-crm.txt.tmpl new file mode 100644 index 000000000..29967147e --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/comment-crm.txt.tmpl @@ -0,0 +1,55 @@ +[%# 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 %] + +>> What kind of relationships are you looking to develop? +[%+ cgi.param("relationship_development") %] + +>> What will you do with these relationships? +[%+ cgi.param("relationship_goal") %] + +>> In this a new email program request? +[%+ cgi.param("new_email_request") %] + +[% IF cgi.param("email_cadence") %] +>> Cadence of planned email engagement +[%+ cgi.param("email_cadence") %] + +[% END -%] + +>> What initiative does this support? +[%+ cgi.param("support_initiative") %] + +>> Do you currently have a way to solve for this? +[%+ cgi.param("solution") %] + +>> What are the pain points in the current process? +[%+ cgi.param("pain_points") %] + +>> What are the perceived benefits to changing the process? +[%+ cgi.param("benefits") %] + +>> How will success be measured? +[%+ cgi.param("kpis") %] + +>> What is the risk to not doing this? +[%+ cgi.param("risk") %] + +>> What does success look like? +[%+ cgi.param("success_outcome") %] + +>> How many people will need access to the CRM platform? +[%+ cgi.param("access_amount") %] + +>> How large is the data set? +[%+ cgi.param("data_size") %] + +>> When is this program needed? +[%+ cgi.param("cf_due_date") %] diff --git a/extensions/BMO/template/en/default/bug/create/create-crm.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-crm.html.tmpl new file mode 100644 index 000000000..9ba818c80 --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/create-crm.html.tmpl @@ -0,0 +1,306 @@ +[%# 1.0@bugzilla.org %] +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Mozilla Corporation. + # Portions created by Mozilla are Copyright (C) 2008 Mozilla + # Corporation. All Rights Reserved. + # + # Contributor(s): Mark Smith + # Reed Loden + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% inline_style = BLOCK %] +#heading { + width: 98%; + font-size: 2em; + font-weight: bold; + margin: 12px; +} +.required:before { + content: "* "; + color: red; +} +.required_star { + color: red; +} +p { + max-width: 40%; +} +.row { + padding-bottom: 10px; +} +[% END %] + +[% inline_javascript = BLOCK %] +$(document).ready(function() { + $('.date_field').datetimepicker({ + format: 'Y-m-d', + datepicker: true, + timepicker: false, + scrollInput: false, + lazyInit: false, + closeOnDateSelect: true + }); + $('.date_field-img') + .click(function(event) { + var id = $(event.target).attr('id').replace(/-img$/, ''); + $('#' + id).datetimepicker('show'); + }); + $('#crmForm').submit(function() { + $('#short_desc').val($('#short_desc').val() + ': ' + $('#program_name').val()); + }); + $('#new_email_request').on('change', function() { + if ($('#new_email_request').val() == 'Yes') { + $('#email_cadence_row').show(); + $('input[name="email_cadence"]').each(function() { + $(this).attr('required', true); + }); + } + else { + $('#email_cadence_row').hide(); + $('input[name="email_cadence"]').each(function() { + $(this).removeProp('required'); + }); + } + }); +}); +[% END %] + +[% PROCESS global/header.html.tmpl + title = "CRM/Email Marketing Request" + generate_api_token = 1 + style_urls = [ "skins/standard/attachment.css", + "js/jquery/plugins/datetimepicker/datetimepicker.css" ] + style = inline_style + javascript = inline_javascript + javascript_urls = [ "js/field.js", "js/util.js" ] + jquery = [ "datetimepicker" ] +%] + +
CRM/Email Marketing Requests
+
+

+ Mozilla has set goals to build our core, grow our influence, and prototype the future. To do so at scale, we need + to enable people to join up with Mozilla. Making connections and cultivating relationships will be critical to + helping people know and understand our brands, programs and products, and take action with us. +

+

+ Do you have Consitutents, Contributors, or Customers whose Relationships you want to + help nuture and Manage? Want some CRM or email software to help enable you to do exactly that? +

+

+ Tell us more (all fields are required): +

+ +
+ + + + + + + + + + + [% IF user.in_group('canconfirm') %] + + [% END %] + +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ + + +
+
+ What initiative does this support? +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ + +
+ +
+
+ +
+ [% INCLUDE global/userselect.html.tmpl + id => "cc" + name => "cc" + value => "" + size => 80 + classes => ["bz_userfield"] + multiple => 5 + %] +
+ +

+ [ * Required Field ] +

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