= read_card_header($meta->collection, $meta->id, $meta->icon, $user, $resource->name) ?>
= read_field('name', $resource->name, $dictionary->columns->name, $update, '', '', '', '', $meta->collection) ?>
= read_select('org_id', $resource->org_id, $dictionary->columns->org_id, $update, '', $orgs, $meta->collection) ?>
= read_field('description', $resource->description, $dictionary->columns->description, $update, '', '', '', '', $meta->collection) ?>
= read_field('type', $resource->type, $dictionary->columns->type, false, '', '', '', '', $meta->collection) ?>
type === 'snmp') {
echo read_field('credentials.community', '', '', $update, __('Community String'), '', '', 'password', $meta->collection);
} elseif ($resource->type === 'ssh') {
echo read_field('credentials.username', (!empty($resource->credentials->username)) ? $resource->credentials->username : '', $dictionary->columns->username, $update, __('Username'), '', '', '', $meta->collection);
echo read_field('credentials.password', '', $dictionary->columns->password, $update, __('Password'), '', '', 'password', $meta->collection);
} elseif ($resource->type === 'windows') {
echo read_field('credentials.username', (!empty($resource->credentials->username)) ? $resource->credentials->username : '', $dictionary->columns->username, $update, __('Username'), '', '', '', $meta->collection);
echo read_field('credentials.password', '', $dictionary->columns->password, $update, __('Password'), '', '', 'password', $meta->collection);
} elseif ($resource->type === 'ssh_key') {
echo read_field('credentials.username', (!empty($resource->credentials->username)) ? $resource->credentials->username : '', $dictionary->columns->username, $update, __('Username'), '', '', '', $meta->collection);
echo read_field('credentials.ssh_key', '', $dictionary->columns->ssh_key, $update, __('SSH Key'), '', '', 'password', $meta->collection);
echo read_field('credentials.password', '', $dictionary->columns->password, $update, __('Key Password (optional)'), '', '', 'password', $meta->collection);
echo read_field('credentials.sudo_password', '', $dictionary->columns->sudo_password, $update, __('Sudo Password (optional)'), '', '', 'password', $meta->collection);
} elseif ($resource->type === 'snmp_v3') {
echo read_field('credentials.security_name', (!empty($resource->credentials->security_name)) ? $resource->credentials->security_name : '', $dictionary->columns->security_name, $update, '', '', '', '', $meta->collection); ?>
columns->authentication_passphrase, $update, '', '', '', 'password', $meta->collection); ?>
columns->privacy_passphrase, $update, '', '', '', 'password', $meta->collection); ?>
credentials->context_name)) ? $resource->credentials->context_name : '', $dictionary->columns->context_name, $update, '', '', '', '', $meta->collection); ?>
credentials->context_engine_id)) ? $resource->credentials->context_engine_id : '', $dictionary->columns->context_engine_id, $update, '', '', '', '', $meta->collection); ?>
= read_field('edited_by', $resource->edited_by, $dictionary->columns->edited_by, false, '', '', '', '', $meta->collection) ?>
= read_field('edited_date', $resource->edited_date, $dictionary->columns->edited_date, false, '', '', '', '', $meta->collection) ?>
= read_field_header($meta->collection, 'security_level', $dictionary->columns->security_level) ?>
= read_field_header($meta->collection, 'authentication_protocol', $dictionary->columns->authentication_protocol) ?>
= read_field_header($meta->collection, 'privacy_protocol', $dictionary->columns->privacy_protocol) ?>
= aboutNotesDiv ($meta->collection, $dictionary) ?>