From 2c22fb44b12e7f1cbaa546ebe17f61d9bd8de92f Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Fri, 5 Jun 2015 13:25:41 +0800 Subject: Bug 1171818: link fields to descriptions (where appropriate) --- extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl | 5 +++++ extensions/BugModal/template/en/default/bug_modal/field.html.tmpl | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'extensions/BugModal/template') diff --git a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl index d59717233..c40926566 100644 --- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl @@ -274,6 +274,7 @@ field = bug_fields.product field_type = constants.FIELD_TYPE_SINGLE_SELECT hide_on_edit = can_edit_product + help = "describecomponents.cgi" %]
@@ -289,6 +290,7 @@ hide_on_view = 1 hide_on_edit = !can_edit_product append_content = 1 + help = "describecomponents.cgi" %] [% PROCESS prodcompsearch/form.html.tmpl @@ -310,6 +312,7 @@ [% WRAPPER bug_modal/field.html.tmpl field = bug_fields.component field_type = constants.FIELD_TYPE_SINGLE_SELECT + help = "describecomponents.cgi" %]
@@ -671,6 +674,7 @@ field = bug_fields.keywords field_type = constants.FIELD_TYPE_KEYWORDS hide_on_view = bug.keyword_objects.size == 0 + help = "describekeywords.cgi" %] [% bug.keyword_objects.pluck("name").join(", ") || "---" FILTER html %] [% END %] @@ -822,6 +826,7 @@ [% WRAPPER bug_modal/field.html.tmpl field = bug_fields.status_whiteboard field_type = constants.FIELD_TYPE_FREETEXT + help = "https://wiki.mozilla.org/BMO/Whiteboard" %] [% bug.status_whiteboard == "" ? "---" : bug.status_whiteboard FILTER html %] [% END %] diff --git a/extensions/BugModal/template/en/default/bug_modal/field.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/field.html.tmpl index c988bd645..0c2f59cb0 100644 --- a/extensions/BugModal/template/en/default/bug_modal/field.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/field.html.tmpl @@ -25,6 +25,7 @@ # append_content: (boolean) when called as a WRAPPER, the content will be appended to the # edit html instead of replacing it. forces edit_only (default: false); # default: (string) default value (eg. used as a placeholder in user fields) + # help: (string) optional url that describes the field (requires a label to be defined and visible) # action: (hash) show a button to the right of the edit field (user fields only currently). keys: # id: (string) optional button id # class: (string) optional button class @@ -94,7 +95,11 @@ END; [% IF hide_on_view %] style="display:none"[% END %] > [% IF label.defined && !no_label %] -
[% label _ ":" FILTER html IF label %]
+ [% END %] [%# read-only html %] -- cgit v1.2.3-24-g4f1b