. * ------------------------------------------------------------------------- * @copyright Copyright (C) 2009-2022 by GenericObject plugin team. * @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html * @link https://github.com/pluginsGLPI/genericobject * ------------------------------------------------------------------------- */ global $GO_FIELDS; $GO_FIELDS['id']['name'] = __("ID"); $GO_FIELDS['id']['input_type'] = 'text'; $GO_FIELDS['id']['massiveaction'] = false; $GO_FIELDS['name']['name'] = __("Name"); $GO_FIELDS['name']['field'] = 'name'; $GO_FIELDS['name']['input_type'] = 'text'; $GO_FIELDS['name']['autoname'] = true; $GO_FIELDS['serial']['name'] = __("Serial number"); $GO_FIELDS['serial']['field'] = 'serial'; $GO_FIELDS['serial']['input_type'] = 'text'; $GO_FIELDS['otherserial']['name'] = __("Licence SN"); $GO_FIELDS['otherserial']['field'] = 'otherserial'; $GO_FIELDS['otherserial']['input_type'] = 'text'; $GO_FIELDS['otherserial']['autoname'] = true; $GO_FIELDS['comment']['name'] = __("Cause"); $GO_FIELDS['comment']['field'] = 'comment'; $GO_FIELDS['comment']['input_type'] = 'multitext'; $GO_FIELDS['other']['name'] = __("Others"); $GO_FIELDS['other']['input_type'] = 'text'; $GO_FIELDS['creationdate']['name'] = __("Creation date"); $GO_FIELDS['creationdate']['input_type'] = 'date'; $GO_FIELDS['expirationdate']['name'] = __("Expiration date"); $GO_FIELDS['expirationdate']['input_type'] = 'date'; $GO_FIELDS['date_mod']['name'] = __("Last update"); $GO_FIELDS['date_mod']['input_type'] = 'datetime'; $GO_FIELDS['date_creation']['name'] = __('Creation date'); $GO_FIELDS['date_creation']['input_type'] = 'datetime'; $GO_FIELDS['url']['name'] = __("URL"); $GO_FIELDS['url']['field'] = 'url'; $GO_FIELDS['url']['input_type'] = 'text'; $GO_FIELDS['url']['datatype'] = 'weblink'; $GO_FIELDS['types_id']['name'] = __("Type"); $GO_FIELDS['types_id']['linkfield'] = 'type'; $GO_FIELDS['types_id']['input_type'] = 'dropdown'; // The 'isolated' dropdown type will create a isolated table for each type that will be assigned // with this field. $GO_FIELDS['types_id']['dropdown_type'] = 'isolated'; $GO_FIELDS['models_id']['name'] = __("Model"); $GO_FIELDS['models_id']['input_type'] = 'dropdown'; $GO_FIELDS['models_id']['dropdown_type'] = 'isolated'; $GO_FIELDS['categories_id']['name'] = __("Category"); $GO_FIELDS['categories_id']['input_type'] = 'dropdown'; $GO_FIELDS['categories_id']['dropdown_type'] = 'isolated'; $GO_FIELDS['entities_id']['name'] = __("Entity"); $GO_FIELDS['entities_id']['input_type'] = 'dropdown'; $GO_FIELDS['entities_id']['massiveaction'] = false; $GO_FIELDS['template_name']['name'] = __("Template name"); $GO_FIELDS['template_name']['input_type'] = 'text'; $GO_FIELDS['template_name']['massiveaction'] = false; $GO_FIELDS['notepad']['name'] = _n('Note', 'Notes', 2); $GO_FIELDS['notepad']['input_type'] = 'multitext'; $GO_FIELDS['is_recursive']['name'] = __("Child entities"); $GO_FIELDS['is_recursive']['input_type'] = 'bool'; $GO_FIELDS['is_deleted']['name'] = __("Item in the dustbin"); $GO_FIELDS['is_deleted']['input_type'] = 'bool'; $GO_FIELDS['is_deleted']['massiveaction'] = false; $GO_FIELDS['is_template']['name'] = __("Templates"); $GO_FIELDS['is_template']['input_type'] = 'bool'; $GO_FIELDS['is_template']['massiveaction'] = false; $GO_FIELDS['is_global']['name'] = __("Management type"); $GO_FIELDS['is_global']['input_type'] = 'bool'; $GO_FIELDS['is_global']['massiveaction'] = false; $GO_FIELDS['is_helpdesk_visible']['name'] = __("Associable to a ticket"); $GO_FIELDS['is_helpdesk_visible']['input_type'] = 'bool'; $GO_FIELDS['locations_id']['name'] = __("Item location"); $GO_FIELDS['locations_id']['input_type'] = 'dropdown'; $GO_FIELDS['machine_room']['name'] = __("Machine Room"); $GO_FIELDS['machine_room']['input_type'] = 'text'; $GO_FIELDS['states_id']['name'] = __("Status"); $GO_FIELDS['states_id']['input_type'] = 'dropdown'; $GO_FIELDS['back_up']['name'] = __("Backup"); $GO_FIELDS['back_up']['input_type'] = 'text'; $GO_FIELDS['connect']['name'] = __("Connect"); $GO_FIELDS['connect']['input_type'] = 'text'; $GO_FIELDS['users_id']['name'] = __("User"); $GO_FIELDS['users_id']['input_type'] = 'dropdown'; $GO_FIELDS['groups_id']['name'] = __("Group"); $GO_FIELDS['groups_id']['input_type'] = 'dropdown'; $GO_FIELDS['groups_id']['condition'] = ['is_itemgroup' => 1]; $GO_FIELDS['manufacturers_id']['name'] = __("Fournisseur"); $GO_FIELDS['manufacturers_id']['input_type'] = 'dropdown'; $GO_FIELDS['manufacturers_contact']['name'] = __("Fournisseur Contact"); $GO_FIELDS['manufacturers_contact']['input_type'] = 'text'; $GO_FIELDS['cond_ification']['name'] = __("Codification"); $GO_FIELDS['cond_ification']['input_type'] = 'text'; $GO_FIELDS['plc']['name'] = __("PLC"); $GO_FIELDS['plc']['input_type'] = 'text'; $GO_FIELDS['plc_software']['name'] = __("PLC Software"); $GO_FIELDS['plc_software']['input_type'] = 'text'; $GO_FIELDS['plc_ip_adr']['name'] = __("PLC IP Address"); $GO_FIELDS['plc_ip_adr']['input_type'] = 'text'; $GO_FIELDS['hmi']['name'] = __("HMI"); $GO_FIELDS['hmi']['input_type'] = 'text'; $GO_FIELDS['pc']['name'] = __("PC"); $GO_FIELDS['pc']['input_type'] = 'text'; $GO_FIELDS['pc/hmi']['name'] = __("HMI/PC Software"); $GO_FIELDS['pc/hmi']['input_type'] = 'text'; $GO_FIELDS['pc/hmi_software']['name'] = __("HMI Software"); $GO_FIELDS['pc/hmi_software']['input_type'] = 'text'; $GO_FIELDS['pc/hmi_ip']['name'] = __("HMI IP Address"); $GO_FIELDS['pc/hmi_ip']['input_type'] = 'text'; $GO_FIELDS['pc/hmi_ip_adr']['name'] = __("HMI/PC IP Address"); $GO_FIELDS['pc/hmi_ip_adr']['input_type'] = 'text'; $GO_FIELDS['pc/reseau']['name'] = __("Réseau"); $GO_FIELDS['pc/reseau']['input_type'] = 'text'; $GO_FIELDS['pc/machine']['name'] = __("Machine"); $GO_FIELDS['pc/machine']['input_type'] = 'text'; $GO_FIELDS['control_system']['name'] = __("Control System"); $GO_FIELDS['control_system']['input_type'] = 'text'; $GO_FIELDS['admin_session']['name'] = __("Admin Session"); $GO_FIELDS['admin_session']['input_type'] = 'text'; $GO_FIELDS['password']['name'] = __("Password"); $GO_FIELDS['password']['input_type'] = 'text'; $GO_FIELDS['users_id_tech']['name'] = __("Technician in charge of the hardware"); $GO_FIELDS['users_id_tech']['input_type'] = 'dropdown'; $GO_FIELDS['domains_id']['name'] = __("Domain"); $GO_FIELDS['domains_id']['input_type'] = 'dropdown'; $GO_FIELDS['contact']['name'] = __("Alternate username"); $GO_FIELDS['contact']['input_type'] = 'text'; $GO_FIELDS['contact_num']['name'] = __("Alternate username number"); $GO_FIELDS['contact_num']['input_type'] = 'text'; $GO_FIELDS['groups_id_tech']['name'] = __("Group in charge of the hardware"); $GO_FIELDS['groups_id_tech']['input_type'] = 'dropdown'; $GO_FIELDS['groups_id_tech']['condition'] = ['is_assign' => 1];