]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1133245: Add ID HTML parameters to <tr> table rows on show_bug.cgi
authorAndre Klapper <a9016009@gmx.de>
Wed, 25 Feb 2015 18:01:16 +0000 (18:01 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Wed, 25 Feb 2015 18:01:16 +0000 (18:01 +0000)
r=dylan,a=glob

template/en/default/bug/edit.html.tmpl

index 441c3ecac607ddc926e4aaaa9b11dfe56189caa7..6bb75b985ecc58fd2a72973487828d3be628fa4f 100644 (file)
     [%#############%]
     [%#  PRODUCT  #%]
     [%#############%]
-    <tr>
+    <tr id="field_tablerow_product">
       [% INCLUDE "bug/field-label.html.tmpl"
          field = bug_fields.product
          desc_url = 'describecomponents.cgi'
       # it uses some javascript that depends on the existence of the
       # product field.
       #%]
-    <tr class="bz_default_hidden">
+    <tr id="field_tablerow_classification" class="bz_default_hidden">
        [% INCLUDE bug/field.html.tmpl
             bug = bug field = bug_fields.classification
             override_legal_values = bug.choices.classification
     [%###############%]    
     [%#  Component  #%]
     [%###############%]
-    <tr>
+    <tr id="field_tablerow_component">
       [% INCLUDE bug/field.html.tmpl
           bug = bug, field = bug_fields.component, value = bug.component
           override_legal_values = bug.choices.component
           editable = bug.check_can_change_field('component', 0, 1)
       %]
     </tr>
-    <tr>
+    <tr id="field_tablerow_version">
       [% INCLUDE "bug/field-label.html.tmpl"
         field = bug_fields.version editable = 1 %]
         
     [%############%]    
     [%# PLATFORM #%]
     [%############%]    
-    <tr>
+    <tr id="field_tablerow_rep_platform">
       [% INCLUDE "bug/field-label.html.tmpl"
            field = bug_fields.rep_platform, editable = 1, accesskey = "h" %]
       <td class="field_value">
 [%############################################################################%]
 
 [% BLOCK section_status %]
-  <tr>
+  <tr id="field_tablerow_status">
     <th class="field_label">
       <a href="page.cgi?id=fields.html#bug_status">Status</a>:
     </th>
  [%###############################################################%]
  [%# Importance (priority and severity) #%]
  [%###############################################################%]
-    <tr>
+    <tr id="field_tablerow_importance">
       <th class="field_label">
         <label for="priority" accesskey="i">
           <a href="page.cgi?id=fields.html#importance"><u>I</u>mportance</a></label>:
     </tr>
 
     [% IF Param("usetargetmilestone") && bug.target_milestone %]
-      <tr>
+      <tr id="field_tablerow_target_milestone">
         [% INCLUDE "bug/field-label.html.tmpl"
           field = bug_fields.target_milestone
           editable = 1
 
 [% BLOCK section_people %]
 
-    <tr>
+    <tr id="field_tablerow_assigned_to">
       <th class="field_label">
         <a href="page.cgi?id=fields.html#assigned_to">Assigned To</a>:
       </th>
     </tr>
 
     [% IF Param('useqacontact') %]
-    <tr>
+    <tr id="field_tablerow_qa_contact">
       [% INCLUDE "bug/field-label.html.tmpl"
         field = bug_fields.qa_contact
         editable = 1
 [%# Block for URL Keyword and Whiteboard                                     #%]
 [%############################################################################%]
 [% BLOCK section_url_keyword_whiteboard %]
-  <tr>
+  <tr id="field_tablerow_bug_file_loc">
     [% INCLUDE "bug/field-label.html.tmpl"
       field = bug_fields.bug_file_loc
       editable = 1
   </tr>
   
   [% IF Param('usestatuswhiteboard') %]
-    <tr>
+    <tr id="field_tablerow_status_whiteboard">
       [% INCLUDE "bug/field-label.html.tmpl"
         field = bug_fields.status_whiteboard
         editable = 1
   [% END %]
   
   [% IF use_keywords %]
-    <tr>
+    <tr id="field_tablerow_keywords">
         [% INCLUDE bug/field.html.tmpl
           bug = bug, field = bug_fields.keywords, value = bug.keywords
           editable = bug.check_can_change_field("keywords", 0, 1),
   [% END %]
 
   [% IF user.id %]
-    <tr>
+    <tr id="field_tablerow_tag">
       [% INCLUDE bug/field.html.tmpl
          bug = bug, field = bug_fields.tag, value = bug.tags.join(", "),
          editable = 1, possible_values = user.tags.keys
 
 [% BLOCK section_duplicates %]
   [% RETURN UNLESS bug.duplicates.size %]
-  <tr>
+  <tr id="field_tablerow_duplicates">
     <th class="field_label">
       <label for="duplicates">Duplicates ([% bug.duplicates.size %])</label>:
     </th>
 [%############################################################################%]
 
 [% BLOCK section_dependson_blocks %]
-  <tr>
+  <tr id="field_tablerow_dependson">
     [% INCLUDE dependencies 
          field = bug_fields.dependson deps = bug.depends_on_obj %]
   </tr>
   </tr>
 
   [% IF bug.dependson.size || bug.blocked.size %]
-    <tr>
+    <tr id="field_tablerow_blocked">
       <th>&nbsp;</th>
 
       <td colspan="2" id="show_dependency_tree_or_graph">
 [%############################################################################%]
 
 [% BLOCK section_dates %]
-  <tr>
+  <tr id="field_tablerow_reported">
     <th class="field_label">
       Reported:
     </th>
     </td>
   </tr>
   
-  <tr>
+  <tr id="field_tablerow_modified">
     <th class="field_label">
       Modified:
     </th>
 [%# Block for CC LIST                                                        #%]
 [%############################################################################%]
 [% BLOCK section_cclist %]
-    <tr>
+    <tr id="field_tablerow_cclist">
       <th class="field_label">
         <label for="newcc" accesskey="a">CC List:</label>
       </th>
 [%############################################################################%]
 [% BLOCK section_bug_ignored %]
   [% IF user.id %]
-    <tr>
+    <tr id="field_tablerow_bug_ignored">
       <th class="field_label">
         <label for="bug_ignored" title="Ignore all email for this [% terms.bug %]">
           Ignore [% terms.Bug %] Mail:
 [%############################################################################%]
 [% BLOCK section_see_also %]
   [% IF Param('use_see_also') || bug.see_also.size %]
-    <tr>
+    <tr id="field_tablerow_see_also">
       [% INCLUDE bug/field.html.tmpl 
            field    = bug_fields.see_also
            value    = bug.see_also
 [% END %]
 
 [% BLOCK section_aliases %]
-  <tr>
+  <tr id="field_tablerow_alias">
     [% INCLUDE "bug/field-label.html.tmpl"
        field = bug_fields.alias, editable = 1
     %]
     [% LAST IF show_bug_flags && show_more_flags && bug_flags_set %]
   [% END %]
   [% IF show_bug_flags %]
-    <tr>
+    <tr id="field_tablerow_flags">
       <th class="field_label">
         <label>Flags:</label>
       </th>