{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|size}VoIP Accounts ($a){/t} {/tab_header_cell} {tab_header_cell} {if $customerinfo.status != $smarty.const.CSTATUS_INTERESTED && !$customerinfo.deleted} {trans("New VoIP Account")} {icon name="next" class="fa-fw"} {/if} {/tab_header_cell} {/tab_header} {tab_contents id="voipaccountspanel"} {tab_table} {block name="customervoipaccountsbox-list-columns"} {assign var='number_of_table_columns' value='7'} {/block}
{block name="customervoipaccountsbox-list-header"}
{trans("ID")}
{trans("Service provider")}
{trans("External ID")}
{trans("Password")}
{trans("Phone number")}
 
{/block}
{foreach $customervoipaccounts as $voipaccount} {block name="customervoipaccountsbox-list-row"}
({$voipaccount.id|string_format:"%04d"})
{if !empty($voipaccount.serviceproviderid)} {$voipaccount.serviceprovidername} {else} - {/if}
{if !empty($voipaccount.serviceproviderid) && !empty($voipaccount.extid)} #{$voipaccount.extid} {else} - {/if}
{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}