Form->create('Attribute');?>
Form->hidden('event_id'); echo $this->Form->input('category', array( 'empty' => '(choose one)' )); echo $this->Form->input('type', array( 'empty' => '(first choose category)' )); if ('true' == Configure::read('CyDefSIG.sync')) { echo $this->Form->input('distribution', array( 'label' => 'Distribution', 'selected' => $maxDist, )); } echo $this->Form->input('value', array( 'type' => 'textarea', 'error' => array('escape' => false), 'div' => 'input clear', 'class' => 'input-xxlarge' )); ?>
Form->input('to_ids', array( 'checked' => true, 'data-content' => isset($attrDescriptions['signature']['formdesc']) ? $attrDescriptions['signature']['formdesc'] : $attrDescriptions['signature']['desc'], 'label' => 'IDS Signature?', )); 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")'); ?>
Form->button('Submit', array('class' => 'btn btn-primary')); echo $this->Form->end(); ?>
Js->writeBuffer(); // Write cached scripts