From 6b551fb974b947549474147015cb0d330b97f6a8 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Mon, 28 Nov 2016 18:08:17 +0000 Subject: Bug 1310757 - Update form: bugzilla.mozilla.org/form.CRM --- .../en/default/bug/create/comment-crm.txt.tmpl | 66 +++---- .../en/default/bug/create/create-crm.html.tmpl | 219 ++++++++------------- 2 files changed, 107 insertions(+), 178 deletions(-) (limited to 'extensions/BMO/template/en') 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 index 29967147e..00da650bb 100644 --- a/extensions/BMO/template/en/default/bug/create/comment-crm.txt.tmpl +++ b/extensions/BMO/template/en/default/bug/create/comment-crm.txt.tmpl @@ -9,47 +9,25 @@ [% 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") %] +[%- MACRO cmt_field(name, content) BLOCK -%] +>> [% content FILTER clean_text %] +[%+ cgi.param(name) %] + +[% END %] + +[% cmt_field('mozilla_team_dept', 'Mozilla Team/Department') %] +[% cmt_field('relationship_development', 'What kind of relationships are you looking to develop?') %] +[% cmt_field('relationship_goal', 'How will you nurture these relationships?') %] +[% IF cgi.param('new_program_request') == 'Yes' %] +[% cmt_field('way_to_solve', 'Do you currently have a way to solve for this?') %] +[% cmt_field('pain_points', 'What are the pain points in the current process?') %] +[% cmt_field('perceived_benefits', 'What are the perceived benefits to changing the process?') %] +[% cmt_field('data_size', 'How large is the data set?') %] +[% cmt_field('how_many_train_people', 'How many people on your team need access or training?') %] +[% END %] +[% cmt_field('kpis', 'How will success be measured?') %] +[% cmt_field('risk', 'What is the risk to not doing this?') %] +[% cmt_field('timeline_for_launch', 'What\'s the timeline for launch?') %] +[% IF cgi.param('other_info') %] +[% cmt_field('other_info', 'Any other info we should know?') %] +[% END %] \ No newline at end of file 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 index 9ba818c80..2bb184f5b 100644 --- a/extensions/BMO/template/en/default/bug/create/create-crm.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-crm.html.tmpl @@ -46,33 +46,20 @@ p { [% 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() { + $('#new_program_request').change(function() { + if ($('#new_program_request').val() == 'Yes') { + $('.new_program_request_row').show(); + $('.new_program_request_row').find('textarea').each(function() { $(this).attr('required', true); }); } else { - $('#email_cadence_row').hide(); - $('input[name="email_cadence"]').each(function() { - $(this).removeProp('required'); + $('.new_program_request_row').hide(); + $('.new_program_request_row').find('textarea').each(function() { + $(this).removeAttr('required'); }); } }); @@ -92,18 +79,16 @@ $(document).ready(function() {
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): -

+

Mozilla continues to build our core, grow our influence, and prototype the + future. Making connections and cultivating relationships is critical to helping + people know our brands, programs and products, and take action with us.

+ +

Do you have Constituents, Contributors, or + Customers whose Relationships you want to help + nurture and manage?

+ +

Tell us more and then join our weekly meeting for next steps (we’ll send you + the invite details once you submit the [% terms.bug %]):

@@ -129,6 +114,15 @@ $(document).ready(function() {
+
+
+ +
+ +
+