#set($module="clients")
#access_admin()
#set ($obj = $clients)
#if ($form_action=="edit")
#set ($r=$obj.load($params.key))
#end
#set ($obj.name=$params.name)
#set ($obj.ipAddress=$params.ipAddress)
#set ($obj.macAddress=$params.macAddress)
#set ($p=$computers)
#set ($dummy=$p.load($params.serverName))
#if ($dummy)
#set ($obj.server=$p.name)
#else
#set ($obj.server="")
#end
#set($obj.hardwareType=$params.hardwareType)
#set($obj.manufacturer=$params.manufacturer)
#set($obj.model=$params.model)
#set($obj.serial=$params.serial)
#set($obj.location=$params.location)
#set($obj.roomNumber=$params.roomNumber)
##set($obj.purchaseDate=$params.purchaseDate)
##set($obj.warranty=$params.warranty)
#set($obj.orderNumber=$params.orderNumber)
#set($obj.inventoryNumber=$params.inventoryNumber)
#if($clients_editable)
$obj.save()
#end
#return_to_index("$module")
