modelClass} \$model * @var {$this->i18nModelClass}[] \$i18nModels */ ?> EOD; ?> beginWidget('BHorizontalForm', array( 'id'=>'" . $this->class2id($this->modelClass) . "-form', 'enableAjaxValidation'=>false, 'htmlOptions' => array( 'enctype' => 'multipart/form-data', ), )); ?>\n"; ?> tableSchema->columns as $column) { if ($column->autoIncrement) continue; echo "
hasErrors('{$column->name}') ? ' error' : '') ?>\">\n"; echo " label(\$model, '{$column->name}', array('class' => 'control-label'))?>\n"; echo "
\n"; echo " generateActiveField($this->modelClass, $column) . "; ?>\n"; echo " error(\$model,'{$column->name}'); ?>\n"; echo "
\n"; echo "
\n\n"; } echo <<beginWidget('BTabs'); foreach (\$i18nModels as \$lang => \$i18nModel): ?> beginTab(Yii::app()->params['languageNames'][\$lang]) ?> EOD; foreach ($this->i18nTableSchema->columns as $column) { if ($column->autoIncrement || $column->name == 'lang' || $column->name == $this->tableSchema->primaryKey) continue; echo "
hasErrors('{$column->name}') ? ' error' : '') ?>\">\n"; echo " label(\$i18nModel, '{$column->name}', array('class' => 'control-label'))?>\n"; echo "
\n"; echo " generateI18dActiveField($this->i18nModelClass, $column) . "; ?>\n"; echo " error(\$i18nModel,'{$column->name}'); ?>\n"; echo "
\n"; echo "
\n\n"; } echo <<endTab() ?> endWidget(); ?> EOD; ?>
endWidget(); ?>\n"; ?>