From: marina Date: Thu, 13 Jun 2024 06:55:03 +0000 (+0300) Subject: ERP-5 Доработать фактический план по сотрудникам X-Git-Tag: 1.2^2~4^2~6 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=ac5cfe2c4b83d62f05e6aada4c92f9c46f6f4ce6;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 a0b40dbf..f21b6f3c 100644 --- a/erp24/views/timetable-fact/index.php +++ b/erp24/views/timetable-fact/index.php @@ -76,14 +76,14 @@ $this->params['breadcrumbs'][] = $this->title; 'label' => 'Отметка о начале', 'format' => 'raw', 'value' => function ($model) { - return !empty($model->checkinStart->photo) ? Html::img($model->checkinStart->photo, ['alt="selfie" height="100px"']) : ''; + return !empty($photo = $model->checkinStart->photo) ? Html::img($photo, ['alt' => 'selfie', 'height' => '100px']) : null; }, ], [ 'label' => 'Отметка о конце', 'format' => 'raw', 'value' => function ($model) { - return !empty($model->checkinEnd->photo) ? Html::img($model->checkinEnd->photo, ['alt="selfie" height="100px"']) : ''; + 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 89fcd2d2..6b1308fe 100644 --- a/erp24/views/timetable-fact/view.php +++ b/erp24/views/timetable-fact/view.php @@ -142,14 +142,14 @@ $this->title = "Фактический табель #$model->id"; 'label' => 'Отметка о начале', 'format' => 'raw', 'value' => function ($model) { - return !empty($model->checkinStart->photo) ? Html::img($model->checkinStart->photo, ['alt="selfie" height="100px"']) : ''; + return !empty($photo = $model->checkinStart->photo) ? Html::img($photo, ['alt' => 'selfie', 'height' => '100px']) : null; }, ], [ 'label' => 'Отметка о конце', 'format' => 'raw', 'value' => function ($model) { - return !empty($model->checkinEnd->photo) ? Html::img($model->checkinEnd->photo, ['alt="selfie" height="100px"']) : ''; + return !empty($photo = $model->checkinEnd->photo) ? Html::img($photo, ['alt' => 'selfie', 'height' => '100px']) : null; }, ], ],