public function getFormFields()
{
$flds = array();
// priority and notes are reserved fields and so get additional _ prefix for the field name
if ($this->is_initial) {
$flds[] = array('id' => '_priority', 'form_name' => self::$FIELD_PREFIX . '_priority', 'required' => $this->getQueueSet()->allow_null_priority ? false : true, 'choices' => \CHtml::listData(Priority::model()->findAll(), 'id', 'name'), 'label' => 'Priority');
}
$flds[] = array('id' => '_notes', 'form_name' => self::$FIELD_PREFIX . '_notes', 'required' => false, 'type' => 'textarea', 'label' => 'Notes');
return array_merge($flds, $this->getAssignmentFieldDefinitions());
}