[%# 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 %]
compdesc['invalid'] = '';
var serviceNowText = 'Use Service Now to:
' +
'Request an LDAP/E-mail/etc. account
' +
'Desktop/Laptop/Printer/Phone/Tablet/License problem/order/request';
function setcompdesc(theRadio) {
if (theRadio.id == 'componentmvd') {
[%# helpdesk issue/request %]
document.getElementById('main_form').style.display = 'none';
document.getElementById('service_now_form').style.display = '';
document.getElementById('compdescription').innerHTML = serviceNowText;
} else {
document.getElementById('main_form').style.display = '';
document.getElementById('service_now_form').style.display = 'none';
var theValue = theRadio.value;
var compDescText = compdesc[theValue];
if (theRadio.id == 'componentso') {
compDescText = compDescText + '
' + serviceNowText;
}
document.getElementById('compdescription').innerHTML = compDescText;
}
}
function on_submit() {
if (document.getElementById('componentmvd').checked) {
[%# redirect desktop issues to service-now #%]
document.location.href = 'https://mozilla.service-now.com/';
return false;
}
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"
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 %]