mirror of https://github.com/MISP/MISP
chg: [UI] Hide some fields from user profile and use better description
parent
480ecfec08
commit
754f5fcc8b
|
@ -77,12 +77,12 @@
|
|||
<?php
|
||||
$default_publish_alert = Configure::check('MISP.default_publish_alert') ? Configure::read('MISP.default_publish_alert') : true;
|
||||
echo $this->Form->input('autoalert', array(
|
||||
'label' => __('Receive alerts when events are published'),
|
||||
'label' => __('Receive email alerts when events are published'),
|
||||
'type' => 'checkbox',
|
||||
'checked' => isset($this->request->data['User']['autoalert']) ? $this->request->data['User']['autoalert'] : $default_publish_alert
|
||||
));
|
||||
echo $this->Form->input('contactalert', array(
|
||||
'label' => __('Receive alerts from "contact reporter" requests'),
|
||||
'label' => __('Receive email alerts from "Contact reporter" requests'),
|
||||
'type' => 'checkbox',
|
||||
'checked' => isset($this->request->data['User']['contactalert']) ? $this->request->data['User']['contactalert'] : true
|
||||
));
|
||||
|
|
|
@ -85,8 +85,8 @@
|
|||
'disabled' => !$canChangePassword,
|
||||
'data-disabled-reason' => !$canChangePassword ? __('User password change is disabled on this instance') : '',
|
||||
]);
|
||||
echo $this->Form->input('autoalert', array('label' => __('Receive alerts when events are published'), 'type' => 'checkbox'));
|
||||
echo $this->Form->input('contactalert', array('label' => __('Receive alerts from "contact reporter" requests'), 'type' => 'checkbox'));
|
||||
echo $this->Form->input('autoalert', array('label' => __('Receive email alerts when events are published'), 'type' => 'checkbox'));
|
||||
echo $this->Form->input('contactalert', array('label' => __('Receive email alerts from "Contact reporter" requests'), 'type' => 'checkbox'));
|
||||
echo $this->Form->input('disabled', array('type' => 'checkbox', 'label' => __('Disable this user account')));
|
||||
echo '</div>';
|
||||
?>
|
||||
|
|
|
@ -30,8 +30,8 @@
|
|||
echo $this->Form->input('certif_public', array('label' => __('S/MIME Public certificate (PEM format)'), 'div' => 'clear', 'class' => 'input-xxlarge'));
|
||||
}
|
||||
echo '<div class="user-edit-checkboxes">';
|
||||
echo $this->Form->input('autoalert', array('label' => __('Receive alerts when events are published'), 'type' => 'checkbox'));
|
||||
echo $this->Form->input('contactalert', array('label' => __('Receive alerts from "contact reporter" requests'), 'type' => 'checkbox'));
|
||||
echo $this->Form->input('autoalert', array('label' => __('Receive email alerts when events are published'), 'type' => 'checkbox'));
|
||||
echo $this->Form->input('contactalert', array('label' => __('Receive email alerts from "Contact reporter" requests'), 'type' => 'checkbox'));
|
||||
echo '</div>';
|
||||
?>
|
||||
</fieldset>
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
'html' => $this->OrgImg->getNameWithImg($user),
|
||||
);
|
||||
$table_data[] = array('key' => __('Role'), 'html' => $this->Html->link($user['Role']['name'], array('controller' => 'roles', 'action' => 'view', $user['Role']['id'])));
|
||||
$table_data[] = array('key' => __('Autoalert'), 'boolean' => $user['User']['autoalert']);
|
||||
$table_data[] = array('key' => __('Contactalert'), 'boolean' => $user['User']['contactalert']);
|
||||
$table_data[] = array('key' => __('Event alert enabled'), 'boolean' => $user['User']['autoalert']);
|
||||
$table_data[] = array('key' => __('Contact alert enabled'), 'boolean' => $user['User']['contactalert']);
|
||||
|
||||
if (!$admin_view && !$user['Role']['perm_auth']) {
|
||||
$table_data[] = array(
|
||||
|
@ -73,8 +73,10 @@
|
|||
$table_data[] = array('key' => __('Org admin'), 'html' => implode('<br>', $org_admin_data));
|
||||
}
|
||||
$table_data[] = array('key' => __('NIDS Start SID'), 'value' => $user['User']['nids_sid']);
|
||||
$table_data[] = array('key' => __('Terms accepted'), 'boolean' => $user['User']['termsaccepted']);
|
||||
$table_data[] = array('key' => __('Must change password'), 'boolean' => $user['User']['change_pw']);
|
||||
if ($admin_view) {
|
||||
$table_data[] = array('key' => __('Terms accepted'), 'boolean' => $user['User']['termsaccepted']);
|
||||
$table_data[] = array('key' => __('Must change password'), 'boolean' => $user['User']['change_pw']);
|
||||
}
|
||||
$table_data[] = array(
|
||||
'key' => __('PGP key'),
|
||||
'element' => 'genericElements/key',
|
||||
|
@ -100,14 +102,20 @@
|
|||
);
|
||||
}
|
||||
$table_data[] = array(
|
||||
'key' => __('News read at'),
|
||||
'value' => $user['User']['newsread'] ? date('Y-m-d H:i:s', $user['User']['newsread']) : __('N/A')
|
||||
);
|
||||
$table_data[] = array(
|
||||
'key' => __('Disabled'),
|
||||
'class' => empty($user['User']['disabled']) ? '' : 'background-red',
|
||||
'boolean' => $user['User']['disabled']
|
||||
'key' => __('Created'),
|
||||
'value' => $user['User']['date_created'] ? date('Y-m-d H:i:s', $user['User']['date_created']) : __('N/A')
|
||||
);
|
||||
if ($admin_view) {
|
||||
$table_data[] = array(
|
||||
'key' => __('News read at'),
|
||||
'value' => $user['User']['newsread'] ? date('Y-m-d H:i:s', $user['User']['newsread']) : __('N/A')
|
||||
);
|
||||
$table_data[] = array(
|
||||
'key' => __('Disabled'),
|
||||
'class' => empty($user['User']['disabled']) ? '' : 'background-red',
|
||||
'boolean' => $user['User']['disabled']
|
||||
);
|
||||
}
|
||||
echo $this->element('genericElements/assetLoader', array(
|
||||
'css' => array('vis', 'distribution-graph'),
|
||||
'js' => array('vis', 'network-distribution-graph')
|
||||
|
|
Loading…
Reference in New Issue