From 9e478ddf25411f901bf552e8b85e5a0776775ea0 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 11 Jan 2016 12:27:18 +0800 Subject: Bug 1237185 - hide 'cab review' custom field behind a "click through" to direct people to servicenow --- .../template/en/default/bug_modal/edit.html.tmpl | 31 ++++++++++++++++++---- 1 file changed, 26 insertions(+), 5 deletions(-) (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 b73761cff..c80c09f94 100644 --- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl @@ -772,11 +772,32 @@ [% UNLESS cf_hidden_in_product('cf_cab_review', bug.product, bug.component, bug) %] [% rendered_custom_fields.push('cf_cab_review') %] - [% INCLUDE bug_modal/field.html.tmpl - field = bug_fields.cf_cab_review - field_type = bug_fields.cf_cab_review.type - hide_on_view = bug.cf_cab_review == "---" - %] + [% IF bug.cf_cab_review == "---" %] + [% WRAPPER bug_modal/field.html.tmpl + field = bug_fields.cf_cab_review + field_type = bug_fields.cf_cab_review.type + container = 1 + hide_on_view = 1 + %] + + ServiceNow Change Request + + + + [% END %] + [% ELSE %] + [% INCLUDE bug_modal/field.html.tmpl + field = bug_fields.cf_cab_review + field_type = bug_fields.cf_cab_review.type + %] + [% END %] [% END %] [% END %] -- cgit v1.2.3-24-g4f1b