Commit ffe3313c authored by Shakarim Sapa's avatar Shakarim Sapa

- Tooltip заменен на вывод значения в поле "Дата отправки"

parent fa05fcf9
......@@ -53,7 +53,11 @@ use yii\grid\GridView;
'attribute' => 'sended_date',
'value' => function($model) {
/** @var $model common\modules\triggers\models\CasesSchedule */
return (!is_null($model->sended_date)) ? date('Y.m.d H:i:s', strtotime($model->sended_date)) : 'Не отправлено';
if (!is_null($model->sended_date))
return date('Y.m.d H:i:s', strtotime($model->sended_date));
else {
return 'Планируемая дата отправки: '.(!is_null($model->user->delivery_date)) ? date('d.m.Y', strtotime($model->user->delivery_date)) : 'Не указана';
}
}
],
// [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment