#set($module="computers")
#access_admin()
#set ($obj = $computers)
#set ($obj.name=$params.name)
#set ($obj.description=$params.description)
#set ($obj.ipAddress=$params.ipAddress)
#set ($obj.macAddress=$params.macAddress)
#set ($obj.options=$params.options)
#set ($pro=$profiles)
#set ($dummy=$pro.load($params.profileName))
#if ($dummy)
#set ($obj.profileId=$pro.id)
#else
#set ($obj.profileId=0)
#end
#if($computers_editable)
$obj.save()
#end
#return_to_index("$module")
