From: marina Date: Thu, 13 Jun 2024 09:53:00 +0000 (+0300) Subject: ERP-5 Доработать фактический план по сотрудникам X-Git-Tag: 1.2^2^2~5 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=8284c084f0c048735101173d30b3064cf3dde974;p=erp24_rep%2Fyii-erp24%2F.git ERP-5 Доработать фактический план по сотрудникам --- diff --git a/erp24/views/timetable-fact/index.php b/erp24/views/timetable-fact/index.php index d76e5ee8..11ddd103 100644 --- a/erp24/views/timetable-fact/index.php +++ b/erp24/views/timetable-fact/index.php @@ -80,7 +80,7 @@ $this->params['breadcrumbs'][] = $this->title; 'format' => 'raw', 'value' => function ($model) { if (!empty($model->checkin_start_id)) { - return !empty($photo = $model->checkinStart->photo) ? Html::img($photo, ['alt' => 'selfie', 'height' => '100px']) : null; + return !empty($photo = $model->checkinStart->photo) ? Html::img("/$photo", ['alt' => 'selfie', 'height' => '100px']) : null; }; }, ], @@ -89,7 +89,7 @@ $this->params['breadcrumbs'][] = $this->title; 'format' => 'raw', 'value' => function ($model) { if (!empty($model->checkin_end_id)) { - return !empty($photo = $model->checkinEnd->photo) ? Html::img($photo, ['alt' => 'selfie', 'height' => '100px']) : null; + return !empty($photo = $model->checkinEnd->photo) ? Html::img("/$photo", ['alt' => 'selfie', 'height' => '100px']) : null; }; }, ], diff --git a/erp24/views/timetable-fact/view.php b/erp24/views/timetable-fact/view.php index 22084db9..9b151402 100644 --- a/erp24/views/timetable-fact/view.php +++ b/erp24/views/timetable-fact/view.php @@ -149,7 +149,7 @@ $this->title = "Фактический табель #$model->id"; 'format' => 'raw', 'value' => function ($model) { if (!empty($model->checkin_start_id)) { - return !empty($photo = $model->checkinStart->photo) ? Html::img($photo, ['alt' => 'selfie', 'height' => '100px']) : null; + return !empty($photo = $model->checkinStart->photo) ? Html::img("/$photo", ['alt' => 'selfie', 'height' => '100px']) : null; }; }, ], @@ -158,7 +158,7 @@ $this->title = "Фактический табель #$model->id"; 'format' => 'raw', 'value' => function ($model) { if (!empty($model->checkin_end_id)) { - return !empty($photo = $model->checkinEnd->photo) ? Html::img($photo, ['alt' => 'selfie', 'height' => '100px']) : null; + return !empty($photo = $model->checkinEnd->photo) ? Html::img("/$photo", ['alt' => 'selfie', 'height' => '100px']) : null; }; }, ]