element('genericElements/Form/genericForm', array( 'form' => $this->Form, 'data' => array( 'title' => __('Add Proposal'), 'model' => 'ShadowAttribute', 'fields' => array( array( 'field' => 'event_id', 'class' => 'org-id-picker-hidden-field', 'type' => 'text', 'hidden' => true ), array( 'field' => 'category', 'class' => 'input', 'empty' => __('(choose one)'), 'options' => $categories, 'stayInLine' => 1 ), array( 'field' => 'type', 'class' => 'input', 'empty' => __('(choose category first)'), 'options' => $types ), array( 'field'=> 'value', 'type' => 'textarea', 'class' => 'input span6', 'div' => 'input clear' ), array( 'field' => 'comment', 'type' => 'text', 'class' => 'input span6', 'div' => 'input clear', 'label' => __("Contextual Comment") ), array( 'field' => 'to_ids', 'type' => 'checkbox', 'label' => __("For Intrusion Detection System"), //'stayInLine' => 1 ), array( 'field' => 'batch_import', 'type' => 'checkbox' ), array( 'field' => 'first_seen', 'type' => 'text', 'hidden' => true ), array( 'field' => 'last_seen', 'type' => 'text', 'hidden' => true ), ), 'submit' => array( 'action' => 'add', 'text' => __('Propose'), 'ajaxSubmit' => sprintf( 'submitPopoverForm(%s, %s, 0, 1)', "'" . h($event_id) . "'", "'add'" ) ), 'metaFields' => array( '
' ) ) )); if (!$ajax) { $event = ['Event' => ['id' => $event_id ]]; echo $this->element('/genericElements/SideMenu/side_menu', array('menuList' => 'event', 'menuItem' => 'proposeAttribute', 'event' => $event)); } ?> element('form_seen_input'); ?> Js->writeBuffer(); // Write cached scripts