blob: 0db96e893c9506a8815f1c7447519819a2658daa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
|
[%# 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 <a href="https://mozilla.service-now.com/">Service Now</a> to:<br>' +
'Request an LDAP/E-mail/etc. account<br>' +
'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 + '<br><br>' + 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 %]
<p><strong>Please use this form for IT requests only!</strong></p>
<p>If you have a [% terms.bug %] to file, go <a href="enter_bug.cgi">here</a>.</p>
<form method="post" action="post_bug.cgi" id="itRequestForm" enctype="multipart/form-data"
onsubmit="return on_submit()">
<input type="hidden" name="product" value="mozilla.org">
<input type="hidden" name="rep_platform" value="All">
<input type="hidden" name="op_sys" value="Other">
<input type="hidden" name="priority" value="--">
<input type="hidden" name="version" value="other">
<input type="hidden" name="token" value="[% token FILTER html %]">
<table>
<tr>
<td align="right">
<strong>Urgency:</strong>
</td>
<td>
<select id="bug_severity" name="bug_severity" onchange="setsevdesc(this)">
<option value="blocker">All work for IT stops until this is done</option>
<option value="critical">IT should work on it soon as possible (urgent)</option>
<option value="major">IT should get to it within 24 hours</option>
<option value="normal">IT should get to it within the next week</option>
<option value="minor" selected="selected">No rush, but hopefully IT can get to it soon</option>
<option value="trivial">Whenever IT can get around to it</option>
<option value="enhancement">This is just an idea, filing it so we don't forget</option>
</select>
</td>
<td>
<div id="blockerdesc" style="color:red;display:none">This will page the on-call sysadmin if not handled within 30 minutes.</div>
<div id="critdesc" style="color:red;display:none">This will page the on-call sysadmin if not handled within 8 hours.</div>
</td>
</tr>
<tr>
<td align="right"><strong>Request Type:</strong></td>
<td style="white-space: nowrap;">
<input type="radio" name="component" id="componentmvd" onclick="setcompdesc(this)" value="Server Operations: Desktop Issues">
<label for="componentmvd">Desktop issue/request</label><br>
<input type="radio" name="component" id="componenttbm" onclick="setcompdesc(this)" value="Server Operations: RelEng">
<label for="componenttbm">Report a problem with a tinderbox machine</label><br>
<input type="radio" name="component" id="componentwcp" onclick="setcompdesc(this)" value="Server Operations: Web Operations">
<label for="componentwcp">Report a problem with a Mozilla website, or to request a change or push</label><br>
<input type="radio" name="component" id="componentacl" onclick="setcompdesc(this)" value="Server Operations: ACL Request">
<label for="componentacl">Request a firewall change</label><br>
<input type="radio" name="component" id="componentso" onclick="setcompdesc(this)" value="Server Operations">
<label for="componentso">Any other issue</label><br>
Mailing list requests should be filed <a href="[% ulrbase FILTER none %]enter_bug.cgi?product=mozilla.org&format=mozlist">here</a> instead.
</td>
<td id="compdescription" align="left" style="color: green; padding-left: 1em">
</td>
</tr>
<tbody id="main_form">
<tr>
<td align="right"><strong>Summary:</strong></td>
<td colspan="3">
<input name="short_desc" size="60" value="[% short_desc FILTER html %]">
</td>
</tr>
<tr>
<td align="right"><strong>CC (optional):</strong></td>
<td colspan="3">
[% INCLUDE global/userselect.html.tmpl
id => "cc"
name => "cc"
value => cc
size => 60
multiple => 5
%]
</td>
</tr>
<tr><td align="right" valign="top"><strong>Description:</strong></td>
<td colspan="3">
<textarea name="comment" rows="10" cols="80">
[% comment FILTER html %]</textarea>
<br>
</td>
</tr>
<tr>
<td align="right"><strong>URL (optional):</strong></td>
<td colspan="3">
<input name="bug_file_loc" size="60"
value="[% bug_file_loc FILTER html %]">
</td>
</tr>
<tr><td colspan="4"> </td></tr>
<tr>
<td colspan="4">
<strong>Attachment (optional):</strong>
</td>
</tr>
<tr>
<td align="right">File:</td>
<td colspan="3">
<em>Enter the path to the file on your computer.</em><br>
<input type="file" id="data" name="data" size="50">
<input type="hidden" name="contenttypemethod" value="autodetect" />
</td>
</tr>
<tr>
<td align="right">Description:</td>
<td colspan="3">
<em>Describe the attachment briefly.</em><br>
<input type="text" id="description" name="description" size="60" maxlength="200">
</td>
</tr>
<tr>
<td> </td>
<td>
<br>
<!-- infra -->
<input type="checkbox" name="groups" id="groups" value="infra" checked="checked">
<label for="groups"><strong>This is an internal issue which should not be publicly visible.</strong></label><br>
(please uncheck this box if it isn't)<br>
<br>
<input type="submit" id="commit" value="Submit Request"><br>
<br>
Thanks for contacting us. You will be notified by email of any progress made in resolving your request.
</td>
</tr>
</tbody>
<tbody id="service_now_form" style="display:none">
<tr>
<td> </td>
<td>
<br>
<input type="submit" value="Go to Service Now">
</td>
</tr>
</tbody>
</table>
</form>
[% PROCESS global/footer.html.tmpl %]
|