]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 175579 - make templates html compliant
authorbbaetz%student.usyd.edu.au <>
Tue, 19 Nov 2002 08:16:24 +0000 (08:16 +0000)
committerbbaetz%student.usyd.edu.au <>
Tue, 19 Nov 2002 08:16:24 +0000 (08:16 +0000)
r=gerv, a=justdave

16 files changed:
template/en/default/admin/flag-type/confirm-delete.html.tmpl
template/en/default/admin/flag-type/edit.html.tmpl
template/en/default/admin/flag-type/list.html.tmpl
template/en/default/bug/comments.html.tmpl
template/en/default/bug/create/create-guided.html.tmpl
template/en/default/bug/create/create.html.tmpl
template/en/default/bug/dependency-tree.html.tmpl
template/en/default/bug/edit.html.tmpl
template/en/default/flag/list.html.tmpl
template/en/default/global/confirm-user-match.html.tmpl
template/en/default/list/list.html.tmpl
template/en/default/reports/report-table.html.tmpl
template/en/default/reports/report.html.tmpl
template/en/default/request/queue.html.tmpl
template/en/default/search/search-report-graph.html.tmpl
template/en/default/search/search-report-table.html.tmpl

index b022e621eb62a77ba94699573251c1855bd33516..46522000b51b94dabdba6a69e5c57628e81b3ae9 100644 (file)
    There are [% flag_count %] flags of type [% name %].  
    If you delete this type, those flags will also be deleted.  Note that 
    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
    but will not appear in the Bugzilla UI.
 </p>
 
 <table>
    <tr>
-      <td colspan=2>
+      <td colspan="2">
          Do you really want to delete this type?
       </td>
    </tr>
    <tr>
       <td>
-         <a href="editflagtypes.cgi?action=delete&id=[% flag_type.id %]">
+         <a href="editflagtypes.cgi?action=delete&amp;id=[% flag_type.id %]">
             Yes, delete
          </a>
       </td>
index 846bec409080a787a4f582c0762c38ac7c6ea619..157ad3592a7f36286671c45d323083bb9e9453b9 100644 (file)
@@ -95,7 +95,7 @@
           <tr>
             <td style="vertical-align: top;">
               <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>
                 [% FOREACH item = products %]
                   <option value="[% item %]" [% "selected" IF type.product.name == item %]>[% item %]</option>
             </td>
             <td style="vertical-align: top;">
               <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">
             </td>
             <td style="vertical-align: top;">
               <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">
             </td>
           </tr>
index 6054c0dbba197daa70557d5c11c7f976ec557b8d..43fbf8d560da20a4eb243f0911ff36b6fe1ab0e3 100644 (file)
@@ -46,7 +46,7 @@
 [% PROCESS display_flag_types types=bug_types %]
 
 <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>
 
 <h3>Flag Types for Attachments</h3>
 [% PROCESS display_flag_types types=attachment_types %]
 
 <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>
 
-<script language="JavaScript">
+<script type="text/javascript" language="JavaScript">
   <!--
   function confirmDelete(id, name, count)
   {
     [% FOREACH type = types %]
 
       <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>
-          <a href="editflagtypes.cgi?action=copy&id=[% type.id %]">Copy</a>
-          | <a href="editflagtypes.cgi?action=confirmdelete&id=[% type.id %]" 
+          <a href="editflagtypes.cgi?action=copy&amp;id=[% type.id %]">Copy</a>
+          | <a href="editflagtypes.cgi?action=confirmdelete&amp;id=[% type.id %]" 
                onclick="return confirmDelete([% type.id %], '[% type.name FILTER js %]', 
                                              [% type.flag_count %]);">Delete</a>
         </td>
index f5880a811dc068526805a2fb0358a4fffcb57513..6e97d9b1e7bf829ee3db807dc99b192d2132f5ae 100644 (file)
         
       [% IF mode == "edit" && isinsider %]
         <i>
-          <input type=hidden name="oisprivate-[% count %]" 
+          <input type="hidden" name="oisprivate-[% count %]" 
                  value="[% comment.isprivate %]">
-          <input type=hidden name="when-[% count %]" value="[% comment.when %]">
-          <input type=checkbox name="isprivate-[% count %]" value="1"
+          <input type="hidden" name="when-[% count %]" value="[% comment.when %]">
+          <input type="checkbox" name="isprivate-[% count %]" value="1"
           [% " checked=\"checked\"" IF comment.isprivate %]> Private
         </i>
       [% END %]
