<?php /* *EDITOR DE SUBZONA */ ?> <div class='controles'> <h2>Editor de subzona.</h2> <?php echo TbHtml::dropDownList('SubzonaId', $subzona->SubzonaId, TbHtml::listData($subzona->hermanas, 'SubzonaId', 'nombre'), array('class' => 'input-medium panel-head')); ?> <br /> <?php echo TbHtml::buttonGroup(array(array('title' => 'Alinear todo a la izquierda', 'class' => 'fa fa-align-left fa-3x btn btn-large btn-alinear', 'url' => array('alinearSubzona', 'EventoId' => $subzona->EventoId, 'FuncionesId' => $subzona->FuncionesId, 'ZonasId' => $subzona->ZonasId, 'SubzonaId' => $subzona->SubzonaId, 'direccion' => 'izquierda')), array('title' => 'Alinear todo al centro', 'class' => 'fa fa-align-center fa-3x btn btn-large btn-alinear', 'url' => array('alinearSubzona', 'EventoId' => $subzona->EventoId, 'FuncionesId' => $subzona->FuncionesId, 'ZonasId' => $subzona->ZonasId, 'SubzonaId' => $subzona->SubzonaId, 'direccion' => 'centro')), array('title' => 'Alinear todo a la derecha', 'class' => 'fa fa-align-right fa-3x btn btn-large btn-alinear', 'url' => array('alinearSubzona', 'EventoId' => $subzona->EventoId, 'FuncionesId' => $subzona->FuncionesId, 'ZonasId' => $subzona->ZonasId, 'SubzonaId' => $subzona->SubzonaId, 'direccion' => 'derecha'))), array('vertical' => false)); ?> <br /> <?php echo TbHtml::link(' Regresar', array('editor', 'EventoId' => $subzona->EventoId, 'FuncionesId' => $subzona->FuncionesId, 'scenario' => 'editar', '#' => 'zona-' . $subzona->ZonasId), array('class' => 'btn fa fa-arrow-left', 'style' => 'margin:10px')); ?> </div> <div id='area-subzona'> <?php $this->renderPartial('_subzona', compact('subzona')); ?> </div> <br /> <style type="text/css" media="screen"> table{background:#eeD} th,td{margin:5px;padding:5px !important;}
<br><br/> <?php $this->widget('bootstrap.widgets.TbGridView', array( 'id' => 'eams-framework-grid', 'type' => TbHtml::GRID_TYPE_BORDERED, 'dataProvider' => $dataProvider, 'columns' => array( array( 'header' => '#', 'value' => '$this->grid->dataProvider->pagination->currentPage * $this->grid->dataProvider->pagination->pageSize + ($row+1)', ), array( 'type' => 'html', 'name' => 'framework_description', 'value' => 'TbHtml::link($data->framework_description,Yii::app()->createUrl("/eamsFramework/admin",array("parent_id"=>$data->parent_id)))' ), array( 'name' => 'type_id', 'value' => '$data->type->description', 'filter' => TbHtml::listData(EamsFrameworkType::model()->findAll(), "id", "description") ), // 'parent_id', 'guid', array( 'class' => 'bootstrap.widgets.TbButtonColumn', ), ), )); ?>
<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array( 'id'=>'meac-office-form', // Please note: When you enable ajax validation, make sure the corresponding // controller action is handling ajax validation correctly. // There is a call to performAjaxValidation() commented in generated controller code. // See class documentation of CActiveForm for details on this. 'enableAjaxValidation'=>false, )); ?> <p class="help-block">Fields with <span class="required">*</span> are required.</p> <?php echo $form->errorSummary($model); ?> <?php echo $form->textFieldControlGroup($model,'description',array('span'=>5,'maxlength'=>255)); ?> <?php echo $form->textFieldControlGroup($model,'abbrev',array('span'=>5,'maxlength'=>20)); ?> <?php echo $form->dropDownListControlGroup($model,'parent_id',TbHtml::listData(MeacOffice::model()->findAll(),'id','description'),array('prompt'=>'--select--','span'=>5)); ?> <?php echo $form->checkBoxControlGroup($model,'active',array('span'=>5)); ?> <div class="form-actions"> <?php echo TbHtml::submitButton($model->isNewRecord ? 'Create' : 'Save',array( 'color'=>TbHtml::BUTTON_COLOR_SUCCESS, 'size'=>TbHtml::BUTTON_SIZE_DEFAULT, )); ?> </div> <?php $this->endWidget(); ?> </div><!-- form -->
)); ?> <p class="help-block">Fields with <span class="required">*</span> are required.</p> <?php echo $form->errorSummary($model); ?> <?php echo $form->textFieldControlGroup($model,'description',array('span'=>5,'maxlength'=>255)); ?> <?php echo $form->textAreaControlGroup($model,'definition',array('rows'=>6,'span'=>8)); ?> <?php echo $form->textAreaControlGroup($model,'interpretation',array('rows'=>6,'span'=>8)); ?> <?php echo $form->textFieldControlGroup($model,'guid',array('span'=>5,'maxlength'=>7)); ?> <?php echo $form->dropDownListControlGroup($model, 'frequency', TbHtml::listData(Frequency::model()->findAll(),'id','description'));?> <?php echo $form->dropDownListControlGroup($model, 'indicatorUnit', TbHtml::listData(IndicatorUnit::model()->findAll(),'id','abbrev'));?> <?php echo $form->dropDownListControlGroup($model, 'indicatorDataSource', TbHtml::listData(IndicatorDataSource::model()->findAll(),'id','description'));?> <div class="form-actions"> <?php echo TbHtml::submitButton($model->isNewRecord ? 'Create' : 'Save',array( 'color'=>TbHtml::BUTTON_COLOR_PRIMARY, 'size'=>TbHtml::BUTTON_SIZE_DEFAULT, )); ?> </div> <?php $this->endWidget(); ?> </div><!-- form -->
/* @var $model Ban */ /* @var $form CActiveForm */ ?> <div class="wide form"> <?php $form = $this->beginWidget('CActiveForm', array('action' => Yii::app()->createUrl($this->route), 'method' => 'get')); ?> <div class="row"> <?php echo $form->labelEx($model, 'POSISI_BAN'); ?> <?php $data = TbHtml::listData(PosisiBan::model()->findAll(), 'ID_POSISI', 'POSISI'); echo $form->dropDownList($model, 'ID_POSISI', $data, array('empty' => 'Pilih Posisi Ban')); ?> <?php echo $form->error($model, 'ID_POSISI'); ?> </div> <div class="row"> <?php echo $form->label($model, 'NOMOR_SERI'); ?> <?php echo $form->textField($model, 'NOMOR_SERI', array('size' => 20, 'maxlength' => 20)); ?> </div>
<?php echo $form->textFieldControlGroup($model,'last_name',array('span'=>5,'maxlength'=>100)); ?> <?php echo $form->radioButtonListControlGroup($model,'sex',array('M'=>'Male','F'=>'Female')); ?> <?php echo $form->textFieldControlGroup($model,'email',array('span'=>5,'maxlength'=>100)); ?> <?php echo $form->textFieldControlGroup($model,'phone'); ?> <table style="background-color:#F6F6F6;"> <tr> <td> <?php echo $form->checkBoxControlGroup($model, 'is_mda'); ?> <span class="hint"><i>Tick to select an MDA for the user account</i></span> </td> <td id="meac_office_field" style="<?php echo !$model->is_mda ? 'display:block':'display:none'?>"><?php echo $form->dropDownListControlGroup($model, 'meac_office_id', TbHtml::listData(MeacOffice::model()->findAll(),'id','description'),array('prompt'=>'--select--')); ?></td> <td id="mda_field" style="<?php echo $model->is_mda ? 'display:block':'display:none'?>"><?php echo $form->dropDownListControlGroup($model, 'mda_id', TbHtml::listData(Mda::model()->findAll(),'id','description'),array('prompt'=>'--select--')); ?></td> </tr> </table> <?php echo $form->checkBoxControlGroup($model,'active',array('span'=>5)); ?> <div class="form-actions"> <?php echo TbHtml::submitButton($model->isNewRecord ? 'Create' : 'Save',array( 'color'=>TbHtml::BUTTON_COLOR_PRIMARY, 'size'=>TbHtml::BUTTON_SIZE_DEFAULT, )); ?> </div>
<?php $this->widget('bootstrap.widgets.TbGridView',array( 'id'=>'eams-files-import-grid', 'dataProvider'=>$model->search(), 'filter'=>$model, 'columns'=>array( //'id', array( 'header' => '#', 'value' => '$this->grid->dataProvider->pagination->currentPage * $this->grid->dataProvider->pagination->pageSize + ($row+1)', ), 'name', //'mime_type', //'file_extension', //'file_size', array( 'header'=>'Status', 'name'=>'archived', 'value'=>'$data->archived ? "ARCHIVED":"PENDING"', 'filter' => TbHtml::listData([['id'=>0,'description'=>'PENDING'],['id'=>1,'description'=>'ARCHIVED']], "id", "description") ), 'date_created', /* 'date_updated', */ array( 'class'=>'bootstrap.widgets.TbButtonColumn', 'template'=>'{view}' ), ), )); ?>
<div class="row"> <span class="span2"> <?php $this->widget('yiiwheels.widgets.select2.WhSelect2', array('asDropDownList' => true, 'name' => 'optvalsearch', 'model' => new Option(), 'attribute' => 'name', 'htmlOptions' => array('id' => 'optSelect'), 'data' => TbHtml::listData(Option::model()->findAll(), 'id', function ($data) { return $data->getName(); }), 'pluginOptions' => array('placeholder' => 'Enter Option', 'width' => '100%'))); ?> </span> <span class="span2"><?php echo TbHtml::button(Yii::t('label', 'Add Option'), array('class' => 'add-opt', 'color' => TbHtml::BUTTON_COLOR_PRIMARY)); ?> </span> </div> <div id="copyGrid" class="row hide"> <?php $this->widget('bootstrap.widgets.TbGridView', array('type' => array(TbHtml::GRID_TYPE_STRIPED, TbHtml::GRID_TYPE_BORDERED, TbHtml::GRID_TYPE_CONDENSED), 'dataProvider' => new CArrayDataProvider(array()), 'columns' => array('id', array('name' => 'option_value_id', 'header' => Yii::t('label', 'Option Value')), array('name' => 'quantity', 'header' => Yii::t('label', 'Quantity')), array('name' => 'subtract', 'header' => Yii::t('label', 'Subtract')), array('name' => 'price_prefix', 'header' => Yii::t('label', 'Price Operator')), array('name' => 'price', 'header' => Yii::t('label', 'Price')), array('name' => 'weight_prefix', 'header' => Yii::t('label', 'Weight Operator')), array('name' => 'weight', 'header' => Yii::t('label', 'Weight')), array('class' => 'bootstrap.widgets.TbButtonColumn', 'htmlOptions' => array('style' => 'width: 20px'), 'buttons' => array('delete' => array('label' => Yii::t('label', 'Delete'), 'options' => array("class" => "doptval", 'title' => Yii::t('label', 'Delete')))), 'template' => ' {delete}')))); ?> <div class="row"><span class="span2 offset7"><?php echo TbHtml::button(Yii::t('label', 'Add Option Value'), array('class' => 'add-opval', 'color' => TbHtml::BUTTON_COLOR_PRIMARY)); ?> </span></div> </div> <div class="row optiontype hide"><?php echo TbHtml::dropDownList('option_type', '', TbHtml::listData(Option::model()->findAll(), 'id', 'type'), array('id' => 'option_type_list')); ?> </div> <?php $this->endWidget(); ?> <br/> <br/>
<div class="form"> <?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array( 'id'=>'eac-status-log-form', // Please note: When you enable ajax validation, make sure the corresponding // controller action is handling ajax validation correctly. // There is a call to performAjaxValidation() commented in generated controller code. // See class documentation of CActiveForm for details on this. 'enableAjaxValidation'=>false, )); ?> <?php echo $form->errorSummary($model); ?> <?php echo $form->dropDownListControlGroup($model,'status_id',TbHtml::listData(EacLookup::model()->findAll('type=:type',array(':type'=> EacLookup::IMPLEMENTATION_STATUS)),"id","description"), array( 'empty'=>'--select--' )); ?> <?php echo $form->textAreaControlGroup($model,'status_narrative',array('rows'=>6,'span'=>8)); ?> <?php echo $form->textAreaControlGroup($model,'remarks',array('rows'=>6,'span'=>8)); ?> <div class="form-actions"> <?php echo TbHtml::submitButton($model->isNewRecord ? 'Submit' : 'Save',array( 'color'=>TbHtml::BUTTON_COLOR_SUCCESS, 'size'=>TbHtml::BUTTON_SIZE_DEFAULT, )); ?> </div> <?php $this->endWidget(); ?>
), 'sex', 'email', 'phone', array( 'name'=>'meac_office_id', 'value'=>'!is_null($data->meacOffice)?$data->meacOffice->description:""', 'filter'=>TbHtml::listData(MeacOffice::model()->findAll(),"id","description") ), array( 'name'=>'mda_id', 'value'=>'!is_null($data->mda)?$data->mda->description:""', 'filter'=>TbHtml::listData(Mda::model()->findAll(),"id","description") ), array( 'name'=>'is_mda', 'value'=>'$data->is_mda?"Yes":"No"' ), array( 'class' => 'editable.EditableColumn', 'name' => 'active', 'value'=>'$data->active?"Yes":"No"', 'editable' => array( 'type' => 'select', 'url' => $this->createUrl('user/ajaxUpdate'), 'source'=>array(0=>'Inactive',1=>'Active'), 'placement'=>'right',
?> </a></div></div> <?php } } ?> </div> <div class="clearfix"></div> </div><!-- row --> <div class="row"> <?php echo $form->labelEx($model, 'parent_id'); ?> <?php echo $form->dropDownList($model, 'parent_id', TbHtml::listData(Category::model()->with('categoryDescriptions')->findAll(array('order' => 'categoryDescriptions.name')), 'id', function ($data) { return CHtml::encode($data->getName()); }), array('empty' => '--Parent Category--')); ?> <?php echo $form->error($model, 'parent_id'); ?> </div><!-- row --> <div class="row"> <?php echo $form->labelEx($model, 'top'); ?> <?php $this->widget('yiiwheels.widgets.switch.WhSwitch', array('attribute' => 'top', 'model' => $model, 'onColor' => 'success', 'offColor' => 'danger', 'onLabel' => Yii::t('label', 'ON'), 'offLabel' => Yii::t('label', 'OFF'), 'size' => null)); ?> <?php
<div class="row-fluid"> <?php $this->widget('bootstrap.widgets.TbGridView', array('id' => 'order-product-grid', 'type' => array(TbHtml::GRID_TYPE_STRIPED, TbHtml::GRID_TYPE_BORDERED, TbHtml::GRID_TYPE_CONDENSED), 'dataProvider' => new CArrayDataProvider($orderproduct), 'columns' => array(array('name' => 'name', 'header' => Yii::t('label', 'Product')), array('name' => 'model', 'header' => Yii::t('label', 'Model')), array('header' => Yii::t('label', 'Options'), 'value' => array($this, 'optionDataColumn')), array('name' => 'quantity', 'header' => Yii::t('label', 'Quantity')), array('name' => 'price', 'header' => Yii::t('label', 'Price')), array('name' => 'total', 'header' => Yii::t('label', 'Total')), array('class' => 'bootstrap.widgets.TbButtonColumn', 'htmlOptions' => array('style' => 'width: 20px'), 'buttons' => array('delete' => array('label' => Yii::t('label', 'Delete'), 'options' => array("class" => "dorderline", 'title' => Yii::t('label', 'Delete')))), 'template' => ' {delete}')))); ?> </div> <div class="row-fluid"> <div class="span7"> <div class="row-fluid select-product"> <span class="span3"><?php echo CHtml::label(Yii::t('label', 'Choose Product'), 'productSelect'); ?> </span> <span class="span5"> <?php $this->widget('yiiwheels.widgets.select2.WhSelect2', array('asDropDownList' => true, 'name' => 'OrderProduct[id]', 'htmlOptions' => array('id' => 'productSelect'), 'data' => TbHtml::listData(Product::model()->findAll(), 'id', function ($data) { return $data->getName(); }), 'pluginOptions' => array('placeholder' => 'Select Product', 'width' => '100%'))); ?> </span> </div> <?php if (!empty($orderoption)) { $this->renderPartial('_product_option', array('options' => $orderoption, 'options' => $options), false, true); } ?> <div class="row-fluid"> <span class="span3"><?php echo CHtml::label(Yii::t('label', 'Quantity'), 'product-quantity'); ?> </span> <span class="span5"><?php
echo Yii::t('info', 'You may optionally enter a comparison operator (<, <=, >, >=, <> or =) at the beginning of each of your search values to specify how the comparison should be done.'); ?> </p> <?php echo TbHtml::linkButton(Yii::t('label', 'Advanced Search'), array('url' => '#', 'class' => 'search-button', 'color' => TbHtml::BUTTON_COLOR_PRIMARY)); ?> <div class="search-form hide"> <?php echo $this->renderPartial('_search', array('model' => $model)); ?> </div><!-- search-form --> <?php $this->widget('bootstrap.widgets.TbGridView', array('id' => 'order-grid', 'type' => array(TbHtml::GRID_TYPE_STRIPED, TbHtml::GRID_TYPE_BORDERED, TbHtml::GRID_TYPE_CONDENSED), 'dataProvider' => $model->search(), 'filter' => $model, 'rowCssClassExpression' => '"items[]_{$data->id}"', 'columns' => array(array('class' => 'CCheckBoxColumn', 'id' => 'check', 'selectableRows' => 2), 'id', array('name' => 'payment_method', 'type' => 'raw', 'value' => function ($data) { $pay = PaymentMethod::model()->findByPk($data->payment_method); $name = !empty($pay) ? $pay->getName() : null; return $name; }, 'filter' => CHtml::activeDropDownList($model, 'payment_method', TbHtml::listData(PaymentMethod::model()->findAll(), 'id', function ($data) { return $data->getName(); }), array('empty' => ''))), 'payment_code', 'store_name', 'firstname', 'lastname', 'email', 'telephone', array('name' => 'total', 'type' => 'raw', 'value' => 'UtilityHelper::formatPrice($data->total)'), array('name' => 'order_status_id', 'type' => 'raw', 'value' => '!empty($data->orderStatus)? TbHtml::encode($data->orderStatus->getName()) : null', 'filter' => CHtml::activeDropDownList($model, 'order_status_id', TbHtml::listData(OrderStatus::model()->findAll(), 'id', function ($data) { return $data->getName(); }), array('empty' => ''))), 'date_added', array('class' => 'bootstrap.widgets.TbButtonColumn', 'htmlOptions' => array('style' => 'width: 20px'), 'buttons' => array('delete' => array('label' => Yii::t('label', 'Delete'), 'options' => array("class" => "dlink", 'title' => Yii::t('label', 'Delete'))), 'update' => array('label' => Yii::t('label', 'Update'), 'options' => array("class" => "update vlink", 'title' => Yii::t('label', 'Update'))), 'view' => array('label' => Yii::t('label', 'View'), 'options' => array("class" => "view vlink", 'title' => Yii::t('label', 'View')))), 'template' => '{view} {update} {delete}')), 'afterAjaxUpdate' => 'js:reSortGrid')); ?> <div class="hlinks hide"> <div class="uid"></div> <div class="sortLink"><?php echo $this->createUrl('sort'); ?> </div> </div>
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl . '/js/jquery-ui.min.js', CClientScript::POS_HEAD); $this->widget('bootstrap.widgets.TbAlert'); $this->widget('bootstrap.widgets.TbGridView', array('id' => 'order-grid', 'type' => array(TbHtml::GRID_TYPE_STRIPED, TbHtml::GRID_TYPE_BORDERED, TbHtml::GRID_TYPE_CONDENSED), 'dataProvider' => $dataProvider, 'rowCssClassExpression' => '"items[]_{$data->id}"', 'columns' => array(array('class' => 'CCheckBoxColumn', 'id' => 'check', 'selectableRows' => 2), 'id', array('name' => 'payment_method', 'type' => 'raw', 'value' => function ($data) { $pay = PaymentMethod::model()->findByPk($data->payment_method); $name = !empty($pay) ? $pay->getName() : null; return $name; }, 'filter' => function ($data) { return CHtml::activeDropDownList($data, 'payment_method', TbHtml::listData(PaymentMethod::model()->findAll(), 'id', function ($data) { return $data->getName(); }), array('empty' => '')); }), 'payment_code', 'store_name', 'firstname', 'lastname', 'email', 'telephone', array('name' => 'total', 'type' => 'raw', 'value' => 'UtilityHelper::formatPrice($data->total)'), array('name' => 'order_status_id', 'type' => 'raw', 'value' => '!empty($data->orderStatus)? TbHtml::encode($data->orderStatus->getName()) : null'), 'date_added', array('class' => 'bootstrap.widgets.TbButtonColumn', 'htmlOptions' => array('style' => 'width: 40px'), 'buttons' => array('delete' => array('label' => Yii::t('label', 'Delete'), 'options' => array("class" => "dlink", 'title' => Yii::t('label', 'Delete'))), 'update' => array('label' => Yii::t('label', 'Update'), 'options' => array("class" => "update vlink", 'title' => Yii::t('label', 'Update'))), 'view' => array('label' => Yii::t('label', 'View'), 'options' => array("class" => "view vlink", 'title' => Yii::t('label', 'View')))), 'template' => '{view} {update} {delete}')), 'afterAjaxUpdate' => 'js:reSortGrid')); ?> <div class="hlinks hide"> <div class="uid"></div> <div class="sortLink"><?php echo $this->createUrl('sort'); ?> </div> </div>
array( 'type' => 'html', 'header' => 'Status', 'name' => 'implementation_status_id', 'value' => 'TbHtml::labelTb(" ", array("style"=>"width:100%;height:100%;background-color:{$data->getStatusColor($data)}","color" =>"{$data->getStatusColor($data)}"));' ), array( 'class' => 'editable.EditableColumn', 'header'=>'', 'htmlOptions' => array('style' =>$displayable), 'name' => 'responsible_mda_id', 'headerHtmlOptions' => array('style' => 'width: 100px;'.$displayable), 'filter' => TbHtml::listData(Mda::model()->findAll(), "id", "description"), 'editable' => array( 'type' => 'checklist', 'url' => $this->createUrl('eacDecision/ajaxUpdate'), 'source' => TbHtml::listData(Mda::model()->findAll(), 'id', 'description'), 'placement' => 'right', 'emptytext' => '<p class="btn btn-success">Select responsible MDA</p>' ) ), array( 'class' => 'bootstrap.widgets.TbButtonColumn', 'template' => $allowableActions, ), ), )); ?> </div>
<?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm',array( 'id'=>'upload_decisions-form', // Please note: When you enable ajax validation, make sure the corresponding // controller action is handling ajax validation correctly. // There is a call to performAjaxValidation() commented in generated controller code. // See class documentation of CActiveForm for details on this. 'enableAjaxValidation'=>false, 'htmlOptions'=>array( 'enctype'=>'multipart/form-data' ) ));?> <fieldset> <legend>Upload Decisions</legend> <?php if(Yii::app()->user->hasFlash('success')):?> <?php echo TbHtml::alert(TbHtml::ALERT_COLOR_SUCCESS, Yii::app()->user->getFlash('success'))?> <?php endif;?> <?php echo $form->errorSummary($model); ?> <?php echo $form->dropDownListControlGroup($model,'decision_source', TbHtml::listData(EacLookup::model()->findAll('type=:type',array(':type'=> EacLookup::DECISION_SOURCE)),"id","description"), array('prompt'=>'--select--')); ?> <?php echo $form->fileFieldControlGroup($model,'upload_file'); ?> <div class="form-actions"> <?php echo TbHtml::submitButton('Import Decisions',array( 'color'=>TbHtml::BUTTON_COLOR_SUCCESS, 'size'=>TbHtml::BUTTON_SIZE_DEFAULT, )); ?> </div> </fieldset> <?php $this->endWidget();?> </div>
echo $form->error($model, 'status'); ?> </div> <br/> <div class="row"> <?php //$gprofile = Profile::model()->with('groups')->findbyPk($model->id); ?> <?php echo $form->labelEx($profile, 'group_id'); ?> <?php echo TbHtml::activeListBox($profile, 'group_id', TbHtml::listData(Group::model()->findAll(), 'id', 'name'), array('multiple' => 'multiple')); ?> <?php echo $form->error($profile, 'group_id'); ?> </div> <br/> <?php $profileFields = ProfileField::model()->forOwner()->sort()->findAll(); if ($profileFields) { foreach ($profileFields as $field) { if ($field->varname == 'branch_id') { ?> <div class="row"> <?php echo $form->labelEx($profile, $field->varname);
?> <?php echo $form->textField($description, 'name', array('size' => 60, 'maxlength' => 64)); ?> <?php echo $form->error($description, 'name'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'attribute_group_id'); ?> <?php echo TbHtml::activeDropDownList($model, 'attribute_group_id', TbHtml::listData(AttributeGroup::model()->findAll(), 'id', function ($data) { return $data->getName(); })); ?> <?php echo $form->error($model, 'attribute_group_id'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'sort_order'); ?> <?php echo $form->textField($model, 'sort_order'); ?> <?php