From 925a2dfca8dd583a633a492999d11352f4a4900c Mon Sep 17 00:00:00 2001 From: Dylan Hardison Date: Mon, 16 Nov 2015 16:28:05 -0500 Subject: Bug 1187429 - Remove the WebOps Request Form --- .../bug/create/comment-webops-request.txt.tmpl | 24 --- .../bug/create/create-webops-request.html.tmpl | 172 --------------------- .../en/default/bug/create/custom_forms.none.tmpl | 4 - 3 files changed, 200 deletions(-) delete mode 100644 extensions/BMO/template/en/default/bug/create/comment-webops-request.txt.tmpl delete mode 100644 extensions/BMO/template/en/default/bug/create/create-webops-request.html.tmpl (limited to 'extensions/BMO/template/en/default/bug/create') diff --git a/extensions/BMO/template/en/default/bug/create/comment-webops-request.txt.tmpl b/extensions/BMO/template/en/default/bug/create/comment-webops-request.txt.tmpl deleted file mode 100644 index 2068ead7f..000000000 --- a/extensions/BMO/template/en/default/bug/create/comment-webops-request.txt.tmpl +++ /dev/null @@ -1,24 +0,0 @@ -[%# 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 %] -[% USE Bugzilla %] -[% cgi = Bugzilla.cgi +%] -> What are you asking us to do? -[%+ cgi.param('desc_1') %] - -> What is the problem you are trying to solve? -[%+ cgi.param('desc_2') %] - -> How would you solve this problem? How has this problem been solved in the past? -[%+ cgi.param('desc_3') %] - -> Who might be impacted by this change? -[%+ cgi.param('desc_4') %] - -> What are the known dependencies for this request? -[%+ cgi.param('desc_5') %] diff --git a/extensions/BMO/template/en/default/bug/create/create-webops-request.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-webops-request.html.tmpl deleted file mode 100644 index 03325469f..000000000 --- a/extensions/BMO/template/en/default/bug/create/create-webops-request.html.tmpl +++ /dev/null @@ -1,172 +0,0 @@ -[%# 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_style = BLOCK %] -#webops { - padding: 10px; -} -#webops .required:after { - content: " *"; - color: red; -} -#webops .field_label { - font-weight: bold; -} -#webops .head_desc { - width: 600px; - word-wrap: normal; -} -#webops .head_desc { - padding-top: 5px; - padding-bottom: 12px; -} -#webops .form_section { - margin-bottom: 10px; -} -#webops textarea { - font-family: inherit; - font-size: inherit; -} -[% END %] - -[% inline_javascript = BLOCK %] -function validateAndSubmit() { - 'use strict'; - var alert_text = ''; - var requiredLabels = YAHOO.util.Selector.query('label.required'); - if (requiredLabels) { - requiredLabels.forEach(function (label) { - var id = label.getAttribute('for'); - if (id) { - if (!isFilledOut(id)) { - var desc = label.textContent || id; - alert_text += - "Please 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 = "WebOps Request Form" - generate_api_token = 1 - style = inline_style - javascript = inline_javascript - javascript_urls = [ 'extensions/BMO/web/js/form_validate.js', - 'js/field.js', 'js/util.js' ] - yui = [ "selector" ] -%] - -[% USE Bugzilla %] -[% cgi = Bugzilla.cgi %] - -
- - - - - - - - - - -
- Welcome to the [% title FILTER html %]! -
- - -
-
- -
- - -
-
- -
- -
-
- -
- -
-
- -
- -
-
- -
- -
-
- -
- -
-
- [% INCLUDE global/userselect.html.tmpl - id => "cc" - name => "cc" - value => "" - size => 80 - classes => ["bz_userfield"] - multiple => 5 - %] -
- -
-
- -
- -
-
- -
- - - -

- [ * - Required Field ] -

-
- -[% 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 749b2a989..0702f65e1 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 @@ -95,10 +95,6 @@ custom_forms = { title => "Mozilla Discussion Forum Requests", group => "mozilla-employee-confidential", }, - { - link => 'form.webops.request', - title => "WebOps Request Form", - }, ], "Tech Evangelism" => [ { -- cgit v1.2.3-24-g4f1b