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            ");
 }