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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
|
[%# 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 Reps Swag Request Form"
generate_api_token = 1
javascript_urls = [ 'extensions/REMO/web/js/swag.js',
'extensions/REMO/web/js/form_validate.js',
'js/field.js',
'js/util.js' ]
style_urls = [ "extensions/REMO/web/styles/moz_reps.css" ]
yui = [ 'calendar' ]
%]
[% IF !user.in_group("mozilla-reps") %]
<p>Sorry, you do not have access to this page.</p>
[% RETURN %]
[% END %]
<p>These requests will only be visible to the person who submitted the request,
any persons designated in the CC line, and authorized members of the Mozilla Rep team.</p>
<script language="javascript" type="text/javascript">
function trySubmit() {
var eventname = document.getElementById('eventname').value;
var shortdesc = 'Swag Request - ' + eventname;
document.getElementById('short_desc').value = shortdesc;
return true;
}
function validateAndSubmit() {
var alert_text = '';
if(!isFilledOut('firstname')) alert_text += "Please enter your first name\n";
if(!isFilledOut('lastname')) alert_text += "Please enter your last name\n";
if(!isFilledOut('profilepage')) alert_text += "Please enter your Mozilla Reps profile page\n";
if(!isFilledOut('eventname')) alert_text += "Please enter your event name\n";
if(!isFilledOut('eventpage')) alert_text += "Please enter the event page.\n";
if(!isFilledOut('attendance')) alert_text += "Please enter the estimated attendance.\n";
if(!isFilledOut('ambassador_hosted')) alert_text += "Please select whether this event is hosted by ambassadors.\n";
if(!isFilledOut('ambassador_audience')) alert_text += "Please select whether this event's main audience is ambassadors.\n";
if(!isFilledOut('shiptofirstname')) alert_text += "Please enter the shipping first name\n";
if(!isFilledOut('shiptolastname')) alert_text += "Please enter the shipping last name\n";
if(!isFilledOut('shiptoaddress1')) alert_text += "Please enter the ship to address\n";
if(!isFilledOut('shiptocity')) alert_text += "Please enter the ship to city\n";
if(!isFilledOut('shiptocountry')) alert_text += "Please enter the ship to country\n";
if(!isFilledOut('shiptopcode')) alert_text += "Please enter the ship to postal code\n";
if(!isFilledOut('shiptophone')) alert_text += "Please enter the ship to contact number\n";
//Everything required is filled out..try to submit the form!
if(alert_text == '') {
return trySubmit();
}
//alert text, stay here on the pagee
alert(alert_text);
return false;
}
</script>
<h1>Mozilla Reps - Swag Request Form</h1>
<p>Review the <a href="https://wiki.mozilla.org/ReMo/SOPs/Swag_Requests" target="_blank">
Swag Requests SOP</a> before you complete this form.</p>
<form method="post" action="post_bug.cgi" id="swagRequestForm" enctype="multipart/form-data"
onSubmit="return validateAndSubmit();">
<input type="hidden" name="format" value="remo-swag">
<input type="hidden" name="product" value="Mozilla Reps">
<input type="hidden" name="component" value="Swag Requests">
<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="unspecified">
<input type="hidden" name="bug_severity" id="bug_severity" value="normal">
<input type="hidden" name="short_desc" id="short_desc" value="">
<input type="hidden" name="groups" value="mozilla-reps">
<input type="hidden" name="token" value="[% token FILTER html %]">
<table id="reps-form">
<tr class="odd">
<td><strong>First Name: <span style="color: red;" title="Required">*</span></strong></td>
<td>
<input type="text" name="firstname" id="firstname" placeholder="John" size="40">
</td>
</tr>
<tr class="even">
<td><strong>Last Name: <span style="color: red;" title="Required">*</span></strong></td>
<td>
<input type="text" name="lastname" id="lastname" placeholder="Doe" size="40">
</td>
</tr>
<tr class="odd">
<td>
<strong>Mozilla Reps Profile Page:
<span style="color: red;" title="Required">*</span></strong>
</td>
<td>
<input type="text" name="profilepage" id="profilepage" size="40">
</td>
</tr>
<tr class="even">
<td><strong>Event Name: <span style="color: red;" title="Required">*</span></strong></td>
<td>
<input type="text" name="eventname" id="eventname" size="40">
</td>
</tr>
<tr class="odd">
<td><strong>Event Page: <span style="color: red;" title="Required">*</span></strong></td>
<td>
<input type="text" name="eventpage" id="eventpage" size="40">
</td>
</tr>
<tr class="even">
<td><strong>Estimated Attendance: <span style="color: red;" title="Required">*</span></strong></td>
<td>
<select id="attendance" name="attendance">
<option value="1-50">1-50</option>
<option value="51-200">51-200</option>
<option value="201-500">201-500</option>
<option value="501-1000+">501-1000+</option>
</select>
</td>
</tr>
<tr class="odd">
<td>
<strong>Is this event being hosted by a<br>Firefox Student Ambassador(s)?:
<span style="color: red;" title="Required">*</span></strong>
</td>
<td>
<select id="ambassador_hosted" name="ambassador_hosted">
<option value="">Select One</option>
<option value="Yes">Yes</option>
<option value="No">No</option>
</select>
</td>
</tr>
<tr class="even">
<td>
<strong>Is the main audience of this event<br>Firefox Student Ambassadors?:
<span style="color: red;" title="Required">*</span></strong>
</td>
<td>
<select id="ambassador_audience" name="ambassador_audience">
<option value="">Select One</option>
<option value="Yes">Yes</option>
<option value="No">No</option>
</select>
</td>
</tr>
<tr class="odd">
<td><!--spacer--> </td>
<td><!--spacer--> </td>
</tr>
<tr class="even">
<td colspan="2"><strong>Shipping Details:</strong></td>
</tr>
<tr class="odd">
<td><strong>Ship Before:</strong>
<td>
[% INCLUDE bug/field.html.tmpl
bug = default,
field = bug_fields.cf_due_date
value = default.cf_due_date,
editable = 1,
no_tds = 1
%]
</td>
</tr>
<tr class="even">
<td><strong>First Name: <span style="color: red;" title="Required">*</span></strong></td>
<td><input name="shiptofirstname" id="shiptofirstname" placeholder="John" size="40"></td>
</tr>
<tr class="odd">
<td><strong>Last Name: <span style="color: red;" title="Required">*</span></strong></td>
<td><input name="shiptolastname" id="shiptolastname" placeholder="Doe" size="40"></td>
</tr>
<tr class="even">
<td><strong>Address Line 1: <span style="color: red;" title="Required">*</span></strong></td>
<td><input name="shiptoaddress1" id="shiptoaddress1" placeholder="123 Main St." size="40"></td>
</tr>
<tr class="odd">
<td><strong>Address Line 2:</strong></td>
<td><input name="shiptoaddress2" id="shiptoaddress2" size="40"></td>
</tr>
<tr class="even">
<td><strong>City: <span style="color: red;" title="Required">*</span></strong></td>
<td><input name="shiptocity" id="shiptocity" size="40" placeholder="Anytown"></td>
</tr>
<tr class="odd">
<td><strong>State/Region (if applicable):</strong></td>
<td><input name="shiptostate" id="shiptostate" placeholder="CA" size="40"></td>
</tr>
<tr class="even">
<td><strong>Country: <span style="color: red;" title="Required">*</span></strong></td>
<td><input name="shiptocountry" id="shiptocountry" placeholder="USA" size="40"></td>
</tr>
<tr class="odd">
<td><strong>Postal Code: <span style="color: red;" title="Required">*</span></strong></td>
<td><input name="shiptopcode" id="shiptopcode" placeholder="90210" size="40"></td>
</tr>
<tr class="even">
<td><strong>Phone (including country code): <span style="color: red;" title="Required">*</span></strong></td>
<td><input name="shiptophone" id="shiptophone" placeholder="919-555-1212" size="40"></td>
</tr>
<tr class="odd">
<td><strong>Custom Reference<br>
(Fiscal or VAT-number, if known):</strong><br><small>(if your country requires this)</small>
</td>
<td><input name="shiptoidrut" id="shiptoidrut" size="40"></td>
</tr>
<tr class="even">
<td colspan="2">
<strong>Addition information for delivery person:</strong><br>
<textarea id="shipadditional" name="shipadditional" rows="4"></textarea>
</td>
</tr>
<tr class="odd">
<td><!--spacer--> </td>
<td><!--spacer--> </td>
</tr>
<tr class="even">
<td colspan="2"><strong>Swag Requested:</strong></td>
</tr>
<tr class="odd">
<td><strong>Stickers:</strong></td>
<td><input type="checkbox" id="stickers" name="stickers" value="1"></td>
</tr>
<tr class="even">
<td><strong>Buttons:</strong></td>
<td><input type="checkbox" id="buttons" name="buttons" value="1"></td>
</tr>
<tr class="odd">
<td><strong>Lanyards:</strong></td>
<td><input type="checkbox" id="lanyards" name="lanyards" value="1"></td>
</tr>
<tr class="even">
<td><strong>T-Shirts:</strong></td>
<td><input type="checkbox" id="tshirts" name="tshirts" value="1"></td>
</tr>
<tr class="odd">
<td><strong>Roll-Up Banners:</strong></td>
<td><input type="checkbox" id="rollupbanners" name="rollupbanners" value="1"></td>
</tr>
<tr class="even">
<td><strong>Horizontal Banner:</strong></td>
<td><input type="checkbox" id="horizontalbanner" name="horizontalbanner" value="1"></td>
</tr>
<tr class="odd">
<td><strong>Booth Cloth:</strong></td>
<td><input type="checkbox" id="boothcloth" name="boothcloth" value="1"></td>
</tr>
<tr class="even">
<td><strong>Pens:</strong></td>
<td><input type="checkbox" id="pens" name="pens" value="1"></td>
</tr>
<tr class="odd">
<td><strong>Other:</strong> (please specify)</td>
<td><input type="text" id="otherswag" name="otherswag" size="40"></td>
</tr>
<tr class="even">
<td> </td>
<td align="right">
<input type="submit" id="commit" value="Submit Request">
</td>
</tr>
</table>
<p>
Quantities of different swag items requested that will actually be shipped
depend on stock availability and number of attendees. Mozilla cannot guarantee
that all items requested will be in stock at the time of shipment and you will
be notified in case an item cannot be shipped. Please request swag at least 1
month before desired delivery date.
</p>
<p>
<strong><span style="color: red;">*</span></strong> - Required field<br />
Thanks for contacting us.
You will be notified by email of any progress made in resolving your request.
</p>
[% PROCESS global/footer.html.tmpl %]
|