@@ -38,6 +38,7 @@ YAHOO.util.Dom.removeClass('loading', 'hidden');
3838</script>
3939
4040<div id= " steps" >
41+ [% INCLUDE webdev_step %]
4142[% INCLUDE product_step %]
4243[% INCLUDE otherProducts_step %]
4344[% INCLUDE dupes_step %]
@@ -52,7 +53,7 @@ YAHOO.util.Dom.removeClass('loading', 'hidden');
5253
5354<script type= " text/javascript" >
5455YAHOO.util.Dom.addClass ('loading', 'hidden');
55- guided.init ();
56+ guided.init ({ webdev: [% webdev ? " true " : " false " %] } );
5657guided.detectedPlatform = '[% platform FILTER js %]';
5758guided.detectedOpSys = '[% op_sys FILTER js %]';
5859guided.currentUser = '[% user.login FILTER js %]';
@@ -81,20 +82,52 @@ dupes.setLabels(
8182[% BLOCK page_title %]
8283 <div id= " page_title" >
8384 <h2>Enter A [% terms.Bug %]</h2>
84- <h3>Step [% step_number FILTER html %] of 3</h3>
8585 </div>
8686[% END %]
8787
88+ [%############################################################################%]
89+ [%# webdev step #%]
90+ [%############################################################################%]
91+
92+ [% BLOCK webdev_step %]
93+ <div id= " webdev_step" class= " step hidden" >
94+
95+ [% INCLUDE page_title %]
96+
97+ <p>Are you reporting a [% terms.bug %] with :</p>
98+
99+ <ul class= " product-list" >
100+ [% WRAPPER product_block
101+ icon= " component.png"
102+ onclick= " product.select('Core', 'Untriaged')" %]
103+ HTML, CSS, JS, SVG, or some other web technology or combination of
104+ web technologies?
105+ [% END %]
106+
107+ [% WRAPPER product_block
108+ icon= " devedition.png"
109+ onclick= " product.select('Firefox', 'Developer Tools')" %]
110+ Firefox's developer tools
111+ [% END %]
112+
113+ [% WRAPPER product_block
114+ icon= " firefox.png"
115+ onclick= " product.select('Firefox', 'Untriaged')" %]
116+ Firefox's user interface (for example, an issue with bookmarks,
117+ tabbed browsing or the location bar)
118+ [% END %]
119+ </ul>
120+ </div>
121+ [% END %]
122+
88123[%############################################################################%]
89124[%# product step #%]
90125[%############################################################################%]
91126
92127[% BLOCK product_step %]
93128<div id= " product_step" class= " step hidden" >
94129
95- [% INCLUDE page_title
96- step_number = " 1"
97- %]
130+ [% INCLUDE page_title %]
98131
99132[% INCLUDE exits
100133 show = " all"
@@ -160,9 +193,7 @@ Other Mozilla products which aren't listed here
160193[% BLOCK otherProducts_step %]
161194<div id= " otherProducts_step" class= " step hidden" >
162195
163- [% INCLUDE page_title
164- step_number = " 1"
165- %]
196+ [% INCLUDE page_title %]
166197
167198[% INCLUDE exits
168199 show = " all"
@@ -238,7 +269,8 @@ Other Mozilla products which aren't listed here
238269 </div>
239270 </td>
240271 <td class= " exit_text_last" >
241- <a href= " enter_bug.cgi?format=guided&product=Core" >Report an issue with Firefox on a site that I've developed</a><br>
272+
273+ <a onclick= " product.select('Core', 'Untriaged')" href= " javascript:void(0)" >Report an issue with Firefox on a site that I've developed</a><br>
242274 <a href= " http://input.mozilla.org/feedback/#sad" >Report an issue with a web site that I use</a><br>
243275 </td>
244276 </tr>
@@ -249,38 +281,18 @@ Other Mozilla products which aren't listed here
249281</h3>
250282[% END %]
251283
252- [% BLOCK exit_block %]
253- <tr>
254- <td>
255- <div class= " exit_img" >
256- <a href= " [% href FILTER none %]"
257- ><img src= " extensions/GuidedBugEntry/web/images/[% icon FILTER uri %]" width= " 32" height= " 32"
258- ></a>
259- </div>
260- </td>
261- <td width= " 100%" >
262- <h2>
263- <a href= " [% href FILTER none %]" >[% name FILTER html %]</a>
264- </h2>
265- [% desc FILTER html %]
266- </td>
267- </tr>
268- [% END %]
269-
270284[%############################################################################%]
271285[%# duplicates step #%]
272286[%############################################################################%]
273287
274288[% BLOCK dupes_step %]
275289<div id= " dupes_step" class= " step hidden" >
276290
277- [% INCLUDE page_title
278- step_number = " 2"
279- %]
291+ [% INCLUDE page_title %]
280292
281293<p>
282294Product: <b><span id= " dupes_product_name" >?</span></b>:
283- (<a href= " javascript:void(0)" onclick= " guided.setStep('product ')" >Change</a>)
295+ (<a href= " javascript:void(0)" onclick= " guided.setStep('default ')" >Change</a>)
284296</p>
285297
286298<table border= " 0" cellpadding= " 5" cellspacing= " 0" id= " product_support" class= " hidden" >
@@ -329,9 +341,7 @@ Product: <b><span id="dupes_product_name">?</span></b>:
329341[% BLOCK bugForm_step %]
330342<div id= " bugForm_step" class= " step hidden" >
331343
332- [% INCLUDE page_title
333- step_number = " 3"
334- %]
344+ [% INCLUDE page_title %]
335345
336346<form method= " post" action= " post_bug.cgi" enctype= " multipart/form-data" onsubmit= " return bugForm.validate()" >
337347<input type= " hidden" name= " token" value= " [% token FILTER html %]" >
@@ -376,7 +386,7 @@ explain how to write effective [% terms.bug %] reports.</li>
376386 <td class= " label" >Product:</td>
377387 <td id= " productTD" >
378388 <span id= " product_label" ></span>
379- (<a href= " javascript:void(0)" onclick= " guided.setStep('product ')" >Change</a>)
389+ (<a href= " javascript:void(0)" onclick= " guided.setStep('default ')" >Change</a>)
380390 </td>
381391 <td id= " versionTD" class= " hidden" >
382392 <span class= " label" >Version:
@@ -477,7 +487,7 @@ explain how to write effective [% terms.bug %] reports.</li>
477487 </div>
478488 </td>
479489</tr>
480- <tr>
490+ <tr id = " data_description_tr " >
481491 <td class= " label" >File Description:</td>
482492 <td colspan= " 2" ><input type= " text" name= " description" id= " data_description" class= " textInput" disabled></td>
483493 <td> </td>
0 commit comments