summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en/default/bug/create/create-dev-engagement-event.html.tmpl
blob: c3c81419bf9058138fb26cff094aa0c25a9a5f69 (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
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
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
[%# 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_css = BLOCK %]
  #bug_form {
    max-width: 50em;
  }

  #bug_form th {
    text-align: left;
    padding-top: 0.5em;
  }

  #bug_form .section-head {
    font-size: larger;
    padding-top: 1em;
  }

  #bug_form th:not(.section-head), #bug_form td {
    padding-left: 2em;
  }

  #bug_form .mandatory {
    color: red;
  }

  #bug_form .blurb {
    font-style: italic;
  }

  #bug_form .wide {
    width: 40em;
  }

  #bug_form input[disabled] {
    background: transparent;
  }
[% END %]

[% inline_js = BLOCK %]
// <script>
  function onRequestOtherChange() {
    var cb = document.getElementById('request-other');
    var input = document.getElementById('request-other-text');
    input.disabled = !cb.checked;
    if (cb.checked)
      input.focus();
  }

  function onRequestSponsorshipChange() {
    var cb = document.getElementById('request-sponsorship');
    if (cb.checked) {
      YAHOO.util.Dom.removeClass('sponsorship-suggestion-fields', 'bz_default_hidden');
    }
    else {
      YAHOO.util.Dom.addClass('sponsorship-suggestion-fields', 'bz_default_hidden');
    }
  }

  function onProductOtherChange() {
    var cb = document.getElementById('product-other');
    var input = document.getElementById('product-other-text');
    input.disabled = !cb.checked;
    if (cb.checked)
      input.focus();
  }

  function onSubmit() {
    if (document.getElementById('request-other').checked
        && !isFilledOut('request-other-text')
    ) {
      document.getElementById('request-other').checked = false;
      onRequestOtherChange();
    }

    var alert_text = '';

    if (!isFilledOut('name'))
      alert_text += "Please enter your name.\n";
    if (!isFilledOut('email'))
      alert_text += "Please enter your email address.\n";
    if (!isFilledOut('role'))
      alert_text += "Please enter your role.\n";

    if (!isFilledOut('event'))
      alert_text += "Please enter the event name.\n";
    if (!isFilledOut('start_date'))
      alert_text += "Please enter the event start date.\n";
    if (!isFilledOut('end_date'))
      alert_text += "Please enter the event end date.\n";
    if (!isFilledOut('attendees'))
      alert_text += "Please enter number of expected attendees.\n";
    if (!isFilledOut('audience'))
      alert_text += "Please enter primary audience.\n";


    var wb = '';
    if (document.getElementById('request-keynote').checked)
      wb += '[keynote] ';
    if (document.getElementById('request-talk').checked)
      wb += '[talk] ';
    if (document.getElementById('request-workshop').checked)
      wb += '[workshop] ';
    if (document.getElementById('request-sponsorship').checked)
      wb += '[sponsorship] ';
    if (document.getElementById('request-other').checked)
      wb += '[other] ';
    if (wb == '')
      alert_text += "Please select what you're requesting.\n";

    if (alert_text != '') {
      alert(alert_text);
      return false;
    }

    document.getElementById('status_whiteboard').value = wb.replace(/ $/, '');
    var summary = document.getElementById('event').value + ', ' + long_start_date();
    var loc = document.getElementById('location').value;
    if (loc)
      summary = summary + ' (' + loc + ')';
    document.getElementById('short_desc').value = summary;
    document.getElementById('bug_file_loc').value = document.getElementById('link').value;
    document.getElementById('cf_due_date').value = document.getElementById('start_date').value;

    return true;
  }

  function long_start_date() {
    var ymd = document.getElementById('start_date').value.split('-');
    if (ymd.length != 3)
      return '';
    var month = YAHOO.bugzilla.calendar_start_date.cfg.getProperty('MONTHS_LONG')[ymd[1] - 1];
    return month + ' ' + ymd[0];
  }

  YAHOO.util.Event.onDOMReady(function() {
    createCalendar('start_date');
    createCalendar('end_date');
    onRequestOtherChange();
    onRequestSponsorshipChange();
    onProductOtherChange();
  });
// </script>
[% END %]

[% mandatory = BLOCK %]
  <span class="mandatory" title="Mandatory">*</span>
[% END %]

[% PROCESS global/header.html.tmpl
   title = "Developer Events Request Form"
   style = inline_css
   style_urls = [ 'skins/standard/enter_bug.css' ]
   javascript = inline_js
   javascript_urls = [ 'extensions/BMO/web/js/form_validate.js', 'js/field.js', 'js/util.js' ]
   yui = [ 'calendar' ]
%]

<h2>Developer Events Request Form</h2>

<form method="post" action="post_bug.cgi" id="bug_form" class="enter_bug_form"
      enctype="multipart/form-data" onsubmit="return onSubmit();">
