guild/backend/widgets/views/date_range.php
2019-06-25 18:28:20 +03:00

23 lines
512 B
PHP

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