Commit e1cf1772 authored by Simon Green's avatar Simon Green

Bug 456043 - Make enter_bug consistent with show_bug for Severity and Priority

r=glob, a=justdave
parent 081f4dae
...@@ -184,9 +184,9 @@ TUI_hide_default('attachment_text_field'); ...@@ -184,9 +184,9 @@ TUI_hide_default('attachment_text_field');
<tr> <tr>
[% INCLUDE "bug/field-label.html.tmpl" [% INCLUDE "bug/field-label.html.tmpl"
field = bug_fields.version editable = 1 rowspan = 3 field = bug_fields.version editable = 1 rowspan = 4
%] %]
<td rowspan="3"> <td rowspan="4">
<select name="version" id="version" size="5" aria-required="true" <select name="version" id="version" size="5" aria-required="true"
class="required"> class="required">
[%- FOREACH v = version %] [%- FOREACH v = version %]
...@@ -203,6 +203,16 @@ TUI_hide_default('attachment_text_field'); ...@@ -203,6 +203,16 @@ TUI_hide_default('attachment_text_field');
value = default.bug_severity %] value = default.bug_severity %]
</tr> </tr>
<tr class="expert_fields">
[% IF Param('letsubmitterchoosepriority') %]
[% INCLUDE bug/field.html.tmpl
bug = default, field = bug_fields.priority, editable = 1,
value = default.priority %]
[% ELSE %]
<td colspan="2">&nbsp;</td>
[% END %]
</tr>
<tr> <tr>
[% INCLUDE bug/field.html.tmpl [% INCLUDE bug/field.html.tmpl
bug = default, field = bug_fields.rep_platform, editable = 1, bug = default, field = bug_fields.rep_platform, editable = 1,
...@@ -216,7 +226,8 @@ TUI_hide_default('attachment_text_field'); ...@@ -216,7 +226,8 @@ TUI_hide_default('attachment_text_field');
</tr> </tr>
[% IF (!Param('defaultplatform') || !Param('defaultopsys')) && !cloned_bug_id %] [% IF (!Param('defaultplatform') || !Param('defaultopsys')) && !cloned_bug_id %]
<tr> <tr>
<th colspan="3">&nbsp;</th> <td colspan="2" class="expert_fields">&nbsp;</td>
<td>&nbsp;</td>
<td id="os_guess_note" class="comment"> <td id="os_guess_note" class="comment">
<div>We've made a guess at your <div>We've made a guess at your
[% IF Param('defaultplatform') %] [% IF Param('defaultplatform') %]
...@@ -240,13 +251,7 @@ TUI_hide_default('attachment_text_field'); ...@@ -240,13 +251,7 @@ TUI_hide_default('attachment_text_field');
<td colspan="2">&nbsp;</td> <td colspan="2">&nbsp;</td>
[% END %] [% END %]
[% IF Param('letsubmitterchoosepriority') %] <td colspan="2">&nbsp;</td>
[% INCLUDE bug/field.html.tmpl
bug = default, field = bug_fields.priority, editable = 1,
value = default.priority %]
[% ELSE %]
<td colspan="2">&nbsp;</td>
[% END %]
</tr> </tr>
</tbody> </tbody>
...@@ -263,7 +268,7 @@ TUI_hide_default('attachment_text_field'); ...@@ -263,7 +268,7 @@ TUI_hide_default('attachment_text_field');
<td>&nbsp;</td> <td>&nbsp;</td>
[%# Calculate the number of rows we can use for flags %] [%# Calculate the number of rows we can use for flags %]
[% num_rows = 7 + (Param("useqacontact") ? 1 : 0) + [% num_rows = 6 + (Param("useqacontact") ? 1 : 0) +
(user.is_timetracker ? 3 : 0) (user.is_timetracker ? 3 : 0)
%] %]
...@@ -387,7 +392,7 @@ TUI_hide_default('attachment_text_field'); ...@@ -387,7 +392,7 @@ TUI_hide_default('attachment_text_field');
[% INCLUDE "bug/field-label.html.tmpl" [% INCLUDE "bug/field-label.html.tmpl"
field = bug_fields.bug_file_loc editable = 1 field = bug_fields.bug_file_loc editable = 1
%] %]
<td colspan="2" class="field_value"> <td colspan="3" class="field_value">
<input name="bug_file_loc" id="bug_file_loc" class="text_input" <input name="bug_file_loc" id="bug_file_loc" class="text_input"
size="40" value="[% bug_file_loc FILTER html %]"> size="40" value="[% bug_file_loc FILTER html %]">
</td> </td>
...@@ -532,7 +537,7 @@ TUI_hide_default('attachment_text_field'); ...@@ -532,7 +537,7 @@ TUI_hide_default('attachment_text_field');
[% INCLUDE bug/field.html.tmpl [% INCLUDE bug/field.html.tmpl
bug = default, field = bug_fields.keywords, editable = 1, bug = default, field = bug_fields.keywords, editable = 1,
value = keywords, possible_values = all_keywords, value = keywords, possible_values = all_keywords,
desc_url = "describekeywords.cgi", value_span = 2 desc_url = "describekeywords.cgi", value_span = 3
%] %]
</tr> </tr>
[% END %] [% END %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment