{css}
{tab_container id="netdevconnbox"} {tab_header content_id="devicedevices"} {tab_header_cell icon="lms-ui-icon-netdev"} {if empty($netdevlist)}{$netdevlist=array()}{/if}{t a=$netdevlist|@count}Connected devices ($a):{/t} {/tab_header_cell} {/tab_header} {tab_contents id="devicedevices"} {tab_table} {if $netdevlist}
{trans("ID:")}
{trans("Port")}:
{trans("Dest. port")}:
{trans("Ports (used):")}
 
{/if} {foreach $netdevlist as $netdevice}
({$netdevice.id|string_format:"%04d"})
[{if $netdevice.srcport}{$netdevice.srcport}{else}-{/if}]
{trans("Link type:")} {$_LINKTYPES[$netdevice.linktype]}
{if $netdevice.linktype == $smarty.const.LINKETYPE_WIRELESS}{if $netdevice.srcradiosector}{trans("Radio sector:")} {$netdevice.srcradiosector}
{/if}{if $netdevice.dstradiosector}{trans("Destination radio sector:")} {$netdevice.dstradiosector}
{/if}{/if}{if $netdevice.linktechnology}{trans("Link technology:")} {$_LINKTECHNOLOGIES[$netdevice.linktype][$netdevice.linktechnology]}
{/if}{trans("Link speed:")} {$_LINKSPEEDS[$netdevice.linkspeed]}
"}> [{if $netdevice.dstport}{$netdevice.dstport}{else}-{/if}]
{$netdevice.ports} ({$netdevice.takenports})
{button type="link" class="disconnectbox" href="?m=netdevedit&action=disconnect&id={$netdev.id}&devid={$netdevice.id}" icon="delete" tip="Delete connection"}
{foreachelse}
{trans("No such connected devices.")}
{/foreach} {/tab_table} {tab_button_panel} {tab_buttons} {if $netdev.ports == $netdev.takenports} {trans("All ports in that device are in use.")} {elseif $restnetdevlist == NULL} {trans("No such devices for connection.")} {else} {trans("Connect")}: {trans("Device:")} »»» {button icon="save" onclick="javascript:document.connect.submit();" label="Connect"} {/if} {/tab_buttons} {/tab_button_panel} {/tab_contents} {/tab_container}