From 35e9b4ecc902390bf408aa4917c7609281faf5d3 Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Tue, 31 Aug 2021 16:02:54 +0200 Subject: [PATCH] TT#138900 Restore "Preferences" button on JS CSC for framed mode Otherwise administrative subscribers cannot change Customer preferences on JS CSC, while they were able to do it in Perl CSC. It is a side effect of commin 27da72e41b in ngcp-panel.git. Change-Id: I7da3bd3fbd9f56353cd9332d3f85489eaf8bd8b1 --- share/templates/customer/details.tt | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/share/templates/customer/details.tt b/share/templates/customer/details.tt index 22687b146c..3614789641 100644 --- a/share/templates/customer/details.tt +++ b/share/templates/customer/details.tt @@ -52,12 +52,20 @@ $(function() { ]; -%] -[% UNLESS framed -%] -[% IF c.user.roles == "subscriber" || c.user.roles == "subscriberadmin" -%] - [% site_config.title = c.loc('Customer Details') -%] +[% IF framed -%] +[% IF c.user.roles == "subscriber" || c.user.roles == "subscriberadmin" -%] +
+ + [% c.loc('Preferences') %] + +
+[% END -%] [% ELSE -%] +[% IF c.user.roles == "subscriber" || c.user.roles == "subscriberadmin" -%] + [% site_config.title = c.loc('Customer Details') -%] +[% ELSE -%] [% site_config.title = c.loc('Customer Details for #[_1] ([_2])',contract.id,product.name) -%] -[% END -%] +[% END -%]