Form->create('Attribute', array('id')); ?>
Form->hidden('event_id'); echo $this->Form->input('category', array( 'empty' => '(choose one)' )); echo $this->Form->input('type', array( 'empty' => '(first choose category)' )); $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', 'selected' => $initialDistribution, )); ?> 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, 'data-content' => isset($attrDescriptions['signature']['formdesc']) ? $attrDescriptions['signature']['formdesc'] : $attrDescriptions['signature']['desc'], 'label' => 'for Intrusion Detection System', )); echo $this->Form->input('batch_import', array( 'type' => 'checkbox', 'data-content' => 'Create multiple attributes one per line', )); // link an onchange event to the form elements $this->Js->get('#AttributeCategory')->event('change', 'formCategoryChanged("#AttributeCategory")'); ?>

" id="warning-message">Warning: You are about to share data that is of a sensitive nature (Attribution / targeting data). Make sure that you are authorised to share this.

Submit Cancel
Form->button('Submit', array('class' => 'btn btn-primary')); endif; echo $this->Form->end(); ?>
request->data['Attribute']['event_id']; $event['Event']['published'] = $published; echo $this->element('side_menu', array('menuList' => 'event', 'menuItem' => 'addAttribute', 'event' => $event)); } ?> Js->writeBuffer(); // Write cached scripts