{css} {js} {tab_container id="customervoipaccountsbox" label="Voip Accounts"} {tab_header content_id="voipaccountspanel"} {tab_header_cell icon="lms-ui-icon-phone"} {t a=$customervoipaccounts|@count|default:"0"}Voip Accounts ($a):{/t} {/tab_header_cell} {tab_header_cell} {if $customerinfo.status != $smarty.const.CSTATUS_INTERESTED && !$customerinfo.deleted} {trans("New Voip Account")} » {/if} {/tab_header_cell} {/tab_header} {tab_contents id="voipaccountspanel"} {tab_table} {block name="customervoipaccountsbox-list-columns"} {assign var='number_of_table_columns' value='5'} {/block}
{block name="customervoipaccountsbox-list-header"}
{trans("ID:")}
{trans("Password:")}
{trans("Phone number:")}
 
{/block}
{foreach $customervoipaccounts as $voipaccount} {block name="customervoipaccountsbox-list-row"}
({$voipaccount.id|string_format:"%04d"})
{if !ConfigHelper::checkConfig('privileges.hide_voip_passwords')}{$voipaccount.passwd}{else}{'*'|str_repeat:8}{/if}
{foreach $voipaccount.phones as $phone} {$phone.phone}{if !$phone@last}, {/if} {/foreach}
{button type="link" icon="delete" class="delete-voipaccount" href="?m=voipaccountdel&id={$voipaccount.id}" tip="Delete"} {button type="link" icon="edit" href="?m=voipaccountedit&id={$voipaccount.id}" tip="Edit"} {button type="link" icon="info" href="?m=voipaccountinfo&id={$voipaccount.id}" tip="Info"}
{/block} {foreachelse} {block name="customervoipaccountsbox-list-empty-row"}
{trans("That customer does not own any voip account.")}
{/block} {/foreach} {/tab_table} {/tab_contents} {/tab_container}