You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcp-panel/share/templates/widgets/subscriber_cf_overview.tt

39 lines
1.4 KiB

[%
cfs = [ { type = "cfu", desc = c.loc("Call Forward Unconditional") },
{ type = "cfb", desc = c.loc("Call Forward Busy") },
{ type = "cft", desc = c.loc("Call Forward Timeout") },
{ type = "cfna", desc = c.loc("Call Forward Unavailable") } ];
cfcount = 0;
FOR cf IN cfs;
IF cf_destinations.${cf.type}.size;
cfcount = cfcount + 1;
END;
END;
-%]
<div class="plan-container">
<div class="plan">
<div class="plan-header">
<div class="plan-title">[% c.loc('Call Forwards') %]</div>
<div class="plan-price">
<span>[% cfcount %]</span>
<span class="term">[% cfcount == 1 ? c.loc('Call Forward Configured') : c.loc('Call Forwards Configured') %]</span>
</div>
</div>
<div class="plan-features large">
<ul>
[% FOR cf IN cfs -%]
<li>
[% cf.desc %] [% cf_destinations.${cf.type}.size ? '<strong style="color:green">' _ c.loc('active') : '<strong color="grey">' _ c.loc('inactive') %]</strong>
</li>
[% END -%]
</ul>
</div>
<div class="plan-actions">
<a href="[% c.uri_for_action('/subscriber/preferences', [subscriber.id]) %]" class="btn">[% c.loc('Configure Preferences') %]</a>
</div>
</div>
</div>
[% # vim: set tabstop=4 syntax=html expandtab: -%]