<input type="hidden" name="format" value="dev-engagement-event">
<input type="hidden" name="product" value="Developer Engagement">
<input type="hidden" name="short_desc" id="short_desc" value="">
<input type="hidden" name="component" value="Events Request">
<input type="hidden" name="rep_platform" value="All">
<input type="hidden" name="op_sys" value="All">
<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="comment" id="comment" value="">
<input type="hidden" name="status_whiteboard" id="status_whiteboard" value="">
<input type="hidden" name="bug_file_loc" id="bug_file_loc" value="">
<input type="hidden" name="cf_due_date" id="cf_due_date" value="">
<input type="hidden" name="groups" id="groups" value="mozilla-employee-confidential">
<input type="hidden" name="token" value="[% token FILTER html %]">

<table id="bug_form">

<tr>
  <td>
    <p>
      Hi! Thanks so much for asking Mozilla to participate at your event!
    </p>
    <p>
      The Developer Events Team evaluates each request individually, based on
      multiple criteria, including quarterly goals and priorities. We meet at
      least biweekly, and this form is designed to gather all the information
      we need to evaluate each request at these meetings. Please take a minute
      to fill it out thoroughly so we can process your request as soon as
      possible.
    </p>
  </td>
</tr>

<tr>
  <th class="section-head">
    First, tell us about yourself!
  </th>
</tr>

<tr>
  <th>
    What is your name? [% mandatory FILTER none %]
  </th>
</tr>
<tr>
  <td>
    <input type="text" name="name" id="name" size="40" class="wide"
           value="[% user.name FILTER html %]">
  </td>
</tr>

<tr>
  <th>
    Please provide your email address. [% mandatory FILTER none %]
  </th>
</tr>
<tr>
  <td>
    <input type="text" name="email" id="email" size="40" class="wide"
           value="[% user.login FILTER html %]">
  </td>
</tr>

<tr>
  <th>
    What is your role in relation to this event? [% mandatory FILTER none %]
  </th>
</tr>
<tr>
  <td>
    <div class="blurb">
      eg. organizer, speaker/atendee (past), speaker/attendee (current), etc.
    </div>
    <input type="text" name="role" id="role" size="40" class="wide">
  </td>
</tr>

<tr>
  <th class="section-head">
    Let's start with the basics.
  </th>
</tr>

<tr>
  <th>
    Event Name [% mandatory FILTER none %]
  </th>
</tr>
<tr>
  <td>
    <input type="text" name="event" id="event" size="40" class="wide">
  </td>
</tr>

<tr>
  <th>
    Start Date [% mandatory FILTER none %]
  </th>
</tr>
<tr>
  <td>
    <input type="text" name="start_date" id="start_date" size="15" class="date"
           onchange="updateCalendarFromField(this)">
    <button type="button" class="calendar_button"
            id="button_calendar_start_date"
            onclick="showCalendar('start_date')">
      <span>Calendar</span>
    </button>
    <div id="con_calendar_start_date"></div>
  </td>
</tr>

<tr>
  <th>
    End Date [% mandatory FILTER none %]
  </th>
</tr>
<tr>
  <td>
    <input type="text" name="end_date" id="end_date" size="15" class="date"
           onchange="updateCalendarFromField(this)">
    <button type="button" class="calendar_button"
            id="button_calendar_end_date"
            onclick="showCalendar('end_date')">
      <span>Calendar</span>
    </button>
    <div id="con_calendar_end_date"></div>
  </td>
</tr>

<tr>
  <th>
    Event Location
  </th>
</tr>
<tr>
  <td>
    <div class="blurb">
      Include city, state, and country. Please write "Multiple" if this event
      takes place across several locations.
    </div>
    <input type="text" name="location" id="location" size="40" class="wide">
  </td>
</tr>

<tr>
  <th>
    Venue
  </th>
</tr>
<tr>
  <td>
    <div class="blurb">
      What is the name of the venue where your event will be held? Enter TBD if
      you don't know yet.
    </div>
    <input type="text" name="venue" id="venue" size="40" class="wide">
  </td>
</tr>

<tr>
  <th>
    Weblink
  </th>
</tr>
<tr>
  <td>
    <div class="blurb">
      Weblink to the event site, Eventbrite page, Lanyrd page, Meetup page, etc.
    </div>
    <input type="text" name="link" id="link" size="40" class="wide">
  </td>
</tr>

<tr>
  <th>
    Number of expected attendees [% mandatory FILTER none %]
  </th>
</tr>
<tr>
  <td>
    <input type="text" name="attendees" id="attendees" size="15">
  </td>
</tr>

<tr>
  <th>
    Please give a [short] description of the event. [% mandatory FILTER none %]
  </th>
</tr>
<tr>
  <td>
    <div class="blurb">
      Include track topics, presentation topics, event format.
    </div>
    <textarea name="desc" id="desc" rows="10" cols="40" class="wide"></textarea>
  </td>
