]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 577854: URL field header caption does not link to field value description (confus...
authorMatt Selsky <selsky@columbia.edu>
Mon, 5 Dec 2011 18:58:12 +0000 (19:58 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 5 Dec 2011 18:58:12 +0000 (19:58 +0100)
r/a=mkanat

template/en/default/bug/edit.html.tmpl
template/en/default/bug/field-label.html.tmpl

index ab150dd31ede8493df25833a46bfe95586d82afd..bdee838066be48c99c67f886d96a30dbdc521e17 100644 (file)
 [%############################################################################%]
 [% BLOCK section_url_keyword_whiteboard %]
   <tr>
-    <td class="field_label">
-      <label for="bug_file_loc" accesskey="u"><b>
-        [% IF is_safe_url(bug.bug_file_loc) %]
-          <a href="[% bug.bug_file_loc FILTER html %]"><u>U</u>RL</a>
-        [% ELSE %]
-          <u>U</u>RL
-        [% END %]
-      [%%]</b></label>:
-    </td>
+    [% INCLUDE "bug/field-label.html.tmpl"
+      field = bug_fields.bug_file_loc
+      editable = 1
+      accesskey = "u"
+    %]
     <td>
       [% IF bug.check_can_change_field("bug_file_loc", 0, 1) %]
         <span id="bz_url_edit_container" class="bz_default_hidden"> 
index fe3bed75b5abe399e3d5449c5946378fd5dd82d9..ecb49318ea0e6c3890694aa0221b234bcad6cf01 100644 (file)
@@ -24,6 +24,7 @@
   #   hidden: True if the field label should start hidden.
   #   rowspan: a "rowspan" value for the label's <th>.
   #   tag_name: the tag to use to surround the label
+  #   accesskey: access key for the label
   #%]
 
 [% DEFAULT tag_name = "th" %]
@@ -33,7 +34,7 @@
     [% IF rowspan %] rowspan="[% rowspan FILTER html %]"[% END %]>
 
   [% IF editable %]
-    <label for="[% field.name FILTER html %]">
+    <label for="[% field.name FILTER html %]"[% IF accesskey %] accesskey="[% accesskey FILTER html %]"[% END %]>
   [% END %]
 
   <a