From e21bf08fa7ce702453c943964607872a60ba0cd8 Mon Sep 17 00:00:00 2001 From: Sebastin Santy Date: Tue, 11 Oct 2016 18:41:52 -0400 Subject: Bug 1298932 - Please create an IPC request form in Bugzilla --- .htaccess | 1 + .../en/default/bug/create/comment-ipc.txt.tmpl | 43 ++++ .../en/default/bug/create/create-ipc.html.tmpl | 257 +++++++++++++++++++++ extensions/BMO/web/images/ipc_form_buildscreen.png | Bin 0 -> 102103 bytes 4 files changed, 301 insertions(+) create mode 100644 extensions/BMO/template/en/default/bug/create/comment-ipc.txt.tmpl create mode 100644 extensions/BMO/template/en/default/bug/create/create-ipc.html.tmpl create mode 100644 extensions/BMO/web/images/ipc_form_buildscreen.png diff --git a/.htaccess b/.htaccess index 51457a387..2995f4cc7 100644 --- a/.htaccess +++ b/.htaccess @@ -87,6 +87,7 @@ RewriteRule ^form[\.:]third[\.\-:]party$ enter_bug.cgi?product=Marketing&format= RewriteRule ^form[\.:]fsa[\.:]budget$ enter_bug.cgi?product=FSA&format=fsa-budget [QSA] RewriteRule ^form[\.:]triage[\.\-]request$ page.cgi?id=triage_request.html [QSA] RewriteRule ^form[\.:](crm|CRM)$ enter_bug.cgi?product=Marketing&format=crm [QSA] +RewriteRule ^form[\.:](ipc|IPC)$ enter_bug.cgi?product=Marketing&format=ipc [QSA] RewriteRule ^form[\.:]nda$ enter_bug.cgi?product=Legal&format=nda [QSA] RewriteRule ^form[\.:]name[\.:]clearance$ enter_bug.cgi?product=Legal&format=name-clearance [QSA] RewriteRule ^rest/(.*)$ rest.cgi/$1 [NE] diff --git a/extensions/BMO/template/en/default/bug/create/comment-ipc.txt.tmpl b/extensions/BMO/template/en/default/bug/create/comment-ipc.txt.tmpl new file mode 100644 index 000000000..c25aff329 --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/comment-ipc.txt.tmpl @@ -0,0 +1,43 @@ +[%# 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 team are you are a part of? +[%+ cgi.param("team_name") %] + +>> Will your snippet need to appear in a language other than English? +[%+ cgi.param("language").join(', ') %] + +>> Does your snippet need to be targeted to a particular country? +[%+ cgi.param("target_country") %] + +>> Insert your tagged link here. +[%+ cgi.param("tagged_link") %] + +>> When would you like your snippet to start its run? +[%+ cgi.param("start_run") %] + +>> When would you like your snippet to complete its run? +[%+ cgi.param("complete_run") %] + +>> Will you be able to provide the following assets for your snippet? +[%+ cgi.param("snippet_assets").join(', ') %] + +>> Your name? +[%+ cgi.param("name") %] + +>> E-mail? +[%+ cgi.param("email") %] + +>> Anything else you would like to add? +[%+ cgi.param("else") %] + +>> Who do you think is coolest? +[%+ cgi.param("bonus") %] diff --git a/extensions/BMO/template/en/default/bug/create/create-ipc.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-ipc.html.tmpl new file mode 100644 index 000000000..b24bf427f --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/create-ipc.html.tmpl @@ -0,0 +1,257 @@ +[%# 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): Sebastin Santy + #%] + +[% 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 + }); + $('#langothers').on('focus', function(){ + document.getElementById("langothersradio").checked = true; + }); + $('#assetothers').on('focus', function(){ + document.getElementById("assetothersradio").checked = true; + }); + $('.date_field-img') + .click(function(event) { + var id = $(event.target).attr('id').replace(/-img$/, ''); + $('#' + id).datetimepicker('show'); + }); + $('#ipcForm').submit(function() { + $('#short_desc').val($('#short_desc').val() + ': ' + $('#team_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 = "IPC 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" ] +%] + +
IPC Requests
+
+

You’ve decided to use the snippet channel to drive attention to one of your projects, awesome! The snippet channel drives hundreds of millions of impressions a month. It’s great tool to support your marketing efforts. Complete this form and we will follow up with you soon (maybe today, but definitely within 3 days). +

+

+ Tell us more: +

+ +
+ + + + + + + + + + + [% IF user.in_group('canconfirm') %] + + [% END %] + +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ Will your snippet need to appear in a language other than English? If so, please specify. +
+ +
+ +
+ +
+ +
+ +
+ +
+ + + +
+ +
+
+ +
+ +
+ +

+ If you would like your snippet to include a link, please tag it by using the URL builder (http://bit.ly/1JOgDr1) and following the steps below: +

+

+
+
+ +
+ +
+ +

+ Please reference the Mozilla In-Product Messaging Calendar for available dates. http://bit.ly/2aZ3w9c +

+ +
+
+ +
+ + +
+ +
+
+ +
+ + +
+ +
+
+ Will you be able to provide the following assets for your snippet? Check all that apply.
Feel free to look at our existing icon library: http://bit.ly/2aWTmqT +
+ +
+ +
+ +
+ + + +
+ + + + + +
+
+ +
+ +
+

Bonus Question

+
+
+ Who do you think is coolest? +
+ +
+ +
+ +
+ +
+
+ +

Thanks for reaching out. Click submit and we will be back with you shortly.

+ + +

+ [ * Required Field ] +

+
+
+ +[% PROCESS global/footer.html.tmpl %] \ No newline at end of file diff --git a/extensions/BMO/web/images/ipc_form_buildscreen.png b/extensions/BMO/web/images/ipc_form_buildscreen.png new file mode 100644 index 000000000..d98207d29 Binary files /dev/null and b/extensions/BMO/web/images/ipc_form_buildscreen.png differ -- cgit v1.2.3-24-g4f1b