?> :</b> </section> <section class="col-md-7"> <?php echo is_object($Cargo->name) ? $Cargo->name->name : Yii::t('CargoModule.default', 'Не задано'); ?> </section> </div> <div class="row"> <section class="col-md-5"> <b><?php echo $Cargo->getAttributeLabel('weight'); ?> , <?php echo Cargo::enumWeight($Cargo->weight_unit); ?> :</b> </section> <section class="col-md-7"> <?php echo $Cargo->weight; ?> </section> </div> <div class="row"> <section class="col-md-5"> <b><?php echo $Cargo->getAttributeLabel('volume'); ?> :</b>
</section> <section class="col-md-3"> <?php echo $form->textFieldGroup($Cargo, 'weight'); ?> <div class="input-group-btn radius weight-unit"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><?php echo Cargo::enumWeight(Cargo::WEIGHT_KG); ?> <span class="caret"></span></button> <ul class="dropdown-menu dropdown-menu-right"> <?php foreach (Cargo::enumWeight() as $value => $text) { ?> <li> <a data-value="<?php echo $value; ?> "><?php echo $text; ?> </a> </li> <?php } ?> </ul> </div>
echo $data->cargo_id; ?> '"> <td> <?php if (!empty($data->transport_type)) { echo $data->transport_type->name; } else { echo Yii::t('CargoModule.default', 'Запрос'); } ?> </td> <td> <?php echo $data->weight; echo Cargo::enumWeight($data->weight_unit); ?> /<?php echo $data->volume; echo Yii::t('CargoModule.default', 'м3'); ?> <br /> <?php echo isset($data->name->name) ? $data->name->name : Yii::t('CargoModule.default', 'Не задано'); ?> </td> <td class="load-unload-date"> <?php if (!empty($data->when_from) && $data->when_from != '0000-00-00') { ?> <?php
echo Yii::t('ReisModule.default', 'от'); ?> <?php if ($data->weight_from) { echo $data->weight_from . ' ' . Cargo::enumWeight($data->weight_from_unit); } else { echo Yii::t('ReisModule.default', '---'); } ?> <br> <?php echo Yii::t('ReisModule.default', 'до'); ?> <?php if ($data->weight_to) { echo $data->weight_to . ' ' . Cargo::enumWeight($data->weight_to_unit); } else { echo Yii::t('ReisModule.default', '---'); } ?> </td> <td> <?php echo Yii::t('ReisModule.default', 'от'); ?> <?php if ($data->volume_from) { echo $data->volume_from; } else { echo Yii::t('ReisModule.default', '---'); }
if ($Reis->weight_from) { echo $Reis->weight_from . ' ' . Cargo::enumWeight($Reis->weight_from_unit); } else { echo Yii::t('ReisModule.default', '---'); } ?> </section> <section class="col-sm-6"> <b><?php echo Yii::t('ReisModule.default', 'Тоннаж до'); ?> :</b> </section> <section class="col-sm-6"><?php if ($Reis->weight_to) { echo $Reis->weight_to . ' ' . Cargo::enumWeight($Reis->weight_to_unit); } else { echo Yii::t('ReisModule.default', '---'); } ?> </section> <section class="col-sm-6"> <b><?php echo Yii::t('ReisModule.default', 'Объем от,м3'); ?> :</b> </section> <section class="col-sm-6"><?php if ($Reis->volume_from) { echo $Reis->volume_from;