{include file="google-maps.html"}
{icon name="node"}
{block name="nodeaddbox-tablebody"}
{block name="nodeaddbox-leftcolumn"}
{icon name="network"}
{trans("- automatic selection -")}
{foreach $networks as $net}
{$net.name|truncate:20:"":true}: {$net.address}/{$net.prefix}
{/foreach}
{if (ConfigHelper::checkConfig('phpui.show_assigned_networks_only')) && ConfigHelper::checkValue(ConfigHelper::checkConfig('phpui.public_ip', 'true'))} {/if}
{trans("the whole network")}
{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"}
{if ConfigHelper::checkValue(ConfigHelper::checkConfig('phpui.public_ip', 'true'))}
{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"}
{/if}
{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"}
{if $netdevices}
{icon name="netdev"}
{button type="link" icon="search" tip="Search device" onclick="return netDevChooseWin(document.nodeadd.elements['nodedata[netdev]']);"}
- {trans("no device")} -
{foreach $netdevices as $netdev}
{$netdev.name}{if $netdev.producer} / {$netdev.producer}{/if}{if $netdev.location} ({$netdev.location}){/if}
{/foreach}
{button type="link" icon="map" onClick="return netdevfrommapchoosewin(document.nodeadd.elements['nodedata[netdev]']);" tip="Click to select network device from map"}
{foreach $_LINKTYPES as $key => $item}
{$item}
{/foreach}
- {trans("none")} -
{foreach $nodedata.radiosectors as $radiosector}
{$radiosector.name}
{/foreach}
{trans("- unknown -")} {foreach $_LINKTECHNOLOGIES[$nodedata.linktype] as $linktechnologyidx => $linktechnology}
{$linktechnology}
{/foreach}
{foreach $_LINKSPEEDS as $key => $item}
{$item}
{/foreach}
{/if}
{icon name="invproject"}
- {trans("none")} -
{trans("New project")}
{trans("From root device")}
{foreach $NNprojects as $project}
{$project.name|escape}
{/foreach}
{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"}
{trans("MAC checking")}
{trans("Half duplex")}
{icon name="netdev"}
{foreach $_SESSIONTYPES as $idx => $sessiontype}
{$sessiontype.label}
{/foreach}
{/block}
{block name="nodeaddbox-rightcolumn"}
{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"}
{$nodedata.info}
{if $nodedata.access} {$icon = "connected"} {else} {$icon = "disconnected"} {/if} {icon name=$icon id="statusico"}
{trans("connected")}
{trans("disconnected")}
{if $nodedata.warning} {$icon = "warnon"} {else} {$icon = "warnoff"} {/if} {icon name=$icon id="noticesico"}
{trans("enabled")}
{trans("disabled")}
{/block}
{/block}
{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}"}
{trans("Display this form again, when this node is saved")}
{/block}