protected function registerScripts() { parent::registerScripts(); Yii::app()->getClientScript()->registerCoreScript('treeview'); Yii::app()->clientScript->registerScriptFile(Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('application.modules.reports.views.assets')) . '/ReportUtils.js'); $this->registerClickFlowScript(); $this->registerModuleClassNameChangeScript(); }
protected function registerScripts() { parent::registerScripts(); Yii::app()->getClientScript()->registerCoreScript('treeview'); Yii::app()->clientScript->registerScriptFile(Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('application.modules.workflows.views.assets')) . '/WorkflowUtils.js'); Yii::app()->clientScript->registerScriptFile(Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('application.core.elements.assets')) . '/SelectInputUtils.js', CClientScript::POS_END); $this->registerClickFlowScript(); $this->registerModuleClassNameChangeScript(); }
/** * @return string */ public static function getFormId() { return WizardView::getFormId(); }
function WizardStepFive($actionInfo, $request) { $this->Action($actionInfo, $request); $this->registerFieldValidator("blogName", new StringValidator()); $this->registerFieldValidator("ownerid", new IntegerValidator()); $this->registerFieldValidator("blogTemplate", new StringValidator()); $this->registerFieldValidator("blogLocale", new StringValidator()); $view = new WizardView("step4"); $view->setErrorMessage("Some data is missing or incorrect"); $view->setValue("siteLocales", Locales::getLocales()); $ts = new TemplateSets(); $view->setValue("siteTemplates", $ts->getGlobalTemplateSets()); $this->setValidationErrorView($view); }
protected function renderAfterFormContent() { $content = parent::renderAfterFormContent(); return $content . $this->renderElementEditContainerAndContent(); }