Exemple #1
0
						<?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', 'Дополнительная информация');
?>
Exemple #2
0
?>
</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 
Exemple #3
0
							<?php 
echo $form->error($model, 'city_id', array('class' => 'help-inline'));
?>
						</div>
					</div>
					<?php 
$this->endWidget();
?>
					<div class="form-group"> 
						<?php 
echo $form->labelEx($model, 'war_type__id', array('class' => 'col-md-3 control-label'));
?>
						<div class="col-md-9">
							<div class="input-inline input-medium">
								<?php 
echo $form->dropDownList($model, 'war_type__id', WarWarehouse::allType($model->id), array('onChange' => 'isUser()', 'class' => 'form-control', 'id' => 'WarWarehouse_war_type__id'));
?>
							</div>
						
							<?php 
echo $form->error($model, 'war_type__id', array('class' => 'help-inline'));
?>
						</div>
					</div>
					<div class="form-group" id="users_tr"> 
						<?php 
echo $form->labelEx($model, 'users__id', array('class' => 'col-md-3 control-label'));
?>
						<div class="col-md-9">
							<div class="input-inline input-medium">
								<?php