Bug 175579 - make templates html compliant

r=gerv, a=justdave
parent ea9345d6
...@@ -30,20 +30,20 @@ ...@@ -30,20 +30,20 @@
There are [% flag_count %] flags of type [% name %]. There are [% flag_count %] flags of type [% name %].
If you delete this type, those flags will also be deleted. Note that If you delete this type, those flags will also be deleted. Note that
instead of deleting the type you can instead of deleting the type you can
<a href="editflagtypes.cgi?action=deactivate&id=[% flag_type.id %]">deactivate it</a>, <a href="editflagtypes.cgi?action=deactivate&amp;id=[% flag_type.id %]">deactivate it</a>,
in which case the type and its flags will remain in the database in which case the type and its flags will remain in the database
but will not appear in the Bugzilla UI. but will not appear in the Bugzilla UI.
</p> </p>
<table> <table>
<tr> <tr>
<td colspan=2> <td colspan="2">
Do you really want to delete this type? Do you really want to delete this type?
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<a href="editflagtypes.cgi?action=delete&id=[% flag_type.id %]"> <a href="editflagtypes.cgi?action=delete&amp;id=[% flag_type.id %]">
Yes, delete Yes, delete
</a> </a>
</td> </td>
......
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<tr> <tr>
<td style="vertical-align: top;"> <td style="vertical-align: top;">
<b>Product/Component:</b><br> <b>Product/Component:</b><br>
<select name="product" onChange="selectProduct(this.form, 'product', 'component', '__Any__');"> <select name="product" onchange="selectProduct(this.form, 'product', 'component', '__Any__');">
<option value="">__Any__</option> <option value="">__Any__</option>
[% FOREACH item = products %] [% FOREACH item = products %]
<option value="[% item %]" [% "selected" IF type.product.name == item %]>[% item %]</option> <option value="[% item %]" [% "selected" IF type.product.name == item %]>[% item %]</option>
...@@ -112,12 +112,12 @@ ...@@ -112,12 +112,12 @@
</td> </td>
<td style="vertical-align: top;"> <td style="vertical-align: top;">
<b>Inclusions:</b><br> <b>Inclusions:</b><br>
[% PROCESS "global/select-menu.html.tmpl" name="inclusion_to_remove" multiple=1 size=4 options=type.inclusions %]<br> [% PROCESS "global/select-menu.html.tmpl" name="inclusion_to_remove" multiple="1" size="4" options=type.inclusions %]<br>
<input type="submit" name="categoryAction" value="Remove Inclusion"> <input type="submit" name="categoryAction" value="Remove Inclusion">
</td> </td>
<td style="vertical-align: top;"> <td style="vertical-align: top;">
<b>Exclusions:</b><br> <b>Exclusions:</b><br>
[% PROCESS "global/select-menu.html.tmpl" name="exclusion_to_remove" multiple=1 size=4 options=type.exclusions %]<br> [% PROCESS "global/select-menu.html.tmpl" name="exclusion_to_remove" multiple="1" size="4" options=type.exclusions %]<br>
<input type="submit" name="categoryAction" value="Remove Exclusion"> <input type="submit" name="categoryAction" value="Remove Exclusion">
</td> </td>
</tr> </tr>
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
[% PROCESS display_flag_types types=bug_types %] [% PROCESS display_flag_types types=bug_types %]
<p> <p>
<a href="editflagtypes.cgi?action=enter&target_type=bug">Create Flag Type for Bugs</a> <a href="editflagtypes.cgi?action=enter&amp;target_type=bug">Create Flag Type for Bugs</a>
</p> </p>
<h3>Flag Types for Attachments</h3> <h3>Flag Types for Attachments</h3>
...@@ -54,10 +54,10 @@ ...@@ -54,10 +54,10 @@
[% PROCESS display_flag_types types=attachment_types %] [% PROCESS display_flag_types types=attachment_types %]
<p> <p>
<a href="editflagtypes.cgi?action=enter&target_type=attachment">Create Flag Type For Attachments</a> <a href="editflagtypes.cgi?action=enter&amp;target_type=attachment">Create Flag Type For Attachments</a>
</p> </p>
<script language="JavaScript"> <script type="text/javascript" language="JavaScript">
<!-- <!--
function confirmDelete(id, name, count) function confirmDelete(id, name, count)
{ {
...@@ -91,11 +91,11 @@ ...@@ -91,11 +91,11 @@
[% FOREACH type = types %] [% FOREACH type = types %]
<tr class="[% type.is_active ? "active" : "inactive" %]"> <tr class="[% type.is_active ? "active" : "inactive" %]">
<td><a href="editflagtypes.cgi?action=edit&id=[% type.id %]">[% type.name FILTER html %]</a></td> <td><a href="editflagtypes.cgi?action=edit&amp;id=[% type.id %]">[% type.name FILTER html %]</a></td>
<td>[% type.description FILTER html %]</td> <td>[% type.description FILTER html %]</td>
<td> <td>
<a href="editflagtypes.cgi?action=copy&id=[% type.id %]">Copy</a> <a href="editflagtypes.cgi?action=copy&amp;id=[% type.id %]">Copy</a>
| <a href="editflagtypes.cgi?action=confirmdelete&id=[% type.id %]" | <a href="editflagtypes.cgi?action=confirmdelete&amp;id=[% type.id %]"
onclick="return confirmDelete([% type.id %], '[% type.name FILTER js %]', onclick="return confirmDelete([% type.id %], '[% type.name FILTER js %]',
[% type.flag_count %]);">Delete</a> [% type.flag_count %]);">Delete</a>
</td> </td>
......
...@@ -51,10 +51,10 @@ ...@@ -51,10 +51,10 @@
[% IF mode == "edit" && isinsider %] [% IF mode == "edit" && isinsider %]
<i> <i>
<input type=hidden name="oisprivate-[% count %]" <input type="hidden" name="oisprivate-[% count %]"
value="[% comment.isprivate %]"> value="[% comment.isprivate %]">
<input type=hidden name="when-[% count %]" value="[% comment.when %]"> <input type="hidden" name="when-[% count %]" value="[% comment.when %]">
<input type=checkbox name="isprivate-[% count %]" value="1" <input type="checkbox" name="isprivate-[% count %]" value="1"
[% " checked=\"checked\"" IF comment.isprivate %]> Private [% " checked=\"checked\"" IF comment.isprivate %]> Private
</i> </i>
[% END %] [% END %]
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
[% tablecolour = "#FFFFCC" %] [% tablecolour = "#FFFFCC" %]
[%# This script displays the descriptions for selected components. %] [%# This script displays the descriptions for selected components. %]
<script> <script type="text/javascript">
var descriptions = [ var descriptions = [
[% FOREACH c = component_ %] [% FOREACH c = component_ %]
'[% c.description FILTER js %]', '[% c.description FILTER js %]',
...@@ -486,7 +486,7 @@ function PutDescription() { ...@@ -486,7 +486,7 @@ function PutDescription() {
<option name="major" value="major"> <option name="major" value="major">
Major: A major feature is broken. Major: A major feature is broken.
</option> </option>
<option name="normal" value="normal" selected> <option name="normal" value="normal" selected="selected">
Normal: It's a bug that should be fixed. Normal: It's a bug that should be fixed.
</option> </option>
<option name="minor" value="minor"> <option name="minor" value="minor">
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
# Rights Reserved. # Rights Reserved.
# #
# Contributor(s): Gervase Markham <gerv@gerv.net> # Contributor(s): Gervase Markham <gerv@gerv.net>
# Ville Skytt <ville.skytta@iki.fi> # Ville Skyttä <ville.skytta@iki.fi>
#%] #%]
[% PROCESS global/header.html.tmpl [% PROCESS global/header.html.tmpl
...@@ -159,7 +159,7 @@ ...@@ -159,7 +159,7 @@
<tr> <tr>
<td align="right"><strong>Estimated Hours:</strong></td> <td align="right"><strong>Estimated Hours:</strong></td>
<td colspan="3"> <td colspan="3">
<input name="estimated_time" size="6" maxlength="6" value="0.0"/> <input name="estimated_time" size="6" maxlength="6" value="0.0">
</td> </td>
</tr> </tr>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
# Rights Reserved. # Rights Reserved.
# #
# Contributor(s): Tobias Burnus <burnus@net-b.de> # Contributor(s): Tobias Burnus <burnus@net-b.de>
# Ville Skytt <ville.skytta@iki.fi> # Ville Skyttä <ville.skytta@iki.fi>
# Myk Melez <myk@mozilla.org> # Myk Melez <myk@mozilla.org>
#%] #%]
......
...@@ -290,24 +290,24 @@ function updateRemainingTime() { ...@@ -290,24 +290,24 @@ function updateRemainingTime() {
[% IF UserInGroup(Param('timetrackinggroup')) %] [% IF UserInGroup(Param('timetrackinggroup')) %]
<br> <br>
<table cellpadding=0 cellspacing=0 border=1> <table cellspacing="0" cellpadding="4" border="1">
<tr> <tr>
<th width="16.6%" align="center" bgcolor="#cccccc"> <th align="center" bgcolor="#cccccc">
Orig. Est. Orig. Est.
</th> </th>
<th width="16.6%" align="center" bgcolor="#cccccc"> <th align="center" bgcolor="#cccccc">
Current Est. Current Est.
</th> </th>
<th width="16.6%" align="center" bgcolor="#cccccc"> <th align="center" bgcolor="#cccccc">
Hours Worked Hours Worked
</th> </th>
<th width="16.6%" align="center" bgcolor="#cccccc"> <th align="center" bgcolor="#cccccc">
Hours Left Hours Left
</th> </th>
<th width="16.6%" align="center" bgcolor="#cccccc"> <th align="center" bgcolor="#cccccc">
%Complete %Complete
</th> </th>
<th width="16.6%" align="center" bgcolor="#cccccc"> <th align="center" bgcolor="#cccccc">
Gain Gain
</th> </th>
</tr> </tr>
...@@ -325,13 +325,13 @@ function updateRemainingTime() { ...@@ -325,13 +325,13 @@ function updateRemainingTime() {
<td align="center"> <td align="center">
[% PROCESS formattimeunit time_unit=bug.actual_time %] + [% PROCESS formattimeunit time_unit=bug.actual_time %] +
<input name="work_time" value="0" size="3" maxlength="6" <input name="work_time" value="0" size="3" maxlength="6"
onChange="adjustRemainingTime();"> onchange="adjustRemainingTime();">
</td> </td>
<td align="center"> <td align="center">
<input name="remaining_time" <input name="remaining_time"
value="[% PROCESS formattimeunit value="[% PROCESS formattimeunit
time_unit=bug.remaining_time %]" time_unit=bug.remaining_time %]"
size="6" maxlength="6" onChange="updateRemainingTime();"> size="6" maxlength="6" onchange="updateRemainingTime();">
</td> </td>
<td align="center"> <td align="center">
[% PROCESS calculatepercentage act=bug.actual_time [% PROCESS calculatepercentage act=bug.actual_time
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
<option value="?" [% "selected" IF flag.status == "?" %]>?</option> <option value="?" [% "selected" IF flag.status == "?" %]>?</option>
[% END %] [% END %]
[% ELSE %] [% ELSE %]
<option value="[% flag.status %]" selected>[% flag.status %]</option> <option value="[% flag.status %]" selected="selected">[% flag.status %]</option>
[% END %] [% END %]
</select> </select>
</td> </td>
......
...@@ -67,10 +67,10 @@ ...@@ -67,10 +67,10 @@
[% END %] [% END %]
<p> <p>
<table border=0> <table border="0">
<tr> <tr>
<td colspan=2> <td colspan="2">
<hr width=100% size=1> <hr width="100%" size="1">
</td> </td>
</tr> </tr>
...@@ -78,10 +78,10 @@ ...@@ -78,10 +78,10 @@
[% FOREACH field = matches %] [% FOREACH field = matches %]
<tr> <tr>
<td align=left valign=top> <td align="left" valign="top">
[% PROCESS field_names field_name=field.key %]: [% PROCESS field_names field_name=field.key %]:
</td> </td>
<td align=left valign=top> <td align="left" valign="top">
[% FOREACH query = field.value %] [% FOREACH query = field.value %]
<b>[% query.key FILTER html %]</b> <b>[% query.key FILTER html %]</b>
[% IF query.value.users.size %] [% IF query.value.users.size %]
...@@ -143,8 +143,8 @@ ...@@ -143,8 +143,8 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan=2> <td colspan="2">
<hr width=100% size=1> <hr width="100%" size="1">
</td> </td>
</tr> </tr>
[% END %] [% END %]
......
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
<input type="hidden" name="buglist" value="[% buglist %]"> <input type="hidden" name="buglist" value="[% buglist %]">
<input type="submit" value="Long Format"> <input type="submit" value="Long Format">
&nbsp;&nbsp; &nbsp;&nbsp;
<a href="buglist.cgi?[% urlquerypart %]&ctype=csv">CSV</a> &nbsp;&nbsp; <a href="buglist.cgi?[% urlquerypart %]&amp;ctype=csv">CSV</a> &nbsp;&nbsp;
<a href="colchange.cgi?[% urlquerypart %]">Change Columns</a> &nbsp;&nbsp; <a href="colchange.cgi?[% urlquerypart %]">Change Columns</a> &nbsp;&nbsp;
[% IF bugs.size > 1 && caneditbugs && !dotweak %] [% IF bugs.size > 1 && caneditbugs && !dotweak %]
......
...@@ -95,7 +95,8 @@ ...@@ -95,7 +95,8 @@
[% END %]width=[% width %]&amp;height=[% height %] [% END %]width=[% width %]&amp;height=[% height %]
[% END %] [% END %]
<img src="[% imageurl %]" width="[% width %]" height="[% height %]"> <img alt="Graphical report results" src="[% imageurl %]"
width="[% width %]" height="[% height %]">
[% END %] [% END %]
<br> <br>
[% END %] [% END %]
...@@ -113,12 +114,12 @@ ...@@ -113,12 +114,12 @@
[% FOREACH other_format = formats %] [% FOREACH other_format = formats %]
[% NEXT IF other_format.name == "pie" AND row_field %] [% NEXT IF other_format.name == "pie" AND row_field %]
[% UNLESS other_format.name == format %] [% UNLESS other_format.name == format %]
<a href="[% formaturl %]&format=[% other_format.name %]"> <a href="[% formaturl %]&amp;format=[% other_format.name %]">
[% END %] [% END %]
[% other_format.description %] [% other_format.description %]
[% "</a>" UNLESS other_format.name == format %] | [% "</a>" UNLESS other_format.name == format %] |
[% END %] [% END %]
<a href="[% formaturl %]&ctype=csv">CSV</a> <a href="[% formaturl %]&amp;ctype=csv">CSV</a>
</td> </td>
[% IF format != "table" %] [% IF format != "table" %]
...@@ -126,15 +127,15 @@ ...@@ -126,15 +127,15 @@
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td> </td>
[% sizeurl = "report.cgi?$switchbase&action=wrap&format=$format" %] [% sizeurl = "report.cgi?$switchbase&amp;action=wrap&amp;format=$format" %]
<td align="center"> <td align="center">
<a href="[% sizeurl %]&width=[% width %]&height= <a href="[% sizeurl %]&amp;width=[% width %]&amp;height=
[% height + 100 %]">Taller</a><br> [% height + 100 %]">Taller</a><br>
<a href="[% sizeurl %]&width=[% width - 100 %]&height= <a href="[% sizeurl %]&amp;width=[% width - 100 %]&amp;height=
[% height %]">Thinner</a> * [% height %]">Thinner</a> *
<a href="[% sizeurl %]&width=[% width + 100 %]&height= <a href="[% sizeurl %]&amp;width=[% width + 100 %]&amp;height=
[% height %]">Fatter</a>&nbsp;&nbsp;&nbsp;&nbsp;<br> [% height %]">Fatter</a>&nbsp;&nbsp;&nbsp;&nbsp;<br>
<a href="[% sizeurl %]&width=[% width %]&height= <a href="[% sizeurl %]&amp;width=[% width %]&amp;height=
[% height - 100 %]">Shorter</a><br> [% height - 100 %]">Shorter</a><br>
</td> </td>
[% END %] [% END %]
...@@ -143,11 +144,13 @@ ...@@ -143,11 +144,13 @@
<p> <p>
[% IF format == "table" %] [% IF format == "table" %]
<a href="query.cgi?[% switchbase %]&format=report-table">Edit <a href="query.cgi?[% switchbase %]&amp;format=report-table">Edit
this report</a> this report</a>
[% ELSE %] [% ELSE %]
<a href="query.cgi?[% switchbase %]&format=report-graph&chart_format= <a href="query.cgi?[% switchbase %]&amp;format=report-graph&amp;
[% format %]&cumulate=[% cumulate %]">Edit this report</a> chart_format=[% format %]&amp;cumulate=[% cumulate %]">
Edit this report
</a>
[% END %] [% END %]
</p> </p>
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<td><input type="text" name="requester" value="[% form.requester FILTER html %]" size="20"></td> <td><input type="text" name="requester" value="[% form.requester FILTER html %]" size="20"></td>
<th>Product:</th> <th>Product:</th>
<td> <td>
<select name="product" onChange="selectProduct(this.form, 'product', 'component', 'Any');"> <select name="product" onchange="selectProduct(this.form, 'product', 'component', 'Any');">
<option value="">Any</option> <option value="">Any</option>
[% FOREACH item = products %] [% FOREACH item = products %]
<option value="[% item FILTER html %]" <option value="[% item FILTER html %]"
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
[% BLOCK display_attachment %] [% BLOCK display_attachment %]
[% IF request.attach_id %] [% IF request.attach_id %]
<a href="attachment.cgi?id=[% request.attach_id %]&action=edit"> <a href="attachment.cgi?id=[% request.attach_id %]&amp;action=edit">
[% request.attach_id %]: [%+ request.attach_summary FILTER html %]</a> [% request.attach_id %]: [%+ request.attach_summary FILTER html %]</a>
[% ELSE %] [% ELSE %]
N/A N/A
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
Added Added
</td> </td>
<td width="150px" height="150px"> <td width="150" height="150">
<table border="1" width="100%" height="100%"> <table border="1" width="100%" height="100%">
<tr> <tr>
<td align="center" valign="middle"> <td align="center" valign="middle">
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<td>&nbsp;&nbsp;</td> <td>&nbsp;&nbsp;</td>
<td rowspan="2"> <td rowspan="2">
<b>Format:</b><br> <b>Format:</b><br>
<input type="radio" name="ctype" value="html" checked>HTML<br> <input type="radio" name="ctype" value="html" checked="checked">HTML<br>
<input type="radio" name="ctype" value="csv">CSV <input type="radio" name="ctype" value="csv">CSV
</td> </td>
</tr> </tr>
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
<b>Vertical Axis:</b><br> <b>Vertical Axis:</b><br>
[% PROCESS select name = 'y_axis_field' %] [% PROCESS select name = 'y_axis_field' %]
</td> </td>
<td width="150px" height="150px"> <td width="150" height="150">
<table border="1" width="100%" height="100%"> <table border="1" width="100%" height="100%">
<tr> <tr>
<td align="center" valign="middle"> <td align="center" valign="middle">
......
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