]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-5 Доработать фактический план по сотрудникам
authormarina <m.zozirova@gmail.com>
Thu, 13 Jun 2024 09:53:00 +0000 (12:53 +0300)
committermarina <m.zozirova@gmail.com>
Thu, 13 Jun 2024 09:53:00 +0000 (12:53 +0300)
erp24/views/timetable-fact/index.php
erp24/views/timetable-fact/view.php

index d76e5ee84f81a99a37b761fd895c540230fea5ca..11ddd103d40247bec6c35ab8555f9bc5fc150b1f 100644 (file)
@@ -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;
                     };
                 },
             ],
index 22084db99c8c5fd74ad0db5702d6f4de30de7b89..9b15140229bb5cde047935e4f3abe9d8ef3faef3 100644 (file)
@@ -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;
                     };
                 },
             ]