{css}
{tab_container id="netdevipbox"} {tab_header content_id="devicenodes"} {tab_header_cell icon="lms-ui-icon-node"} {if empty($netcomplist)}{$netcomplist=array()}{/if}{t a=$netcomplist|@count}Connected nodes ($a):{/t} {/tab_header_cell} {/tab_header} {tab_contents id="devicenodes"} {tab_table} {if $netcomplist}
{trans("Name:")} / {trans("Location:")}
{trans("Owner:")}
{trans("Node ID:")}
{trans("Customer ID:")}
 
{/if} {foreach $netcomplist as $node}
{$node.name} {if $node.location} / {$node.location}{if $node.borough_name} ({$node.state_name} / {$node.district_name} / {$_BOROUGHTYPES[$node.borough_type]} {$node.borough_name}){/if} {else} - {/if}
({$node.id|string_format:"%04d"})
({$node.ownerid|string_format:"%04d"})
{button type="link" href="?m=netdevedit&action=disconnectnode&id={$netdev.id}&nodeid={$node.id}" onclick="return confirmLink(this, '{trans("Are you sure, you want to delete that connection?")}');" icon="delete" tip="Delete connection"}
{foreachelse}
{trans("No such connected nodes.")}
{/foreach} {/tab_table} {tab_button_panel} {tab_buttons} {if $netdev.ports == $netdev.takenports} {trans("All ports in that device are in use.")} {elseif $nodelist == NULL} {trans("No such nodes to connection.")} {else} {trans("Connect")}: {trans("Node:")} »»»  {if !isset($nodelinktype)}{$devnodeslinktype = 0}{else}{$devnodeslinktype = $nodelinktype}{/if} {button icon="save" onclick="javascript:document.connectnode.submit();" label="Connect"} {/if} {/tab_buttons} {/tab_button_panel} {/tab_contents} {/tab_container}