|
|
@ -67,8 +67,7 @@ $(function() {
|
|
|
|
<a class="btn btn-primary btn-large" href="[% c.uri_for('/back') %]"><i class="icon-arrow-left"></i> [% c.loc('Back') %]</a>
|
|
|
|
<a class="btn btn-primary btn-large" href="[% c.uri_for('/back') %]"><i class="icon-arrow-left"></i> [% c.loc('Back') %]</a>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
</span>
|
|
|
|
[% IF (c.user.roles == 'admin' || c.user.roles == 'reseller' ||
|
|
|
|
[% IF !c.user.read_only && (c.user.roles == 'admin' || c.user.roles == 'reseller') -%]
|
|
|
|
c.user.roles == 'ccareadmin' || c.user.roles == 'ccare') && !c.user.read_only -%]
|
|
|
|
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
<a class="btn btn-primary btn-large" href="[% c.uri_for_action('/customer/edit', [ contract.id ]) %]"><i class="icon-edit"></i> [% c.loc('Edit') %]</a>
|
|
|
|
<a class="btn btn-primary btn-large" href="[% c.uri_for_action('/customer/edit', [ contract.id ]) %]"><i class="icon-edit"></i> [% c.loc('Edit') %]</a>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
@ -235,9 +234,7 @@ $(function() {
|
|
|
|
[% c.loc('Maximum number of [_1] subscribers [_2] created',contract.max_subscribers,
|
|
|
|
[% c.loc('Maximum number of [_1] subscribers [_2] created',contract.max_subscribers,
|
|
|
|
c.config.features.cloudpbx ? c.loc('(including PBX groups) ') : '') %]
|
|
|
|
c.config.features.cloudpbx ? c.loc('(including PBX groups) ') : '') %]
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
[% ELSIF (c.user.roles == "subscriberadmin" && product.class == "pbxaccount") ||
|
|
|
|
[% ELSIF (c.user.roles == "subscriberadmin" && product.class == "pbxaccount") || c.user.roles == "admin" || c.user.roles == "reseller" -%]
|
|
|
|
c.user.roles == "admin" || c.user.roles == "reseller" ||
|
|
|
|
|
|
|
|
c.user.roles == "ccareadmin" || c.user.roles == "ccare" -%]
|
|
|
|
|
|
|
|
<a class="btn btn-large btn-primary" href="[% c.uri_for_action('/customer/subscriber_create', [ c.req.captures.0 ]) %]">
|
|
|
|
<a class="btn btn-large btn-primary" href="[% c.uri_for_action('/customer/subscriber_create', [ c.req.captures.0 ]) %]">
|
|
|
|
<i class="icon-star"></i> [% c.loc('Create Subscriber') %]
|
|
|
|
<i class="icon-star"></i> [% c.loc('Create Subscriber') %]
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
@ -393,9 +390,7 @@ $(function() {
|
|
|
|
[% IF
|
|
|
|
[% IF
|
|
|
|
c.config.features.cloudpbx &&
|
|
|
|
c.config.features.cloudpbx &&
|
|
|
|
product.class == 'pbxaccount' &&
|
|
|
|
product.class == 'pbxaccount' &&
|
|
|
|
(c.user.roles == 'admin' || c.user.roles == 'reseller' ||
|
|
|
|
(c.user.roles == 'admin' || c.user.roles == 'reseller' || c.user.roles == 'subscriberadmin')
|
|
|
|
c.user.roles == 'ccareadmin' || c.user.roles == 'ccare' ||
|
|
|
|
|
|
|
|
c.user.roles == 'subscriberadmin')
|
|
|
|
|
|
|
|
-%]
|
|
|
|
-%]
|
|
|
|
<div class="accordion-group">
|
|
|
|
<div class="accordion-group">
|
|
|
|
<div class="accordion-heading">
|
|
|
|
<div class="accordion-heading">
|
|
|
@ -440,8 +435,7 @@ $(function() {
|
|
|
|
|
|
|
|
|
|
|
|
<div class="accordion-inner">
|
|
|
|
<div class="accordion-inner">
|
|
|
|
|
|
|
|
|
|
|
|
[% IF (c.user.roles == 'admin' || c.user.roles == 'reseller' ||
|
|
|
|
[% IF (c.user.roles == 'admin' || c.user.roles == 'reseller') && !c.user.read_only -%]
|
|
|
|
c.user.roles == 'ccareadmin' || c.user.roles == 'ccare') && !c.user.read_only -%]
|
|
|
|
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
[% IF c.user.billing_data -%]
|
|
|
|
[% IF c.user.billing_data -%]
|
|
|
|
<a class="btn btn-primary btn-large" href="[% c.uri_for_action("/customer/topup_voucher", [contract.id]) %]"><i class="icon-repeat"></i> [% c.loc('Top-up Voucher') %]</a>
|
|
|
|
<a class="btn btn-primary btn-large" href="[% c.uri_for_action("/customer/topup_voucher", [contract.id]) %]"><i class="icon-repeat"></i> [% c.loc('Top-up Voucher') %]</a>
|
|
|
|