Form->hidden('event_id');
echo $this->Form->input('category', array(
'empty' => '(choose one)',
'label' => 'Category ' . $this->element('formInfo', array('type' => 'category')),
));
echo $this->Form->input('type', array(
'empty' => '(first choose category)',
'label' => 'Type ' . $this->element('formInfo', array('type' => 'type')),
));
$initialDistribution = 5;
if (Configure::read('MISP.default_attribute_distribution') != null) {
if (Configure::read('MISP.default_attribute_distribution') === 'event') {
$initialDistribution = 5;
} else {
$initialDistribution = Configure::read('MISP.default_attribute_distribution');
}
}
?>
Form->input('distribution', array(
'options' => array($distributionLevels),
'label' => 'Distribution ' . $this->element('formInfo', array('type' => 'distribution')),
'selected' => $initialDistribution,
));
?>
Form->input('sharing_group_id', array(
'options' => array($sharingGroups),
'label' => 'Sharing Group',
));
}
?>
Form->input('value', array(
'type' => 'textarea',
'error' => array('escape' => false),
'div' => 'input clear',
'class' => 'input-xxlarge'
));
?>
Form->input('comment', array(
'type' => 'text',
'label' => 'Contextual Comment',
'error' => array('escape' => false),
'div' => 'input clear',
'class' => 'input-xxlarge'
));
?>
Form->input('to_ids', array(
'checked' => false,
'label' => 'for Intrusion Detection System',
));
echo $this->Form->input('batch_import', array(
'type' => 'checkbox'
));
?>