From dac9873a61b108133ee00bda5b1862404712dd63 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 30 Apr 2015 14:06:06 +0800 Subject: Bug 1151745: add ui to minimise steps required to move bugs between products --- .../template/en/default/bug_modal/edit.html.tmpl | 30 +++++++++-- .../template/en/default/bug_modal/field.html.tmpl | 3 ++ .../template/en/default/bug_modal/header.html.tmpl | 1 + .../default/bug_modal/new_product_groups.html.tmpl | 59 ++++++++++++++++++++++ 4 files changed, 90 insertions(+), 3 deletions(-) create mode 100644 extensions/BugModal/template/en/default/bug_modal/new_product_groups.html.tmpl (limited to 'extensions/BugModal/template/en') 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 da7f2f294..63bd72dc6 100644 --- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl @@ -233,7 +233,7 @@ Fetching - + [% END %]
@@ -265,26 +265,50 @@ [% WRAPPER fields_lhs %] [%# product %] + [% can_edit_product = bug.check_can_change_field("product", 0, 1) %] [% WRAPPER bug_modal/field.html.tmpl field = bug_fields.product field_type = constants.FIELD_TYPE_SINGLE_SELECT + hide_on_edit = can_edit_product %] +
- [% bug.product FILTER html %]
[% 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 + append_content = 1 + %] + + [% PROCESS prodcompsearch/form.html.tmpl + id = "pcs" + custom_select = 1 + hidden = 1 + throbber = "product-throbber" + %] + + + + + + [% END %] [%# component %] [% WRAPPER bug_modal/field.html.tmpl field = bug_fields.component field_type = constants.FIELD_TYPE_SINGLE_SELECT %] +
- [% bug.component FILTER html %]