</tr>

<tr>
  <th>
    Who is the primary audience for this event? [% mandatory FILTER none %]
  </th>
</tr>
<tr>
  <td>
    <div class="blurb">
      Developers (specify coding language and platform), business development,
      marketing associates, corporate executives, etc.
    </div>
    <input type="text" name="audience" id="audience" size="40" class="wide">
  </td>
</tr>

<tr>
  <th>
    Which Mozilla products/projects are most relevant to this event? [% mandatory FILTER none %]
  </th>
</tr>
<tr>
  <td>
    <div class="blurb">
      Please select all that apply.
      See <a href="https://www.mozilla.org/en-US/products/" target="_blank">mozilla.org/products</a>
      for more information about Mozilla products.
    </div>
    <input type="checkbox" name="product-fxos" id="product-fxos">
    <label for="product-fxos">Firefox OS</label><br>
    <input type="checkbox" name="product-fx" id="product-fx">
    <label for="product-fx">Firefox Web Browser</label><br>
    <input type="checkbox" name="product-webmaker" id="product-webmaker">
    <label for="product-webmaker">Webmaker</label><br>
    <input type="checkbox" name="product-persona" id="product-persona">
    <label for="product-persona">Persona</label><br>
    <input type="checkbox" name="product-marketplace" id="product-marketplace">
    <label for="product-marketplace">Marketplace</label><br>
    <input type="checkbox" name="product-tb" id="product-tb">
    <label for="product-tb">Thunderbird</label><br>
    <input type="checkbox" name="product-fow" id="product-fow">
    <label for="product-fow">The Free and Open Web</label><br>
    <input type="checkbox" name="product-other" id="product-other" onchange="onProductOtherChange()">
    <label for="product-other">Other:</label>
    <input type="text" name="product-other-text" id="product-other-text" size="40" disabled>
  </td>
</tr>

<tr>
  <th class="section-head">
    Tell us more about what you're looking for!
  </th>
</tr>

<tr>
  <th>
    What are you requesting from Mozilla? [% mandatory FILTER none %]
  </th>
</tr>
<tr>
  <td>
    <div class="blurb">
      Please select all that apply.
    </div>
    <input type="checkbox" name="request-keynote" id="request-keynote">
    <label for="request-keynote">Keynote Presentation</label><br>
    <input type="checkbox" name="request-talk" id="request-talk">
    <label for="request-talk">Talk Presentation (non-keynote)</label><br>
    <input type="checkbox" name="request-workshop" id="request-workshop">
    <label for="request-workshop">Workshop</label><br>
    <input type="checkbox" name="request-sponsorship" id="request-sponsorship" onchange="onRequestSponsorshipChange()">
    <label for="request-sponsorship">Sponsorship</label><br>
    <input type="checkbox" name="request-other" id="request-other" onchange="onRequestOtherChange()">
    <label for="request-other">Other:</label>
    <input type="text" name="request-other-text" id="request-other-text" size="40" disabled>
  </td>
</tr>

<tbody id="sponsorship-suggestion-fields">
  <tr>
    <th>
      If requesting sponsorship, what amount/level do you suggest?
    </th>
  </tr>
  <tr>
    <td>
      <input type="text" name="sponsorship-suggestion" id="sponsorship-suggestion" size="40" class="wide">
    </td>
  </tr>
</tbody>

<tr>
  <th>
    Please list the names of anyone from Mozilla who are already registered to
    attend, speak, or participate in this event.
  </th>
</tr>
<tr>
  <td>
    <input type="text" name="mozillians" id="mozillians" size="40" class="wide">
  </td>
</tr>

<tr>
  <th>
    Are you requesting a specific person to present or participate at this
    event? If so, please list their name(s).
  </th>
</tr>
<tr>
  <td>
    <input type="text" name="specific" id="specific" size="40" class="wide">
  </td>
</tr>

<tr>
  <th>
    If this individual is unable to attend/speak/participate in this event, is
    there anyone else you would like to request?
  </th>
</tr>
<tr>
  <td>
    <input type="text" name="fallback" id="fallback" size="40" class="wide">
  </td>
</tr>

<tr>
  <th>
    Please upload a Sponsorship Prospectus if you have one.
  </th>
</tr>
<tr>
  <td>
    <input type="file" name="data" id="data" size="40">
    <input type="hidden" name="contenttypemethod" value="autodetect">
    <input type="hidden" id="description" name="description" value="Sponsorship Prospectus">
  </td>
</tr>

<tr>
  <th>
    Anything else that may help us review this request?
  </th>
</tr>
<tr>
  <td>
    <input type="text" name="else" id="else" size="40" class="wide">
  </td>
</tr>

<tr>
  <td>&nbsp;</td>
</tr>
<tr>
  <td>
    <input type="submit" id="commit" value="Submit Request">
  </td>
</tr>

</table>

</form>

[% PROCESS global/footer.html.tmpl %]