[%# 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_javascript = BLOCK %]
function setsevdesc(theSelect) {
var theValue = theSelect.options[theSelect.selectedIndex].value;
if (theValue == 'blocker') {
document.getElementById('blockerdesc').style.display = 'block';
document.getElementById('critdesc').style.display = 'none';
} else if (theValue == 'critical') {
document.getElementById('blockerdesc').style.display = 'none';
document.getElementById('critdesc').style.display = 'block';
} else {
document.getElementById('blockerdesc').style.display = 'none';
document.getElementById('critdesc').style.display = 'none';
}
}
var compdesc = new Array();
[% FOREACH comp IN product.components %]
compdesc['[% comp.name FILTER js %]'] = '[% comp.description FILTER js %]';
[% END %]
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'] = 'End-User requests for infrastructure support.
' +
serviceNowText;
compdesc['Mailing List'] = 'Mailing list requests should be filed ' +
'here instead.';
function setcompdesc(theRadio) {
if (theRadio.id == 'component_service_desk') {
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';
document.getElementById('list_form').style.display = 'none';
document.getElementById('compdescription').innerHTML = compdesc[theRadio.value];
}
}
function on_submit() {
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;
}
}
YAHOO.util.Event.onDOMReady(function() {
var comps = document.getElementsByName('component');
for (var i = 0, l = comps.length; i < l; i++) {
if (comps[i].checked) {
setcompdesc(comps[i]);
break;
}
}
});
[% END %]
[% PROCESS global/header.html.tmpl
title = "Mozilla Corporation/Foundation IT Requests"
generate_api_token = 1
javascript = inline_javascript
javascript_urls = [ 'js/field.js' ]
yui = [ 'autocomplete' ]
%]
[% USE Bugzilla %]
Please use this form for IT requests only!
If you have a [% terms.bug %] to file, go here.
[% PROCESS global/footer.html.tmpl %]