echo CHtml::link(tt('Please add the new category to the form editor', 'formeditor'), Yii::app()->createUrl('/referencecategories/backend/main/admin')); } ?> </div> <?php } else { echo '<br/>'; echo '<b>' . tt('The name of a field in a table', 'formeditor') . '</b>: ' . $model->field . ''; echo '<br/>'; echo '<b>' . $model->getAttributeLabel('type') . '</b>: ' . $model->getTypeName() . ''; echo '<br/>'; } $this->widget('application.modules.lang.components.langFieldWidget', array('model' => $model, 'field' => 'label', 'type' => 'string')); } echo $form->dropDownListRow($model, 'view_in', FormDesigner::getViewInList()); echo $form->dropDownListRow($model, 'rules', FormDesigner::getRulesList()); //echo $form->dropDownListRow($model, 'view_in', FormDesigner::getViewInList()); echo $form->checkBoxRow($model, 'visible'); echo $form->checkBoxListRow($model, 'objTypesArray', ApartmentObjType::getList()); $this->widget('application.modules.lang.components.langFieldWidget', array('model' => $model, 'field' => 'tip', 'type' => 'string')); echo '<div class="fields_for_search">'; echo '<h5>' . tt('For search') . '</h5>'; $this->widget('application.modules.lang.components.langFieldWidget', array('model' => $translate, 'field' => 'translation', 'type' => 'string')); echo $form->dropDownListRow($model, 'compare_type', FormDesigner::getCompareList()); echo '</div>'; ?> <div id="selMeasureUnitBox" style="display: none;"> <?php echo $form->textFieldRow($model, 'measure_unit'); ?>