From 42227795b6d7a4f87a034609998a002a1a6bd13a Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Fri, 9 Jan 2015 22:31:55 +0000 Subject: Bug 1108805: Creation of new data compliance bug --- .htaccess | 1 + extensions/BMO/lib/Data.pm | 1 + .../bug/create/comment-data-compliance.txt.tmpl | 28 +++ .../bug/create/create-data-compliance.html.tmpl | 222 +++++++++++++++++++++ .../en/default/bug/create/custom_forms.none.tmpl | 7 + 5 files changed, 259 insertions(+) create mode 100644 extensions/BMO/template/en/default/bug/create/comment-data-compliance.txt.tmpl create mode 100644 extensions/BMO/template/en/default/bug/create/create-data-compliance.html.tmpl diff --git a/.htaccess b/.htaccess index 6f08c795a..9a5f71f31 100644 --- a/.htaccess +++ b/.htaccess @@ -75,5 +75,6 @@ RewriteRule ^form[\.:]fxos[\.\-:]mcts[\.\-:]waiver$ enter_bug.cgi?product=Firefo RewriteRule ^form[\.:]comm[\.:]newsletter$ enter_bug.cgi?product=Marketing&format=comm-newsletter RewriteRule ^form[\.:]screen[\.:]share[\.:]whitelist$ enter_bug.cgi?product=Firefox&format=screen-share-whitelist RewriteRule ^form[\.:]webops[\.\-:]request$ enter_bug.cgi?product=Infrastructure+\%26+Operations&format=webops-request +RewriteRule ^form[\.:]data[\.\-:]compliance$ enter_bug.cgi?product=Data+Compliance&format=data-compliance RewriteRule ^rest/(.*)$ rest.cgi/$1 [NE] RewriteRule ^bzapi/(.*)$ extensions/BzAPI/bin/rest.cgi/$1 [NE] diff --git a/extensions/BMO/lib/Data.pm b/extensions/BMO/lib/Data.pm index ab3ac4087..7db6f72f7 100644 --- a/extensions/BMO/lib/Data.pm +++ b/extensions/BMO/lib/Data.pm @@ -90,6 +90,7 @@ tie(%$cf_visible_in_products, "Tie::IxHash", "bugzilla.mozilla.org" => [], "Community Building" => [], "Data & BI Services Team" => [], + "Data Compliance" => [], "Developer Engagement" => [], "Infrastructure & Operations" => [], "Marketing" => [], diff --git a/extensions/BMO/template/en/default/bug/create/comment-data-compliance.txt.tmpl b/extensions/BMO/template/en/default/bug/create/comment-data-compliance.txt.tmpl new file mode 100644 index 000000000..de3863093 --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/comment-data-compliance.txt.tmpl @@ -0,0 +1,28 @@ +[%# 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 %] + +> Request Type +[%+ cgi.param('request_type') %] + +> Area +[%+ cgi.param('area') %] + +> Description +[%+ cgi.param('desc') %] + +> Does this request involve a change in data collection or handling? +[%+ cgi.param('handling_change') %] + +> Does this request involve a change in to the business unit's data practices? +[%+ cgi.param('practice_change') %] + +> Other Information +[%+ cgi.param('other') || "None" %] diff --git a/extensions/BMO/template/en/default/bug/create/create-data-compliance.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-data-compliance.html.tmpl new file mode 100644 index 000000000..d1405f459 --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/create-data-compliance.html.tmpl @@ -0,0 +1,222 @@ +[%# 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_css = BLOCK %] +#data_comp_form { + width: 60%; +} +#data_comp_form .required:after { + content: " *"; + color: red; +} +#data_comp_form .field_label { + text-align: left; + font-weight: bold; +} +#data_comp_form .field_desc, +#data_comp_form .head_desc { + word-wrap: normal; +} +#data_comp_form .head_desc { + font-size: 1.25em; + padding-bottom: .5em; +} +#data_comp_form .form_section { + margin-bottom: 1em; + padding-left: 2em; +} +.yui-calcontainer { + z-index: 2; +} +[% END %] + +[% inline_javascript = BLOCK %] + function validateAndSubmit() { + var alert_text = ''; + var required_labels = YAHOO.util.Selector.query('label.required'); + if (required_labels.length) { + required_labels.forEach(function (label) { + var id = label.getAttribute('for'); + if (id && !isFilledOut(id)) { + var desc = label.textContent || id; + alert_text += "Please select or enter a value for" + + desc.replace(/[\r\n]+/, "").replace(/\s+/g, " ") + + "\n"; + } + }); + } + if (alert_text != '') { + alert(alert_text); + return false; + } + return true; + } +[% END %] + +[% PROCESS global/header.html.tmpl + title = "Data Compliance Form" + style = inline_css + style_urls = [ 'skins/standard/enter_bug.css' ] + javascript = inline_javascript + javascript_urls = [ 'js/field.js', + 'js/util.js', + 'extensions/BMO/web/js/form_validate.js' ] + yui = [ 'calendar', 'selector' ] +%] + +

Data Compliance Form

+ +
+ + + + + + + + + + + + + +
+ Looking to make changes to your data collection and handling, request changes + to your business unit's data practices or request & document exceptions to + those practices, or raise broader data collection issues with the data + compliance team? Please fill out this form. +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ Describe the issue in one sentence. +
+ +
+ +
+ +
+ Describe the data compliance issue. +
+ +
+ +
+ +
+ Describe the timeline or due date. +
+ [% INCLUDE bug/field.html.tmpl + bug = default + field = bug_fields.cf_due_date + editable = 1 + no_tds = 1 + value = default.cf_due_date + %] +
+ +
+ +
+ [% INCLUDE bug/field.html.tmpl + bug = default + field = bug_fields.bug_severity + editable = 1 + no_tds = 1 + value = default.bug_severity + %] +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ Please include any additional information, including links to relevant + material, details regarding user benefit, etc. +
+ +
+ + + +
+ +[% PROCESS global/footer.html.tmpl %] diff --git a/extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl b/extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl index e07585205..14fa71b76 100644 --- a/extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl +++ b/extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl @@ -184,5 +184,12 @@ custom_forms = { title => "Firefox OS Pre-load App", }, ], + "Data Compliance" => [ + { + link => "form.data.compliance", + title => "Data Compliance Form", + }, + ], + } %] -- cgit v1.2.3-24-g4f1b