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
mr10.1
Alexander Lutay 5 years ago
parent e3ac5c752d
commit 35e9b4ecc9

@ -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" -%]
<div class="row">
<span>
<a class="btn btn-primary btn-large" href="[% c.uri_for_action('/customer/preferences', [c.req.captures.0]) %]"><i class="icon-list"></i> [% c.loc('Preferences') %]</a>
</span>
</div>
[% 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 -%]
<div class="row">
<span>

Loading…
Cancel
Save