Exemple #1
0
?>
        </section>
    </div>
    <?php 
$this->widget('application.components.placeautocomplite.PlaceAutocompliteWidget', array('class' => 'city_name'));
?>
    <?php 
$this->widget('application.components.rowset.RowsetWidget');
?>
    
    <div class="row mobile-cargo-type">
        <section class="col-md-6">
            <div class="row">
                <section class="col-md-12 transport-type">
                    <?php 
echo $form->dropDownListGroup($Cargo, 'transport_type_id', ['widgetOptions' => ['data' => ['' => Yii::t('CargoModule.default', 'Все')] + Cargo::getTransportType()]]);
?>
                </section>                
                <section class="col-md-6 autotransport transport-type-row">
                    <div class="show-green">
                        <?php 
echo $form->textFieldGroup($Cargo, 'cars_count');
?>
                    </div>
                </section>                                   
                <section class="col-md-6 zhdtransport transport-type-row">
                    <div class="show-green">
                        <?php 
echo $form->textFieldGroup($Cargo, 'wagons_count');
?>
                    </div>                    
Exemple #2
0
        </section>
        <section class="col-md-3">
            <h3><?php 
echo Yii::t('CargoModule.default', 'Транспорт');
?>
:</h3>            
            <div class="row">
                <section class="col-md-7">
                    <b><?php 
echo $Cargo->getAttributeLabel('transport_type_id');
?>
</b>
                </section>
                <section class="col-md-5">
                    <?php 
echo $Cargo->transport_type_id == '0' ? Yii::t('CargoModule.default', 'Все') : Cargo::getTransportType()[$Cargo->transport_type_id];
?>
                </section>
            </div>            
            <?php 
if (!empty($Cargo->body[0])) {
    ?>
            <div class="row">
                <section class="col-md-7">
                    <b><?php 
    echo $Cargo->getAttributeLabel('body');
    ?>
:</b>
                </section>
                <section class="col-md-5">
                    <?php 
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=places,drawing"></script>
<?php 
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', ['id' => 'search-cargo', 'enableAjaxValidation' => false, 'enableClientValidation' => true, 'type' => 'vertical']);
?>
<div class="row">
    <section class="col-md-12">
		<?php 
echo $form->textFieldGroup($Autosearch, 'name');
?>
    </section>
</div>
<div class="row">
	<section class="col-md-6">
		<?php 
echo $form->dropDownListGroup($CargoSearchForm, 'transport_type', ['widgetOptions' => ['data' => ['' => '---'] + Cargo::getTransportType()]]);
?>
	</section>
	<section class="col-md-6">
		<?php 
echo $form->dropDownListGroup($CargoSearchForm, 'name_id', ['widgetOptions' => ['data' => ['' => '---'] + Cargo::getNames()]]);
?>
	</section>
</div>
<div class="row">
	<section class="col-md-6">
		<h3><?php 
echo Yii::t('CargoModule.default', 'Загрузка');
?>
</h3>
	</section>
	<section class="col-md-6">