Form->create('Attribute', array('enctype' => 'multipart/form-data','onSubmit' => 'document.getElementById("AttributeMalware").removeAttribute("disabled");'));?>
Form->hidden('event_id'); echo $this->Form->input('category', array('default' => 'Payload delivery')); ?>
Form->input('distribution', array( 'options' => $distributionLevels, 'label' => 'Distribution', 'selected' => $initialDistribution, )); ?> Form->input('comment', array( 'type' => 'text', 'label' => 'Contextual Comment', 'error' => array('escape' => false), 'div' => 'input clear', 'class' => 'input-xxlarge' )); //'before' => $this->Html->div('forminfo', isset($attrDescriptions['distribution']['formdesc']) ? $attrDescriptions['distribution']['formdesc'] : $attrDescriptions['distribution']['desc']),)); ?>
Form->input('values.', array( 'error' => array('escape' => false), 'type' => 'file', 'multiple' => true )); ?>
Form->input('malware', array( 'type' => 'checkbox', 'checked' => false, 'data-content' => isset($attrDescriptions['signature']['formdesc']) ? $attrDescriptions['signature']['formdesc'] : $attrDescriptions['signature']['desc'], 'label' => 'IDS (encrypt and hash)', // 'after' => $this->Html->div('forminfo', 'Tick this box to neutralize the sample. Every malware sample will be zipped with the password "infected"', ''), //'after' => '
Tick this box to neutralize the sample. Every malware sample will be zipped with the password "infected"', )); // link an onchange event to the form elements $this->Js->get('#AttributeCategory')->event('change', 'malwareCheckboxSetter("#AttributeCategory")'); ?>
Form->button('Upload', array('class' => 'btn btn-primary')); echo $this->Form->end(); ?>
request->data['Attribute']['event_id']; $event['Event']['published'] = $published; echo $this->element('side_menu', array('menuList' => 'event', 'menuItem' => 'addAttachment', 'event' => $event)); ?> Js->writeBuffer(); // Write cached scripts