Esempio n. 1
0
                <section class="col-md-7">
                    <?php 
echo $Cargo->height == null ? '-' : $Cargo->height;
?>
                </section>
            </div>
            <div class="row">
                <section class="col-md-5">
                    <b><?php 
echo $Cargo->getAttributeLabel('packing_id');
?>
:</b>
                </section>
                <section class="col-md-7 bold-font">
                    <?php 
echo $Cargo->packing_id == '0' ? Yii::t('CargoModule.default', 'Нет') : Cargo::getPacking()[$Cargo->packing_id];
?>
                </section>
            </div>
            <?php 
if (!empty($Cargo->body[0])) {
    ?>
            <div class="row">
                <section class="col-md-5">
                    <b><?php 
    echo $Cargo->getAttributeLabel('body');
    ?>
:</b>
                </section>
                <section class="col-md-7">
                    <?php 
Esempio n. 2
0
            <?php 
echo $form->hiddenField($Cargo, 'weight_unit');
?>
        </section>
		<section class="col-md-3">
            <?php 
echo $form->textFieldGroup($Cargo, 'volume');
?>
        </section>
    </div>    
    <div class="row show-green">
        <section class="col-md-6">
            <div class="row">
                <section class="col-md-6">
                    <?php 
echo $form->dropDownListGroup($Cargo, 'packing_id', ['widgetOptions' => ['data' => ['' => '---'] + Cargo::getPacking()]]);
?>
                </section>
                <section class="col-md-6 autotransport">
                    <?php 
$adr = [];
$adr[0] = Yii::t('CargoModule.default', 'Все');
for ($i = 1; $i < 10; ++$i) {
    $adr[$i] = $i;
}
echo $form->dropDownListGroup($Cargo, 'ADR', ['widgetOptions' => ['data' => ['' => Yii::t('CargoModule.default', 'Нет')] + $adr]]);
?>
                </section>
                <section class="col-md-6 not-autotransport">
                    <?php 
echo $form->textFieldGroup($Cargo, 'un_number');