-
Notifications
You must be signed in to change notification settings - Fork 280
/
clientareaproductusagebilling.tpl
31 lines (31 loc) · 1.5 KB
/
clientareaproductusagebilling.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<p>{$LANG.metrics.explanation}</p>
<table class="table table-striped" style="margin-bottom:5px;border-bottom:1px solid #ddd;">
<tr>
<th>{$LANG.metrics.metric}</th>
<th>{$LANG.metrics.currentUsage}</th>
<th>{$LANG.metrics.pricing}</th>
<th>{$LANG.metrics.lastUpdated}</th>
</tr>
{foreach $metricStats as $metric}
<tr>
<td>{$metric.displayName}</td>
<td>{$metric.currentValue}</td>
<td>
{if count($metric.pricing) > 1}
{$LANG.metrics.startingFrom} {$metric.lowestPrice} / {if $metric.unitName}{$metric.unitName}{else}{$LANG.metrics.unit}{/if}
<br>
<button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#modalMetricPricing-{$metric.systemName}">
{$LANG.metrics.viewPricing}
</button>
{elseif count($metric.pricing) == 1}
{$metric.lowestPrice} / {if $metric.unitName}{$metric.unitName}{else}{$LANG.metrics.unit}{/if}
{if $metric.includedQuantity > 0} ({$metric.includedQuantity} {$LANG.metrics.includedNotCounted}){/if}
{else}
—
{/if}
{include file="$template/usagebillingpricing.tpl"}
</td>
<td>{if is_string($metric.lastUpdated)}{$metric.lastUpdated}{else}{$metric.lastUpdated->diffForHumans()}{/if}</td>
</tr>
{/foreach}
</table>