guild/backend/widgets/views/date_range.php

23 lines
512 B
PHP
Raw Normal View History

2019-06-25 12:37:09 +03:00
<?php
/**
* @var $model \yii\db\ActiveRecord
*/
use yii\jui\DatePicker;
echo DatePicker::widget([
'model' => $model,
'attribute' => 'dt_from',
'language' => 'ru',
'dateFormat' => 'dd-MM-yyyy',
2019-06-25 18:28:20 +03:00
'options' => ['placeholder' => 'Выберите дату (От)'],
2019-06-25 12:37:09 +03:00
]);
echo " - ";
echo DatePicker::widget([
'model' => $model,
'attribute' => 'dt_to',
'language' => 'ru',
'dateFormat' => 'dd-MM-yyyy',
2019-06-25 18:28:20 +03:00
'options' => ['placeholder' => 'Выберите дату (До)'],
2019-06-25 12:37:09 +03:00
]);