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 --- .../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 + 3 files changed, 257 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 (limited to 'extensions/BMO/template/en/default') 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