{include file="google-maps.html"}
{icon name="node"}
{block name="nodeaddbox-tablebody"} {/block}
{block name="nodeaddbox-leftcolumn"} {if ConfigHelper::checkValue(ConfigHelper::checkConfig('phpui.public_ip', 'true'))} {/if} {if $netdevices} {/if} {/block}
{icon name="network"}
{if (ConfigHelper::checkConfig('phpui.show_assigned_networks_only')) && ConfigHelper::checkValue(ConfigHelper::checkConfig('phpui.public_ip', 'true'))} {/if}
{icon name="routed"}
{button type="link" onClick="return ipchoosewin({ ipelem: document.nodeadd['nodedata[ipaddr]'], ip: document.nodeadd['nodedata[ipaddr]'].value, netelem: document.nodeadd['nodedata[netid]'], netid: document.nodeadd['nodedata[netid]'].value });" tip="Click to select IP from the list" icon="next"}
{button type="link" id="selectfirstfreeaddress" icon="download" label="Select first free address"}
{icon name="routed"} {button type="link" onClick="return ipchoosewin({ ipelem: document.nodeadd['nodedata[ipaddr_pub]'], ip: document.nodeadd['nodedata[ipaddr_pub]'].value, netelem: document.nodeadd['nodedata[pubnetid]'], netid: document.nodeadd['nodedata[pubnetid]'].value, privnetid: document.nodeadd['nodedata[netid]'].value });" tip="Click to select IP from the list" icon="next"}
{icon name="mac"} {mac_address_selection form="nodedata" macs=$nodedata.macs}
{icon name="login"} Login")}" {tip trigger="login"}>
{icon name="password"} {button type="link" id="genpasswd" icon="next" tip="Click to generate random password"}
{icon name="netdev"}
{button type="link" icon="search" tip="Search device" onclick="return netDevChooseWin(document.nodeadd.elements['nodedata[netdev]']);"} {button type="link" icon="map" onClick="return netdevfrommapchoosewin(document.nodeadd.elements['nodedata[netdev]']);" tip="Click to select network device from map"}
{icon name="invproject"}
{icon name="customer"} {customerlist form = "nodeadd" customers = $customers selected = $nodedata.ownerid selectname = "nodedata[customerid]" select_id = "customerid_select" inputname = "nodedata[ownerid]" input_id = "customerid_input" selecttip = "Assign node to customer" required = true customOnChange = "customer_change();" version = 2 }
{icon name="home"} {if $nodedata.address_id && $nodedata.ownerid} {$selected_address_id = $nodedata.address_id} {else} {$selected_address_id = null} {/if} {include file="customer/customeraddresses.html" id="customer_addresses" name="nodedata[address_id]" trigger="address_id" selected_address_id=$selected_address_id}
{icon name="options"}
{icon name="netdev"} {foreach $_SESSIONTYPES as $idx => $sessiontype}
{/foreach}
{block name="nodeaddbox-rightcolumn"} {/block}
{icon name="network"} {trans("Determine GPS coordinates automatically")}
{icon name="location"} {trans("GPS longitude")} {button type="link" icon="map" tip="Click to select gps coordinates from map" onClick="return gpscoordschoosewin(document.nodeadd.elements['nodedata[longitude]'], document.nodeadd.elements['nodedata[latitude]']);"}
{icon name="location"} {trans("GPS latitude")} {button type="link" icon="map" tip="Click to select gps coordinates from map" onClick="return gpscoordschoosewin(document.nodeadd.elements['nodedata[longitude]'], document.nodeadd.elements['nodedata[latitude]']);"}
{icon name="info"}
{if $nodedata.access} {$icon = "connected"} {else} {$icon = "disconnected"} {/if} {icon name=$icon id="statusico"}
{if $nodedata.warning} {$icon = "warnon"} {else} {$icon = "warnoff"} {/if} {icon name=$icon id="noticesico"}
{block name="nodeaddbox-options"} {button type="submit" id="save-button" icon="save" label="Submit"} {button icon="search" label="Scan" href="?m=nodescan{if $customerinfo.id}&ownerid={$customerinfo.id}{/if}"} {button icon="cancel" label="Cancel" href="?m={if $customerinfo.id}customerinfo&id={$customerinfo.id}{else}nodelist{/if}"}
{/block}