protected function registerClickFlowScript()
 {
     Yii::app()->clientScript->registerScript('clickflow', "\n                \$('#" . ModuleForReportWizardView::getPreviousPageLinkId() . "').unbind('click');\n                \$('#" . ModuleForReportWizardView::getPreviousPageLinkId() . "').bind('click', function()\n                    {\n                        url = document.referrer;\n                        window.location.href = url;\n                        return false;\n                    }\n                );\n                \$('#" . FiltersForReportWizardView::getPreviousPageLinkId() . "').unbind('click');\n                \$('#" . FiltersForReportWizardView::getPreviousPageLinkId() . "').bind('click', function()\n                    {\n                        \$('#" . static::getValidationScenarioInputId() . "').val('" . ReportWizardForm::MODULE_VALIDATION_SCENARIO . "');\n                        \$('#" . WizardActiveForm::makeErrorsSummaryId(static::getFormId()) . "').hide();\n                        \$('#ModuleForReportWizardView').show();\n                        \$('#FiltersForReportWizardView').hide();\n                        \$('.StepsAndProgressBarForWizardView').find('.progress-bar').width('20%');\n                        \$('.StepsAndProgressBarForWizardView').find('.current-step').removeClass('current-step').prev().addClass('current-step');\n                        return false;\n                    }\n                );\n                \$('#" . DisplayAttributesForReportWizardView::getPreviousPageLinkId() . "').unbind('click');\n                \$('#" . DisplayAttributesForReportWizardView::getPreviousPageLinkId() . "').bind('click', function()\n                    {\n                        \$('#" . static::getValidationScenarioInputId() . "').val('" . ReportWizardForm::FILTERS_VALIDATION_SCENARIO . "');\n                        \$('#FiltersForReportWizardView').show();\n                        \$('#DisplayAttributesForReportWizardView').hide();\n                        \$('.StepsAndProgressBarForWizardView').find('.progress-bar').width('40%');\n                        \$('.StepsAndProgressBarForWizardView').find('.current-step').removeClass('current-step').prev().addClass('current-step');\n                        return false;\n                    }\n                );\n                \$('#" . OrderBysForReportWizardView::getPreviousPageLinkId() . "').unbind('click');\n                \$('#" . OrderBysForReportWizardView::getPreviousPageLinkId() . "').bind('click', function()\n                    {\n                        \$('#" . static::getValidationScenarioInputId() . "').val('" . ReportWizardForm::DISPLAY_ATTRIBUTES_VALIDATION_SCENARIO . "');\n                        \$('#DisplayAttributesForReportWizardView').show();\n                        \$('#OrderBysForReportWizardView').hide();\n                        \$('.StepsAndProgressBarForWizardView').find('.progress-bar').width('60%');\n                        \$('.StepsAndProgressBarForWizardView').find('.current-step').removeClass('current-step').prev().addClass('current-step');\n                        return false;\n                    }\n                );\n                \$('#" . GeneralDataForReportWizardView::getPreviousPageLinkId() . "').unbind('click');\n                \$('#" . GeneralDataForReportWizardView::getPreviousPageLinkId() . "').bind('click', function()\n                    {\n                        \$('#" . static::getValidationScenarioInputId() . "').val('" . ReportWizardForm::ORDER_BYS_VALIDATION_SCENARIO . "');\n                        \$('#OrderBysForReportWizardView').show();\n                        \$('#GeneralDataForReportWizardView').hide();\n                        \$('.StepsAndProgressBarForWizardView').find('.progress-bar').width('80%');\n                        \$('.StepsAndProgressBarForWizardView').find('.current-step').removeClass('current-step').prev().addClass('current-step');\n                        return false;\n                    }\n                );\n            ");
 }
 protected function registerClickFlowScript()
 {
     Yii::app()->clientScript->registerScript('clickflow', "\n                \$('#" . ModuleForWorkflowWizardView::getPreviousPageLinkId() . "').unbind('click');\n                \$('#" . ModuleForWorkflowWizardView::getPreviousPageLinkId() . "').bind('click', function()\n                    {\n                        url = '" . Yii::app()->createUrl(static::getModuleId() . '/' . static::getControllerId() . '/index') . "';\n                        window.location.href = url;\n                        return false;\n                    }\n                );\n                \$('#" . TriggersForWorkflowWizardView::getPreviousPageLinkId() . "').unbind('click');\n                \$('#" . TriggersForWorkflowWizardView::getPreviousPageLinkId() . "').bind('click', function()\n                    {\n                        \$('#" . static::getValidationScenarioInputId() . "').val('" . WorkflowWizardForm::MODULE_VALIDATION_SCENARIO . "');\n                        \$('#" . WizardActiveForm::makeErrorsSummaryId(static::getFormId()) . "').hide();\n                        \$('#ModuleForWorkflowWizardView').show();\n                        \$('#TriggersForWorkflowWizardView').hide();\n                        \$('.StepsAndProgressBarForWizardView').find('.progress-bar').width('20%');\n                        \$('.StepsAndProgressBarForWizardView').find('.current-step').removeClass('current-step').prev().addClass('current-step');\n                        return false;\n                    }\n                );\n                \$('#" . ActionsForWorkflowWizardView::getPreviousPageLinkId() . "').unbind('click');\n                \$('#" . ActionsForWorkflowWizardView::getPreviousPageLinkId() . "').bind('click', function()\n                    {\n                        \$('#" . static::getValidationScenarioInputId() . "').val('" . WorkflowWizardForm::TRIGGERS_VALIDATION_SCENARIO . "');\n                        \$('#TriggersForWorkflowWizardView').show();\n                        \$('#ActionsForWorkflowWizardView').hide();\n                        \$('.StepsAndProgressBarForWizardView').find('.progress-bar').width('40%');\n                        \$('.StepsAndProgressBarForWizardView').find('.current-step').removeClass('current-step').prev().addClass('current-step');\n                        return false;\n                    }\n                );\n                \$('#" . EmailMessagesForWorkflowWizardView::getPreviousPageLinkId() . "').unbind('click');\n                \$('#" . EmailMessagesForWorkflowWizardView::getPreviousPageLinkId() . "').bind('click', function()\n                    {\n                        \$('#" . static::getValidationScenarioInputId() . "').val('" . WorkflowWizardForm::ACTIONS_VALIDATION_SCENARIO . "');\n                        \$('#ActionsForWorkflowWizardView').show();\n                        \$('#EmailMessagesForWorkflowWizardView').hide();\n                        \$('.StepsAndProgressBarForWizardView').find('.progress-bar').width('60%');\n                        \$('.StepsAndProgressBarForWizardView').find('.current-step').removeClass('current-step').prev().addClass('current-step');\n                        return false;\n                    }\n                );\n                \$('#" . GeneralDataForWorkflowWizardView::getPreviousPageLinkId() . "').unbind('click');\n                \$('#" . GeneralDataForWorkflowWizardView::getPreviousPageLinkId() . "').bind('click', function()\n                    {\n                        \$('#" . static::getValidationScenarioInputId() . "').val('" . WorkflowWizardForm::EMAIL_MESSAGES_VALIDATION_SCENARIO . "');\n                        \$('#EmailMessagesForWorkflowWizardView').show();\n                        \$('#GeneralDataForWorkflowWizardView').hide();\n                        \$('.StepsAndProgressBarForWizardView').find('.progress-bar').width('80%');\n                        \$('.StepsAndProgressBarForWizardView').find('.current-step').removeClass('current-step').prev().addClass('current-step');\n                        return false;\n                    }\n                );\n            ");
 }
 /**
  * Resolve any special client options
  * @return array
  */
 protected function resolveFormClientOptions()
 {
     return array('beforeValidate' => 'js:$(this).beforeValidateAction', 'afterValidate' => 'js:$(this).afterValidateAjaxAction', 'afterValidateAjax' => $this->renderConfigSaveAjax(), 'summaryID' => WizardActiveForm::makeErrorsSummaryId($this->resolveFormId()), 'validateOnSubmit' => true, 'validateOnChange' => false);
 }