From 32da0eb364bd8645fbbaa7260559034354b2c295 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 10 Feb 2015 12:39:42 +0800 Subject: Bug 1130885: change itrequest form from mozilla.org::Server Operations to Infrastructure & Operations :: MOC: Service Requests --- .../default/bug/create/create-itrequest.html.tmpl | 70 +++++++++++++--------- 1 file changed, 42 insertions(+), 28 deletions(-) (limited to 'extensions/BMO/template/en/default/bug/create/create-itrequest.html.tmpl') diff --git a/extensions/BMO/template/en/default/bug/create/create-itrequest.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-itrequest.html.tmpl index 57c11a08a..0f12fa626 100644 --- a/extensions/BMO/template/en/default/bug/create/create-itrequest.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-itrequest.html.tmpl @@ -27,45 +27,47 @@ [% FOREACH comp IN product.components %] compdesc['[% comp.name FILTER js %]'] = '[% comp.description FILTER js %]'; [% END %] - compdesc['Server Operations'] = 'System administration for the mozilla.org servers. ' + - 'Requests for Server Ops that don\'t fit in any of the ' + - 'other Server Ops components can go here.'; - var serviceNowText = 'Use Service Now to:
' + 'Request an LDAP/E-mail/etc. account
' + 'Desktop/Laptop/Printer/Phone/Tablet/License problem/order/request'; + compdesc['MOC: Service Requests'] = 'System administration for the mozilla.org servers. ' + + 'Requests for Server Ops that don\'t fit in any of the ' + + 'other Server Ops components can go here.

' + + serviceNowText; + + compdesc['Mailing List'] = 'Mailing list requests should be filed ' + + 'here instead.'; + function setcompdesc(theRadio) { if (theRadio.id == 'component_service_desk') { - [%# helpdesk issue/request %] document.getElementById('main_form').style.display = 'none'; document.getElementById('service_now_form').style.display = ''; + document.getElementById('list_form').style.display = 'none'; document.getElementById('compdescription').innerHTML = serviceNowText; + } else if (theRadio.id == 'component_list') { + document.getElementById('main_form').style.display = 'none'; + document.getElementById('service_now_form').style.display = 'none'; + document.getElementById('list_form').style.display = ''; + document.getElementById('compdescription').innerHTML = compdesc[theRadio.value]; } else { document.getElementById('main_form').style.display = ''; document.getElementById('service_now_form').style.display = 'none'; - var theValue = theRadio.value; - var compDescText = compdesc[theValue]; - // If 'Server Operations', product must be changed to 'mozilla.org' - // otherwise set to 'Infrastructure & Operations' - if (theRadio.id == 'component_server_ops') { - compDescText = compDescText + '

' + serviceNowText; - document.getElementById('product').value = 'mozilla.org'; - } - else { - document.getElementById('product').value = 'Infrastructure & Operations'; - } - document.getElementById('compdescription').innerHTML = compDescText; + document.getElementById('list_form').style.display = 'none'; + document.getElementById('compdescription').innerHTML = compdesc[theRadio.value]; } } function on_submit() { - if (document.getElementById('componentsd').checked) { - [%# redirect desktop issues to service-now #%] + if (document.getElementById('component_service_desk').checked) { document.location.href = 'https://mozilla.service-now.com/'; return false; + } else if (document.getElementById('component_list').checked) { + document.location.href = '[% ulrbase FILTER none %]enter_bug.cgi?product=mozilla.org&format=mozlist'; + return false; + } else { + return true; } - return true; } YAHOO.util.Event.onDOMReady(function() { @@ -124,25 +126,26 @@ - Request Type: - + Request Type: +
-
+


- -
- Mailing list requests should be filed here instead. + +
+ +
- + - + Summary: @@ -231,6 +234,17 @@ + + + +   + +
+ + + + + -- cgit v1.2.3-24-g4f1b