title = 'Заказы'; $this->params[ 'breadcrumbs' ][] = $this->title; $js = <<< JS $('[name="OrderSearch[phone]"]').mask('+38(000)000-00-00', { placeholder: '+38(___)___-__-__' }); JS; $this->registerJs($js, View::POS_READY); ?>
= Html::a('Add order', [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
'GET', 'action' => Url::to([ 'order/index' ]), 'id' => 'search-form', ] ); ?>'btn btn-primary', ] ) ?>
$searchModel, 'attribute' => 'label', 'data' => Label::find() ->joinWith('lang') ->select(['CONCAT(order_label.label,order_label_lang.title) AS name', 'id']) ->indexBy('id') ->asArray() ->column(), 'options' => [ 'placeholder' => 'Select a state ...' ], 'pluginOptions' => [ 'allowClear' => true, 'multiple' => true, ], ] ); ?>$dataProvider, 'filterModel' => $searchModel, 'columns' => [ [ 'attribute' => 'id', 'filter' => $searchForm->field($searchModel, 'id') ->textInput(), ], [ 'attribute' => 'created_at', 'format' => 'date', 'filter' => $searchForm->field($searchModel, 'date_range') ->widget( DateRangePicker::className(), [ 'convertFormat' => false, 'pluginOptions' => [ 'locale' => [ 'format' => 'D-M-Y', 'separator' => ' to ', ], 'opens' => 'left', ], ] ) ->label(false) ->render(), ], 'name', 'phone', 'status', [ 'class' => 'yii\grid\ActionColumn', ], ], ] ); ?>