Exemplo n.º 1
0
echo $form->datePickerGroup($ReisSearchForm, 'when_to', ['widgetOptions' => ['options' => ['format' => 'yyyy-mm-dd', 'autoclose' => 'true'], 'events' => ['show' => 'js:function(e){
                                var date = new Date();
                                var year = date.getFullYear();
                                var month = date.getMonth() + 1;
                                var day = date.getDate();
                                $(this).val(year + "-" + month + "-" + day);
                            }']], 'append' => '<i class="glyphicon glyphicon-calendar"></i>']);
?>
			</section>


			<div id="transport_type_block">
				<div id="transport_type_block_auto" style="display:none">
					<section class="col-md-4 show-green">
						<?php 
echo $form->checkboxListGroup($ReisSearchForm, 'body_auto', ['widgetOptions' => ['data' => Reis::getBodyType(), 'htmlOptions' => []]]);
?>
					</section>
					<section class="col-md-4 show-green">
						<?php 
echo $form->checkboxListGroup($ReisSearchForm, 'load_type_auto', ['widgetOptions' => ['data' => Reis::getTypeLoadUnload(), 'htmlOptions' => []]]);
?>
					</section>
					<section class="col-md-4 show-green">
						<?php 
echo $form->checkboxListGroup($ReisSearchForm, 'unload_type_auto', ['widgetOptions' => ['data' => Reis::getTypeLoadUnload(), 'htmlOptions' => []]]);
?>
					</section>
				</div>
				<div id="transport_type_block_sea" style="display:none">
					<section class="col-md-4 show-green">
Exemplo n.º 2
0
        </section>
        <section class="col-sm-2">
            <?php 
echo $form->checkboxGroup($Reis, 'pneumatic');
?>
        </section>
        <section class="col-sm-2">
            <?php 
echo $form->checkboxGroup($Reis, 'conic');
?>
        </section>
    </div>
    <div class="row show-green">
        <section class="col-sm-3">
        <?php 
echo $form->checkboxListGroup($Reis, 'body', ['widgetOptions' => ['data' => Reis::getBodyType()]]);
?>
        </section>
        <section class="col-sm-3">
        <?php 
echo $form->checkboxListGroup($Reis, 'load_type', ['widgetOptions' => ['data' => Reis::getTypeLoadUnload()]]);
?>
        </section>
        <section class="col-sm-3">
        <?php 
echo $form->checkboxListGroup($Reis, 'unload_type', ['widgetOptions' => ['data' => Reis::getTypeLoadUnload()]]);
?>
        </section>
    </div>
    <h3 class="show-green"><?php 
echo Yii::t('ReisModule.default', 'Оплата');
Exemplo n.º 3
0
                <section class="col-md-6 range">
                    <?php 
echo $form->datePickerGroup($Reis, 'when_to', ['widgetOptions' => ['options' => ['format' => 'yyyy-mm-dd', 'autoclose' => 'true'], 'events' => ['show' => 'js:function(e){
                                    var date = new Date();
                                    var year = date.getFullYear();
                                    var month = date.getMonth() + 1;
                                    var day = date.getDate();
                                    $(this).val(year + "-" + month + "-" + day);
                                }']], 'append' => '<i class="glyphicon glyphicon-calendar"></i>']);
?>
                </section>
                <div id="transport_type_block">
                    <div id="transport_type_block_auto" style="display:none">
                        <section class="col-md-4 checkbox-list-bg show-green">
                        <?php 
echo $form->checkboxListGroup($Reis, 'body', ['widgetOptions' => ['data' => Reis::getBodyType(), 'htmlOptions' => ['name' => 'Reis[body_auto]']], 'label' => Reis::getSomeOptsByTransportType(19, "body_name", "Need translate for=[body_name],id=[19]")]);
?>
                        </section>
                        <section class="col-md-4 checkbox-list-bg show-green">
                        <?php 
echo $form->checkboxListGroup($Reis, 'load_type', ['widgetOptions' => ['data' => Reis::getTypeLoadUnload()]]);
?>
                        </section>
                        <section class="col-md-4 checkbox-list-bg show-green">
                        <?php 
// echo $form->checkboxListGroup(
//                            $Reis,
//                            'unload_type',
//                            [
//                                'widgetOptions' => [
//                                    'data' => Reis::getTypeLoadUnload(),