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

index a0b40dbfa5ac1315882e0c3f90daba1121d2a64f..f21b6f3c17c140a214d0b891538cfc74dd7496a6 100644 (file)
@@ -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;
                 },
             ],
             [
index 89fcd2d28f652d7d932a0bac61b14dab92dd383c..6b1308fe0c9de7ad27e8b458e073553029887fb3 100644 (file)
@@ -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;
                 },
             ],
         ],