{css} {tab_container id="customerdevices"} {tab_header content_id="devicespanel"} {tab_header_cell icon="lms-ui-icon-netdev"} {t a=$customerdevices|@count|default:"0"}Network Devices ($a):{/t} {/tab_header_cell} {tab_header_cell} {trans("New device")} » {/tab_header_cell} {/tab_header} {tab_contents id="devicespanel"} {tab_table} {if $customerdevices}
{trans("Name:")}
{trans("Description:")}
{trans("ID:")}
{trans("Serial number:")}
{trans("IP address:")}
{trans("MAC address:")}
 
{/if} {foreach $customerdevices as $customerdevice} {$customer_netdev_id = $customerdevice.id}
{$customerdevice.name} {if $customerdevice.location}
{$customerdevice.location|truncate:60:"...":true} {/if}
{$customerdevice.description|default:"-"}
({$customerdevice.id|string_format:"%04d"})
{$customerdevice.serialnumber|default:"-"}
{foreach $customerdevice.ips as $v} {$v.ip} ({$v.name})
{foreachelse} — {/foreach}
{foreach $customerdevice.ips as $v} {$v.mac}
{foreachelse} — {/foreach}
{button type="link" icon="edit" href="?m=netdevedit&id={$customerdevice.id}" tip="Edit"}
{foreachelse}
{trans("That customer hasn't got any assigned network devices.")}
{/foreach} {/tab_table} {/tab_contents} {/tab_container}