diff options
author | Byron Jones <glob@mozilla.com> | 2016-01-11 05:27:18 +0100 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2016-01-11 05:27:18 +0100 |
commit | 9e478ddf25411f901bf552e8b85e5a0776775ea0 (patch) | |
tree | 63abc7cf08968e54dfe2df1489adef96a9244c00 /extensions/BugModal/template/en | |
parent | 9bc226afaf6c0108576f11d6a234ac48347dbbf5 (diff) | |
download | bugzilla-9e478ddf25411f901bf552e8b85e5a0776775ea0.tar.gz bugzilla-9e478ddf25411f901bf552e8b85e5a0776775ea0.tar.xz |
Bug 1237185 - hide 'cab review' custom field behind a "click through" to direct people to servicenow
Diffstat (limited to 'extensions/BugModal/template/en')
-rw-r--r-- | extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl | 31 |
1 files changed, 26 insertions, 5 deletions
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 + %] + <span id="cab-review-gate"> + <a href="https://mozilla.service-now.com/change_request.do?sysparm_stack=change_request_list.do&sys_id=-1&sysparm_query=active=true" target="_blank">ServiceNow Change Request</a> + <button id="cab-review-gate-close" type="button" class="minor">Use Flag</button> + </span> + <span id="cab-review-edit" style="display:none"> + [% INCLUDE bug_modal/field.html.tmpl + field = bug_fields.cf_cab_review + field_type = bug_fields.cf_cab_review.type + inline = 1 + no_indent = 1 + %] + </span> + [% 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 %] |