clientareaproductusagebilling.tpl 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. <p>{lang key='metrics.explanation'}</p>
  2. <table class="table table-striped mb-1 table-solid-bottom-border-light-gray">
  3. <tr>
  4. <th>{lang key='metrics.metric'}</th>
  5. <th>{lang key='metrics.currentUsage'}</th>
  6. <th>{lang key='metrics.pricing'}</th>
  7. <th>{lang key='metrics.lastUpdated'}</th>
  8. </tr>
  9. {foreach $metricStats as $metric}
  10. <tr>
  11. <td>{$metric.displayName}</td>
  12. <td>{$metric.currentValue}</td>
  13. <td>
  14. {if count($metric.pricing) > 1}
  15. {lang key='metrics.startingFrom'} {$metric.lowestPrice} / {if $metric.unitName}{$metric.unitName}{else}{lang key='metrics.unit'}{/if}
  16. <br>
  17. <button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#modalMetricPricing-{$metric.systemName}">
  18. {lang key='metrics.viewPricing'}
  19. </button>
  20. {elseif count($metric.pricing) == 1}
  21. {$metric.lowestPrice} / {if $metric.unitName}{$metric.unitName}{else}{lang key='metrics.unit'}{/if}
  22. {if $metric.includedQuantity > 0} ({$metric.includedQuantity} {lang key='metrics.includedNotCounted'}){/if}
  23. {else}
  24. &mdash;
  25. {/if}
  26. {include file="$template/usagebillingpricing.tpl"}
  27. </td>
  28. <td>{if is_string($metric.lastUpdated)}{$metric.lastUpdated}{else}{$metric.lastUpdated->diffForHumans()}{/if}</td>
  29. </tr>
  30. {/foreach}
  31. </table>