39 public function getActionType()
41 if (!empty($this->modelId) && $this->modelId > 0)
51 protected function resolveHtmlOptionsForRendering()
53 $htmlOptions = $this->getHtmlOptions();
54 return CMap::mergeArray($htmlOptions, array(
'class' =>
'cancel-button'));
57 protected function getDefaultLabel()
59 return Zurmo::t(
'Core',
'Cancel');
62 protected function getDefaultRoute()
64 if (Yii::app()->controller->action->id ==
'copy')
66 $getData = GetUtil::getData();
67 return Yii::app()->createUrl($this->moduleId .
'/' . $this->controllerId .
'/details/', array(
'id' => $getData[
'id']));
69 elseif (Yii::app()->request->getParam(
'redirectUrl') != null)
71 return Yii::app()->request->getParam(
'redirectUrl');
73 elseif (!empty($this->modelId) && $this->modelId > 0)
75 return Yii::app()->createUrl($this->moduleId .
'/' . $this->controllerId .
'/details/', array(
'id' => $this->modelId));
79 return Yii::app()->createUrl($this->moduleId .
'/' . $this->controllerId);