From 47115b7757f9aee4b917b16fcc7765c07f063780 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 24 Jul 2012 15:37:18 +0800 Subject: Bug 776670: update mozlist form for service-now --- .../en/default/bug/create/create-mozlist.html.tmpl | 139 +++++++++++---------- 1 file changed, 75 insertions(+), 64 deletions(-) (limited to 'extensions/BMO/template') diff --git a/extensions/BMO/template/en/default/bug/create/create-mozlist.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-mozlist.html.tmpl index 66bb4367d..fae822eee 100644 --- a/extensions/BMO/template/en/default/bug/create/create-mozlist.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-mozlist.html.tmpl @@ -1,31 +1,16 @@ -[%# 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 Netscape Communications - # Corporation. Portions created by Netscape are - # Copyright (C) 1998 Netscape Communications Corporation. All - # Rights Reserved. - # - # Contributor(s): Gervase Markham - # Ville Skyttä - # John Hoogstrate - #%] - -[% PROCESS global/variables.none.tmpl %] - -[% PROCESS global/header.html.tmpl - title = "Mozilla Discussion Forum / Mailing List Requests" - javascript_urls = [ 'extensions/BMO/web/js/form_validate.js', +[%# 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 %] + +[% PROCESS global/header.html.tmpl + title = "Mozilla Discussion Forum / Mailing List Requests" + javascript_urls = [ 'extensions/BMO/web/js/form_validate.js', 'js/field.js' ] yui = [ 'autocomplete' ] %] @@ -48,6 +33,7 @@ YAHOO.util.Dom.setStyle('listCommentTR', 'display', 'table-row'); YAHOO.util.Dom.setStyle('CCTR', 'display', 'table-row'); YAHOO.util.Dom.setStyle('URLTR', 'display', 'table-row'); + YAHOO.util.Dom.setStyle('serviceNow', 'display', 'none'); YAHOO.util.Dom.setStyle('groups', 'display', 'none'); group.disabled = true; YAHOO.util.Dom.setStyle('submitDiv', 'display', 'block'); @@ -63,24 +49,26 @@ YAHOO.util.Dom.setStyle('listCommentTR', 'display', 'table-row'); YAHOO.util.Dom.setStyle('CCTR', 'display', 'table-row'); YAHOO.util.Dom.setStyle('URLTR', 'display', 'table-row'); + YAHOO.util.Dom.setStyle('serviceNow', 'display', 'none'); YAHOO.util.Dom.setStyle('groups', 'display', 'table-row'); group.disabled = false; YAHOO.util.Dom.setStyle('submitDiv', 'display', 'block'); } else { - YAHOO.util.Dom.setStyle('listNameTR', 'display', 'table-row'); + YAHOO.util.Dom.setStyle('listNameTR', 'display', 'none'); YAHOO.util.Dom.setStyle('listNameDiscussion', 'display', 'none'); - YAHOO.util.Dom.setStyle('listNameOther', 'display', 'inline'); + YAHOO.util.Dom.setStyle('listNameOther', 'display', 'none'); YAHOO.util.Dom.setStyle('listAdminTR', 'display', 'none'); - YAHOO.util.Dom.setStyle('listShortDescTR', 'display', 'table-row'); + YAHOO.util.Dom.setStyle('listShortDescTR', 'display', 'none'); YAHOO.util.Dom.setStyle('listShortDescMailman', 'display', 'none'); - YAHOO.util.Dom.setStyle('listShortDescZimbra', 'display', 'inline'); + YAHOO.util.Dom.setStyle('listShortDescZimbra', 'display', 'none'); YAHOO.util.Dom.setStyle('listLongDescTR', 'display', 'none'); - YAHOO.util.Dom.setStyle('listCommentTR', 'display', 'table-row'); - YAHOO.util.Dom.setStyle('CCTR', 'display', 'table-row'); - YAHOO.util.Dom.setStyle('URLTR', 'display', 'table-row'); - YAHOO.util.Dom.setStyle('groups', 'display', 'table-row'); + YAHOO.util.Dom.setStyle('listCommentTR', 'display', 'none'); + YAHOO.util.Dom.setStyle('CCTR', 'display', 'none'); + YAHOO.util.Dom.setStyle('URLTR', 'display', 'none'); + YAHOO.util.Dom.setStyle('serviceNow', 'display', 'table-row'); + YAHOO.util.Dom.setStyle('groups', 'display', 'none'); group.disabled = false; - YAHOO.util.Dom.setStyle('submitDiv', 'display', 'block'); + YAHOO.util.Dom.setStyle('submitDiv', 'display', 'none'); } } @@ -104,8 +92,8 @@ document.getElementById('component').value = "Discussion Forums"; short_desc = "Discussion Forum: " + listName; } else if (listType == "mozilla.com" ) { - document.getElementById('component').value = "Server Operations: Desktop Issues"; - short_desc = "[Zimbra Distribution List Request] " + listName + "@" + listType; + document.location.href = 'https://mozilla.service-now.com/'; + return false; } else { document.getElementById('component').value = "Server Operations"; short_desc = "[Mailman List Request] " + listName + "@" + listType; @@ -126,15 +114,25 @@ alert(alert_text); return false; } - + document.getElementById('short_desc').value = short_desc; return true; } + + YAHOO.util.Event.onDOMReady(function() { + var elements = document.getElementsByName('listType'); + for (var i = 0, l = elements.length; i < l; i++) { + if (elements[i].checked) { + toggleGroup(elements[i]); + break; + } + } + }); // --> - -
@@ -153,20 +151,20 @@
-
-
@@ -180,7 +178,7 @@
-
@@ -218,7 +216,7 @@ multiple => 5 %]
- Note:The list administrator is also initially considered to be the list moderator + Note:The list administrator is also initially considered to be the list moderator and will be responsible for moderation tasks unless delegated to someone else. For convenience, [% terms.Bugzilla %] user accounts will autocomplete. The administrator is not required to have a [% terms.Bugzilla %] account, and you can enter an address that doesn't autocomplete if @@ -283,24 +281,37 @@ value="[% bug_file_loc FILTER html %]"> + +   + +

+ Please use Service Now to request a distribution list. +

+ + + + +   + +
+ + + + +
- - - -[% PROCESS global/footer.html.tmpl %] +[% PROCESS global/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b