Commit d725139a authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 1137307: Bug reports are not valid HTML5 pages

r=dkl a=glob
parent 2ca129b9
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
[%# INTERFACE: [%# INTERFACE:
# field: a Bugzilla::Field object # field: a Bugzilla::Field object
# editable: if true, a label pointing to the editable field will be added.
# desc_url: An alternate link to help for the field. # desc_url: An alternate link to help for the field.
# hidden: True if the field label should start hidden. # hidden: True if the field label should start hidden.
# rowspan: a "rowspan" value for the label's <th>. # rowspan: a "rowspan" value for the label's <th>.
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
[%# INTERFACE: [%# INTERFACE:
# field: a Bugzilla::Field object # field: a Bugzilla::Field object
# value: The value of the field for this bug. # value: The value of the field for this bug.
# field_hidden (optional): boolean; if true, the field is hidden by default.
# override_legal_values (optional): The list of legal values, for select fields. # override_legal_values (optional): The list of legal values, for select fields.
# editable: Whether the field should be displayed as an editable # editable: Whether the field should be displayed as an editable
# <input> or as just the plain text of its value. # <input> or as just the plain text of its value.
...@@ -202,7 +203,7 @@ ...@@ -202,7 +203,7 @@
value="[% value FILTER html %]"> value="[% value FILTER html %]">
<div id="[% field.name FILTER html %]_autocomplete"></div> <div id="[% field.name FILTER html %]_autocomplete"></div>
</div> </div>
<script type="text/javascript" defer="defer"> <script type="text/javascript">
if (typeof YAHOO.bugzilla.field_array === "undefined") if (typeof YAHOO.bugzilla.field_array === "undefined")
YAHOO.bugzilla.field_array = []; YAHOO.bugzilla.field_array = [];
YAHOO.bugzilla.field_array["[% field.name FILTER js %]"] = [ YAHOO.bugzilla.field_array["[% field.name FILTER js %]"] = [
......
...@@ -23,13 +23,12 @@ ...@@ -23,13 +23,12 @@
<table id="[% flag_table_id FILTER html %]"> <table id="[% flag_table_id FILTER html %]">
[% UNLESS flag_no_header %] [% UNLESS flag_no_header %]
<tr> <tr>
<th colspan="3"> <th colspan="3">Flags:</th>
Flags:
</th>
[% IF any_flags_requesteeble %] [% IF any_flags_requesteeble %]
<th> <th>Requestee:</th>
Requestee: [% END %]
</th> [% IF edit_multiple_bugs %]
<th>&nbsp;</th>
[% END %] [% END %]
</tr> </tr>
[% END %] [% END %]
...@@ -57,7 +56,10 @@ ...@@ -57,7 +56,10 @@
[% NEXT UNLESS type.flags && type.flags.size > 0 && type.is_multiplicable && type.is_active %] [% NEXT UNLESS type.flags && type.flags.size > 0 && type.is_multiplicable && type.is_active %]
[% IF !separator_displayed %] [% IF !separator_displayed %]
<tbody class="bz_flag_type"> <tbody class="bz_flag_type">
<tr><td colspan="3"><hr></td></tr> [% sep_length = 3 + (any_flags_requesteeble ? 1 : 0) + (edit_multiple_bugs ? 1 : 0) %]
<tr>
<td colspan="[% sep_length FILTER html %]"><hr></td>
</tr>
</tbody> </tbody>
[% separator_displayed = 1 %] [% separator_displayed = 1 %]
[% END %] [% END %]
...@@ -123,7 +125,7 @@ ...@@ -123,7 +125,7 @@
<option value="--do_not_change--">--do_not_change--</option> <option value="--do_not_change--">--do_not_change--</option>
[% END %] [% END %]
[% IF !flag || (can_edit_flag && user.can_request_flag(type)) || flag.setter_id == user.id %] [% IF !flag || (can_edit_flag && user.can_request_flag(type)) || flag.setter_id == user.id %]
<option value="X"></option> <option value="X" label="X"></option>
[% END %] [% END %]
[% IF type.is_active && can_edit_flag %] [% IF type.is_active && can_edit_flag %]
[% IF (type.is_requestable && user.can_request_flag(type)) || (flag && flag.status == "?") %] [% IF (type.is_requestable && user.can_request_flag(type)) || (flag && flag.status == "?") %]
...@@ -171,16 +173,19 @@ ...@@ -171,16 +173,19 @@
[% END %] [% END %]
</td> </td>
[% END %] [% END %]
<td> [% IF edit_multiple_bugs %]
[% IF type.is_multiplicable && edit_multiple_bugs %] <td>
[% IF type.is_multiplicable %]
<input type="checkbox" name="flags_add-[% type.id %]" <input type="checkbox" name="flags_add-[% type.id %]"
id="flags_add-[% type.id %]" value="1"> id="flags_add-[% type.id %]" value="1">
<label for="flags_add-[% type.id %]" <label for="flags_add-[% type.id %]"
title="If ticked, always create a new flag. Leaving it unchecked will update existing flag(s) and add a new flag if it does not exist"> title="If ticked, always create a new flag. Leaving it unchecked will
update existing flag(s) and add a new flag if it does not exist">
Always add Always add
</label> </label>
[% END %] [% END %]
</td> </td>
[% END %]
</tr> </tr>
</tbody> </tbody>
[% END %] [% END %]
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
value="[% value FILTER html %]" [% 'autofocus' IF focus %]> value="[% value FILTER html %]" [% 'autofocus' IF focus %]>
<div id="[% field.name FILTER html %]_autocomplete"></div> <div id="[% field.name FILTER html %]_autocomplete"></div>
</div> </div>
<script type="text/javascript" defer="defer"> <script type="text/javascript">
if (typeof YAHOO.bugzilla.field_array === "undefined") if (typeof YAHOO.bugzilla.field_array === "undefined")
YAHOO.bugzilla.field_array = []; YAHOO.bugzilla.field_array = [];
YAHOO.bugzilla.field_array["[% field.name FILTER js %]"] = [ YAHOO.bugzilla.field_array["[% field.name FILTER js %]"] = [
......
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