]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1565741 - Let users choose defect or enhancement on guided bug entry form
authorKohei Yoshino <kohei.yoshino@gmail.com>
Mon, 15 Jul 2019 23:14:20 +0000 (19:14 -0400)
committerGitHub <noreply@github.com>
Mon, 15 Jul 2019 23:14:20 +0000 (19:14 -0400)
extensions/GuidedBugEntry/template/en/default/guided/guided.html.tmpl

index 55bea4c6aa4f22f67dd4cf4ed5b432da6098356e..39725dfc8a97cfece3f08172575443d6ce24e902 100644 (file)
@@ -326,7 +326,6 @@ Product: <b><span id="dupes_product_name">?</span></b>:
 
 <form method="post" action="[% basepath FILTER none %]post_bug.cgi" enctype="multipart/form-data" onsubmit="return bugForm.validate()">
 <input type="hidden" name="token" value="[% token FILTER html %]">
-<input type="hidden" name="bug_type" value="defect">
 <input type="hidden" name="product" id="product" value="">
 <input type="hidden" name="component" id="component" value="">
 <input type="hidden" name="bug_severity" value="normal">
@@ -474,6 +473,28 @@ explain how to write effective [% terms.bug %] reports.</li>
   <td>&nbsp;</td>
 </tr>
 
+<tr>
+  <td class="label">[% terms.Bug %] Type:</td>
+  <td>
+    <label>
+      <input type="radio" name="bug_type" value="defect" required>
+      This is a defect report.
+    </label>
+  </td>
+  <td>
+    <label>
+      <input type="radio" name="bug_type" value="enhancement" required>
+      This is a request for enhancement.
+    </label>
+  </td>
+  <td>
+    [% PROCESS help id="type_help" %]
+    <div id="type_help" class="hidden help">
+      Please select what kind of [% terms.bug %] you’re about to submit.
+    </div>
+  </td>
+</tr>
+
 <tr>
   <td class="label">Security:</td>
   <td colspan="2">