Exemple #1
0
            <?php 
}
?>
            <?php 
if ($Cargo->transport_type_id == '19' && $Cargo->transportation_type_id != null) {
    ?>
                <div class="row">
                    <section class="col-md-7">
                        <b><?php 
    echo $Cargo->getAttributeLabel('transportation_type_id');
    ?>
:</b>
                    </section>
                    <section class="col-md-5">
                        <?php 
    echo Cargo::getTransportationType()[$Cargo->transportation_type_id];
    ?>
                    </section>
                </div>
            <?php 
}
?>
            <?php 
if ($Cargo->transport_type_id == '19' && $Cargo->ADR != '0') {
    ?>
                <div class="row">
                    <section class="col-md-7">
                        <b><?php 
    echo Yii::t('CargoModule.default', 'Класс опасн. (ADR)');
    ?>
:</b>
Exemple #2
0
                    <div class="show-green">
                        <label class="control-label"><?php 
echo Yii::t('CargoModule.default', 'Тип вагона');
?>
</label>
                        <div class="zhdtransport">
                            <?php 
echo $form->checkboxListGroup($Cargo, 'zhd_transport', ['label' => '', 'widgetOptions' => ['data' => Cargo::getTypeTransportTrain()]]);
?>
                        </div>            
                    </div>                    
                </section>
                <section class="col-md-6 autotransport-zhd transport-type-row">
                    <div class="show-green">
                        <?php 
echo $form->dropDownListGroup($Cargo, 'transportation_type_id', ['widgetOptions' => ['data' => ['' => '---'] + Cargo::getTransportationType()]]);
?>
                    </div>                    
                </section>
            </div>                
        </section>
    </div>
    <div class="row">
        <section class="col-md-3 checkbox-list-bg show-green">
            <div class="autotransport">
                <?php 
echo $form->checkboxListGroup($Cargo, 'body', ['widgetOptions' => ['data' => Cargo::getBodyType()]]);
?>
            </div>            
        </section>
        <section class="col-md-3 checkbox-list-bg show-green">