Form->create('Attribute', array('id', 'url' => '/attributes/' . $url_params)); ?>
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'); } } ?>
array($distributionLevels), 'label' => __('Distribution ') . $this->element('formInfo', array('type' => 'distribution')), ); if ($action == 'add') { $distArray['selected'] = $initialDistribution; } echo $this->Form->input('distribution', $distArray); ?> 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( 'label' => __('for Intrusion Detection System'), )); echo $this->Form->input('batch_import', array( 'type' => 'checkbox' )); ?>
Form->button('Submit', array('class' => 'btn btn-primary')); endif; echo $this->Form->end(); ?>
element('side_menu', array('menuList' => 'event', 'menuItem' => 'addAttribute', 'event' => $event)); } ?> Js->writeBuffer(); // Write cached scripts