?> </th> <th><?php echo CHtml::encode(WarWarehouseTypeLang::model()->getAttributeLabel('name')); ?> </th> <th><?php echo CHtml::encode(WarWarehouse::model()->getAttributeLabel('users__id')); ?> </th> <th><?php echo CHtml::encode(WarWarehouseLang::model()->getAttributeLabel('adress')); ?> </th> <th><?php echo CHtml::encode(WarWarehouse::model()->getAttributeLabel('created_at')); ?> </th> <th><?php echo Yii::t('app', 'Действия'); ?> </th> </tr> </thead> <tbody> <?php if (empty($data)) { ?> <tr> <td colspan="12" style="text-align: center;"><?php
<?php if (isset($wh_list)) { ?> <div class="warehouses"> <h4><?php echo Yii::t('app', 'Выберите склад'); ?> </h4> <?php $model = new WarWarehouse(); $data = CHtml::listData($wh_list, 'id', function ($model) { //passing the anonymous function as a parameter. return WarWarehouse::model()->findByPk($model->id)->lang->name; }); echo CHtml::activeDropDownList($horder, 'war_warehouse__id', $data); ?> </div> <?php } ?> </div> </div> <hr /> <h4><?php echo Yii::t('app', 'Дополнительная информация'); ?>