From fd01bab71562adc79c1f67d89b097caaf85a4853 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Mon, 6 Feb 2017 16:03:47 +0000 Subject: Bug 1237790 - The experimental user interface doesn't provide link to help of bug fields --- .../template/en/default/bug_modal/edit.html.tmpl | 94 +++++++++++++++------- extensions/BugModal/web/bug_modal.css | 4 + extensions/BugModal/web/bug_modal.js | 7 ++ 3 files changed, 77 insertions(+), 28 deletions(-) (limited to 'extensions/BugModal') 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 d81fb9e92..08a47b2d6 100644 --- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl @@ -203,6 +203,7 @@ field_type = constants.FIELD_TYPE_FREETEXT hide_on_view = 1 short_width = 1 + help = "https://wiki.mozilla.org/BMO/UserGuide/BugFields#alias" %] [%# summary %] @@ -210,6 +211,7 @@ field = bug_fields.short_desc field_type = constants.FIELD_TYPE_FREETEXT hide_on_view = 1 + help = "https://wiki.mozilla.org/BMO/UserGuide/BugFields#short_desc" %] [%# status summary %] @@ -282,8 +284,8 @@ [%# buttons %]
- [% IF user.id %] -
+
+ [% IF user.id %] -
- [% END %] + [% END %] +
[% IF bug.assigned_to.id == user.id || user.in_group("editbugs") %]
+
[% END %] @@ -339,12 +343,14 @@ [% WRAPPER fields_lhs %] [%# product %] - [% can_edit_product = bug.check_can_change_field("product", 0, 1) %] + [% can_edit_product = bug.check_can_change_field("product", 0, 1) %] + [% filtered_product = bug.product_obj.name FILTER uri %] + [% filtered_component = bug.component_obj.name FILTER uri %] [% WRAPPER bug_modal/field.html.tmpl field = bug_fields.product field_type = constants.FIELD_TYPE_SINGLE_SELECT hide_on_edit = can_edit_product - help = "describecomponents.cgi" + help = "describecomponents.cgi?product=$filtered_product" %]
@@ -355,12 +361,12 @@
[% END %] [% WRAPPER bug_modal/field.html.tmpl - field = bug_fields.product - field_type = constants.FIELD_TYPE_SINGLE_SELECT - hide_on_view = 1 - hide_on_edit = !can_edit_product + field = bug_fields.product + field_type = constants.FIELD_TYPE_SINGLE_SELECT + hide_on_view = 1 + hide_on_edit = !can_edit_product append_content = 1 - help = "describecomponents.cgi" + help = "describecomponents.cgi?product=$filtered_product" %] [% INCLUDE prodcompsearch/form.html.tmpl @@ -380,9 +386,10 @@ [%# component %] [% WRAPPER bug_modal/field.html.tmpl - field = bug_fields.component + field = bug_fields.component field_type = constants.FIELD_TYPE_SINGLE_SELECT - help = "describecomponents.cgi" + help = "describecomponents.cgi?product=$filtered_product&component=$filtered_component#$filtered_component" + %]
@@ -401,6 +408,7 @@ label = "Importance" container = 1 hide_on_view = bug.priority == "--" && bug.bug_severity == "normal" + help = "https://wiki.mozilla.org/BMO/UserGuide/BugFields#priority" %] [% INCLUDE bug_modal/field.html.tmpl field = bug_fields.priority @@ -429,10 +437,11 @@ [%# status, resolution %] [% IF bug.assigned_to.id != user.id %] [% WRAPPER bug_modal/field.html.tmpl - name = "status-view" - container = 1 - label = "Status" + name = "status-view" + container = 1 + label = "Status" hide_on_edit = 1 + help = "https://wiki.mozilla.org/BMO/UserGuide/BugStatuses" %] [% bug.bug_status FILTER html %] [%+ bug.resolution FILTER html IF bug.resolution %] @@ -450,15 +459,17 @@ field = bug_fields.creation_ts label = "Reported" view_only = 1 + help = "https://wiki.mozilla.org/BMO/UserGuide/BugFields#creation_ts" %] [% INCLUDE bug_modal/rel_time.html.tmpl ts=bug.creation_ts %] [% END %] [%# last modified %] [% WRAPPER bug_modal/field.html.tmpl - field = bug_fields.delta_ts - label = "Modified" - view_only = 1 + field = bug_fields.delta_ts + label = "Modified" + view_only = 1 + help = "https://wiki.mozilla.org/BMO/UserGuide/BugFields#delta_ts" %] [% INCLUDE bug_modal/rel_time.html.tmpl ts=bug.delta_ts %] [% END %] @@ -467,10 +478,11 @@ [%# status/resolution knob %] [% WRAPPER bug_modal/field.html.tmpl - name = "status-edit" - container = 1 - label = "Status" + name = "status-edit" + container = 1 + label = "Status" hide_on_view = bug.assigned_to.id != user.id + help = "https://wiki.mozilla.org/BMO/UserGuide/BugStatuses" %] [% INCLUDE status_block %] [% END %] @@ -542,6 +554,7 @@ field = bug_fields.assigned_to field_type = constants.FIELD_TYPE_USER hide_on_edit = 1 + help = "https://wiki.mozilla.org/BMO/UserGuide/BugFields#assigned_to" %] [% IF unassigned %] Unassigned @@ -563,6 +576,7 @@ } append_content = 1 default = bug.component_obj.default_assignee.login + help = "https://wiki.mozilla.org/BMO/UserGuide/BugFields#assigned_to" %]