Skip to content

Commit d645d21

Browse files
committed
Bug 1125320: form.dev-engagement-event: Two new questions
1 parent c00b9c3 commit d645d21

File tree

3 files changed

+43
-24
lines changed

3 files changed

+43
-24
lines changed

extensions/BMO/template/en/default/bug/create/comment-dev-engagement-event.txt.tmpl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ Weblink:
7171
Expected Attendees:
7272
[%+ cgi.param('attendees') || "-" %]
7373

74+
Primary Audience:
75+
[%+ cgi.param('audience') %]
76+
7477
Event Description:
7578
[%+ cgi.param('desc') || "-" %]
7679

@@ -98,9 +101,6 @@ Speaker Needed Topic:
98101
[%+ cgi.param('speaker_needed_topic') %]
99102
[% END %]
100103

101-
Development Session?:
102-
[%+ cgi.param('development_session') %]
103-
104104
::
105105

106106
Requests:
@@ -124,5 +124,11 @@ Previous Event Name:
124124
Suggested sponsorship amount/level:
125125
[%+ cgi.param('sponsorship_suggestion') || "-" %]
126126

127+
How would the conference/event support Mozilla's mission and goals?:
128+
[%+ cgi.param('support_mission') || "-" %]
129+
130+
How would we receive feedback to evaluate the success of the conference/event?:
131+
[%+ cgi.param('feedback_method') || "-" %]
132+
127133
Anything Else:
128134
[%+ cgi.param('else') || "-" %]

extensions/BMO/template/en/default/bug/create/create-dev-engagement-event.html.tmpl

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,17 @@
286286
<input type="text" name="attendees" id="attendees" size="15">
287287
</div>
288288

289+
<div class="form_section">
290+
<div class="field_label required">
291+
Who is the primary audience for this event? [% mandatory FILTER none %]
292+
</div>
293+
<div class="field_desc">
294+
Developers (specify coding language and platform), business development,
295+
marketing associates, corporate executives, etc.
296+
</div>
297+
<input type="text" name="audience" id="audience" size="40" class="wide">
298+
</div>
299+
289300
<div class="form_section">
290301
<div class="field_label required">
291302
Please give a [short] description of the event.
@@ -353,6 +364,28 @@
353364
</select>
354365
</div>
355366

367+
<div class="form_section">
368+
<div class="field_label">
369+
How would the conference/event support <a href="https://www.mozilla.org/mission/">
370+
Mozilla's mission and goals</a>?
371+
</div>
372+
<div class="field_desc">
373+
Are there specific portions of the conference/event that can be described to be
374+
specifically beneficial to our mission?
375+
</div>
376+
<textarea name="support_mission" id="support_mission" rows="10" cols="40" class="wide"></textarea>
377+
</div>
378+
379+
<div class="form_section">
380+
<div class="field_label">
381+
How would we receive feedback to evaluate the success of the conference/event?
382+
</div>
383+
<div class="field_desc">
384+
Please be specific in measurements or feedback process.
385+
</div>
386+
<textarea name="feedback_method" id="feedback_method" rows="10" cols="40" class="wide"></textarea>
387+
</div>
388+
356389
<div id="speaker_needed_detail_section" class="form_section bz_default_hidden">
357390
<div class="field_label required">
358391
What topic do you want someone to speak about?
@@ -365,19 +398,6 @@
365398
id="speaker_needed_topic" size="40" class="wide">
366399
</div>
367400

368-
<div class="form_section">
369-
<div class="field_label required">
370-
Will this event include a session about developing with HTML, CSS, or
371-
JavaScript?
372-
</div>
373-
<select id="development_session" name="development_session">
374-
<option value="">Select</option>
375-
<option value="Yes">Yes</option>
376-
<option value="No">No</option>
377-
<option value="To be determined">To be determined</option>
378-
</select>
379-
</div>
380-
381401
<div class="head_desc">
382402
Tell us more about what you're looking for!
383403
</div>

extensions/BMO/web/js/dev_engagement.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ var DE = {
8181
'end_date' : 'Please enter the event end date.',
8282
'location' : 'Please enter a location description for the event.',
8383
'attendees' : 'Please enter number of expected attendees.',
84+
'audience' : 'Please enter the intended audience for the event.',
8485
'desc' : 'Please enter a description of the event.',
8586
};
8687

@@ -91,7 +92,6 @@ var DE = {
9192
'code_of_conduct' : 'Please select if the event has a code of conduct.',
9293
'event_location' : 'Please a location for the event.',
9394
'previous_event' : 'Please select if Mozilla has sponsored this event before.',
94-
'development_session' : 'Please select if this event includes a development session.',
9595
};
9696

9797
if (fieldValue('vouched_mozillian') == 'Yes')
@@ -223,13 +223,6 @@ var DE = {
223223
wb += '[needs-speaker:' + needs_speaker + '] ';
224224
var sponsor_booth = fieldValue('sponsor_booth') == 'Yes' ? 'true' : 'false';
225225
wb += '[option-to-sponsor-booth:' + sponsor_booth + '] ';
226-
var dev_session_map = {
227-
'Yes' : 'true',
228-
'No' : 'false',
229-
'To be determined' : 'tbd',
230-
};
231-
wb += '[open-web-session-at-event:' +
232-
dev_session_map[fieldValue('development_session')] + '] ';
233226
wb += '[expected-attendees:' + fieldValue('attendees') + '] ';
234227
var prospectus = fieldValue('data') ? 'true' : 'false';
235228
wb += '[prospectus:' + prospectus + '] ';

0 commit comments

Comments
 (0)