{css} {tab_container id="customerdevices" label="Network Devices"} {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("Model")}
{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.producer} {if $customerdevice.devtypename} {trans($customerdevice.devtypename)} {/if} {$customerdevice.producer} {if $customerdevice.model}/ {$customerdevice.model}{/if} {/if} {if $customerdevice.location} {if empty($customerdevice.location_city)} {$customerdevice.location|truncate:60:"…":true} {else} {t a=$customerdevice.location|truncate:60:"…":true}$a (TERRIT){/t} {/if} {/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}