public function actionUpdateQueue($id)
{
if (!($queue = models\Queue::model()->findByPk($id))) {
throw new \CHttpException(404, "Queue not found with id {$id}");
}
if (!empty($_POST)) {
$this->saveQueue($queue);
} else {
$this->renderPartial('form_queue', array('parent' => null, 'queue' => $queue, 'errors' => null));
}
}