index 364f8d472753bb636e249f259889f3ae57f4c584..2faa07baa854f2312f384adb039bfab172723e17 100644 (file)
@@ -42,7 +42,7 @@
 [% tablecolour = "#FFFFCC" %]
 
 [%# This script displays the descriptions for selected components. %]
-<script>
+<script type="text/javascript">
 var descriptions = [
 [% FOREACH c = component_ %]
   '[% c.description FILTER js %]',
@@ -486,7 +486,7 @@ function PutDescription() {
         <option name="major" value="major">
           Major: A major feature is broken.
         </option>
-        <option name="normal" value="normal" selected>
+        <option name="normal" value="normal" selected="selected">
           Normal: It's a bug that should be fixed.
         </option>
         <option name="minor" value="minor">
index 6bc3e5441946ca3075fb160299ecb2002fffb0aa..302c7e3d9ae559ba245fa3c6b58e9eed672deb5d 100644 (file)
@@ -17,7 +17,7 @@
   # Rights Reserved.
   #
   # Contributor(s): Gervase Markham <gerv@gerv.net>
-  #                 Ville Skyttä <ville.skytta@iki.fi>
+  #                 Ville Skyttä <ville.skytta@iki.fi>
   #%]
 
 [% PROCESS global/header.html.tmpl
   <tr>
     <td align="right"><strong>Estimated Hours:</strong></td>
     <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>
   </tr>
 
index 98c0ec254cf0d8c2c4e7246f0ac0c94a50a5ce9d..64c452c8bb28db63fcb61aad87c87b2820685bad 100644 (file)
@@ -17,7 +17,7 @@
   # Rights Reserved.
   #
   # 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>
   #%]
 
index 5ee8100a94dbc55a90d44db7ff4c3a63bbac11db..162b40a7f2a77509a0062c677b72e6266849abff 100644 (file)
@@ -290,24 +290,24 @@ function updateRemainingTime() {
 
   [% IF UserInGroup(Param('timetrackinggroup')) %]
     <br>
-    <table cellpadding=0 cellspacing=0 border=1>
+    <table cellspacing="0" cellpadding="4" border="1">
       <tr>
-        <th width="16.6%" align="center" bgcolor="#cccccc">
+        <th align="center" bgcolor="#cccccc">
           Orig. Est.
         </th>
-        <th width="16.6%" align="center" bgcolor="#cccccc">
+        <th align="center" bgcolor="#cccccc">
           Current Est.
         </th>
-        <th width="16.6%" align="center" bgcolor="#cccccc">
+        <th align="center" bgcolor="#cccccc">
           Hours Worked
         </th>
-        <th width="16.6%" align="center" bgcolor="#cccccc">
+        <th align="center" bgcolor="#cccccc">
           Hours Left
         </th>
-        <th width="16.6%" align="center" bgcolor="#cccccc">
+        <th align="center" bgcolor="#cccccc">
           %Complete
         </th>
-        <th width="16.6%" align="center" bgcolor="#cccccc">
+        <th align="center" bgcolor="#cccccc">
           Gain
         </th>
       </tr>
@@ -325,13 +325,13 @@ function updateRemainingTime() {
         <td align="center">
           [% PROCESS formattimeunit time_unit=bug.actual_time %] + 
           <input name="work_time" value="0" size="3" maxlength="6"
-                 onChange="adjustRemainingTime();">
+                 onchange="adjustRemainingTime();">
         </td>
         <td align="center">
           <input name="remaining_time"
                  value="[% PROCESS formattimeunit
                                    time_unit=bug.remaining_time %]"
-                 size="6" maxlength="6" onChange="updateRemainingTime();">
+                 size="6" maxlength="6" onchange="updateRemainingTime();">
         </td>
         <td align="center">
           [% PROCESS calculatepercentage act=bug.actual_time
index 4ee991447ed4750414ad56b91c7a9a30a9a101d8..6355a1b636489dc414c49ac0de6a3f5c1e313347 100644 (file)
@@ -92,7 +92,7 @@
                 <option value="?" [% "selected" IF flag.status == "?" %]>?</option>
               [% END %]
             [% ELSE %]
-              <option value="[% flag.status %]" selected>[% flag.status %]</option>
+              <option value="[% flag.status %]" selected="selected">[% flag.status %]</option>
             [% END %]
           </select>
         </td>
index 4a12f44a93e620f3edbf275ea9815238f8a798a5..dd624dbdd57f29f6f0d8b8927128bfdaa750b4d4 100644 (file)
 [% END %]
 
 <p>
-  <table border=0>
+  <table border="0">
     <tr>
-      <td colspan=2>
-        <hr width=100% size=1>
+      <td colspan="2">
+        <hr width="100%" size="1">
       </td>
     </tr>
 
 
   [% FOREACH field = matches %]
     <tr>
-      <td align=left valign=top>
+      <td align="left" valign="top">
         [% PROCESS field_names field_name=field.key %]:
       </td>
-      <td align=left valign=top>
+      <td align="left" valign="top">
           [% FOREACH query = field.value %]
               <b>[% query.key FILTER html %]</b>
             [% IF query.value.users.size %]
       </td>
     </tr>
     <tr>
-      <td colspan=2>
-        <hr width=100% size=1>
+      <td colspan="2">
+        <hr width="100%" size="1">
       </td>
     </tr>
   [% END %]
index 245c1313f887c1ede68c7b85f3968af629c9e978..9b9f099d38771841293f38d2f4593a47cb01f94d 100644 (file)
     <input type="hidden" name="buglist" value="[% buglist %]">
     <input type="submit" value="Long Format">
     &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;
 
     [% IF bugs.size > 1 && caneditbugs && !dotweak %]
index e984dc6ae3101263c74777e38596ddd8f73c256d..175479d840ee8916059f7affd1070a5a86dcf4b6 100644 (file)
     </td>
   </tr>
 </table>
-      
+
       
     </td>
   </tr>
index c4a3edd56a53962e8ef8e6cc69f87b2fd8aafa30..07d926a649f5d63bbcf70d8a7efd2362c32cd93d 100644 (file)
@@ -95,7 +95,8 @@
         [% END %]width=[% width %]&amp;height=[% height %]      
       [% END %]
       
-      <img src="[% imageurl %]" width="[% width %]" height="[% height %]">
+      <img alt="Graphical report results" src="[% imageurl %]"
+        width="[% width %]" height="[% height %]">
     [% END %]
     <br>
   [% END %]  
         [% FOREACH other_format = formats %]
           [% NEXT IF other_format.name == "pie" AND row_field %]
           [% UNLESS other_format.name == format %]
-            <a href="[% formaturl %]&format=[% other_format.name %]">
+            <a href="[% formaturl %]&amp;format=[% other_format.name %]">
           [% END %]
           [% other_format.description %]
           [% "</a>" UNLESS other_format.name == format %] | 
         [% END %]
-        <a href="[% formaturl %]&ctype=csv">CSV</a> 
+        <a href="[% formaturl %]&amp;ctype=csv">CSV</a> 
       </td>
       
       [% IF format != "table" %]
           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
         </td>
 
-        [% sizeurl = "report.cgi?$switchbase&action=wrap&format=$format" %]
+        [% sizeurl = "report.cgi?$switchbase&amp;action=wrap&amp;format=$format" %]
         <td align="center">
-          <a href="[% sizeurl %]&width=[% width %]&height=
+          <a href="[% sizeurl %]&amp;width=[% width %]&amp;height=
                    [% height + 100 %]">Taller</a><br>
-          <a href="[% sizeurl %]&width=[% width - 100 %]&height=
+          <a href="[% sizeurl %]&amp;width=[% width - 100 %]&amp;height=
                    [% 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>
-          <a href="[% sizeurl %]&width=[% width %]&height=
+          <a href="[% sizeurl %]&amp;width=[% width %]&amp;height=
                    [% height - 100 %]">Shorter</a><br>
         </td>
       [% END %]
 
   <p>
     [% 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>
     [% ELSE %]
-      <a href="query.cgi?[% switchbase %]&format=report-graph&chart_format=
-      [% format %]&cumulate=[% cumulate %]">Edit this report</a>
+      <a href="query.cgi?[% switchbase %]&amp;format=report-graph&amp;
+       chart_format=[% format %]&amp;cumulate=[% cumulate %]">
+        Edit this report
+      </a>
     [% END %]
   </p>
  
index 7060fadaa819adb82ceae5b427f5ddedee171f90..a3b1a72745b2857e83b7f5a3c6cabdb120912faa 100644 (file)
@@ -45,7 +45,7 @@
       <td><input type="text" name="requester" value="[% form.requester FILTER html %]" size="20"></td>
       <th>Product:</th>
       <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>
           [% FOREACH item = products %]
             <option value="[% item FILTER html %]" 
 
 [% BLOCK display_attachment %]
   [% 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>
   [% ELSE %]
     N/A
index 7bcdd365bf1841d094958ae774c8e732f94773de..f114a9931daf182ffa0fc1d468e1afea785fc869 100644 (file)
@@ -57,7 +57,7 @@
         Added
         
     </td>
-    <td width="150px" height="150px">
+    <td width="150" height="150">
       <table border="1" width="100%" height="100%">
         <tr>
           <td align="center" valign="middle">
index a26553602b1913e92bb578e86e96f74ba07cc01e..6e098303f62be878d55fd3db13ce14ab56b3a86e 100644 (file)
@@ -52,7 +52,7 @@
     <td>&nbsp;&nbsp;</td>
     <td rowspan="2">
       <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
     </td>
   </tr>
@@ -62,7 +62,7 @@
       <b>Vertical Axis:</b><br>
       [% PROCESS select name = 'y_axis_field' %]
     </td>
-    <td width="150px" height="150px">
+    <td width="150" height="150">
       <table border="1" width="100%" height="100%">
         <tr>
           <td align="center" valign="middle">