From f7afaa06475eec2d797c70844ed85661d189c368 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 22 Dec 2014 16:45:14 +0800 Subject: Bug 1112311: Changes to Brand Engagement Initiation form --- .../default/bug/create/comment-creative.txt.tmpl | 5 ++- .../default/bug/create/create-creative.html.tmpl | 51 ++++++++++++++++++---- 2 files changed, 47 insertions(+), 9 deletions(-) (limited to 'extensions/BMO/template/en/default') diff --git a/extensions/BMO/template/en/default/bug/create/comment-creative.txt.tmpl b/extensions/BMO/template/en/default/bug/create/comment-creative.txt.tmpl index 311736b5e..8187e4a51 100644 --- a/extensions/BMO/template/en/default/bug/create/comment-creative.txt.tmpl +++ b/extensions/BMO/template/en/default/bug/create/comment-creative.txt.tmpl @@ -35,5 +35,8 @@ Other: [% IF cgi.param('type_other') %][% cgi.param('type_other_text') %][% EL >>Mozilla Goal: [%+ IF cgi.param("goal_other") %][% cgi.param("goal_other") %][% ELSE %][% cgi.param("goal") %][% END %] +>>Mozilla Creative Collective: +[%+ cgi.param("collective") ? "Yes" : "No" %] + >>Points of Contact: -[%+ cgi.param('cc').join(', ') || 'Not provided' %] +[%+ cgi.param('poc').join(', ') || 'Not provided' %] diff --git a/extensions/BMO/template/en/default/bug/create/create-creative.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-creative.html.tmpl index 0c4fad8d6..81e833f56 100644 --- a/extensions/BMO/template/en/default/bug/create/create-creative.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-creative.html.tmpl @@ -41,6 +41,9 @@ #creative_form em { font-size: 1em; } +#creative_form input[disabled] { + background: transparent; +} .yui-calcontainer { z-index: 2; } @@ -72,6 +75,16 @@ function validateAndSubmit() { alert(alert_text); return false; } + + document.getElementById('cc').value = document.getElementById('poc').value; + if (document.getElementById('collective').checked) { + document.getElementById('cc').value = document.getElementById('cc').value + + 'smartell@mozilla.com, enoonan@mozilla.com'; + document.getElementById('status_whiteboard').value = 'Creative Collective Project'; + } else { + document.getElementById('status_whiteboard').value = ''; + } + return true; } function toggleGoalOther() { @@ -117,6 +130,8 @@ function toggleTypeOther(element) { + + @@ -148,11 +163,19 @@ function toggleTypeOther(element) {
Select what sort of help you need (check at least one or more)
- Copy
- Design
- Video
- Other   -
+ + +
+ + +
+ + +
+ +    + +

Specs
@@ -228,13 +251,25 @@ function toggleTypeOther(element) {
- + +
+ + +
+
+ +
+
Who should be kept in the loop and informed of updates (and CC'd on the [% terms.bug %])?
[% INCLUDE global/userselect.html.tmpl - id => "cc" - name => "cc" + id => "poc" + name => "poc" value => "" size => 80 classes => ["bz_userfield"] -- cgit v1.2.3-24-g4f1b