From bb70546af4f6d1b0004b1047a15669be938ab169 Mon Sep 17 00:00:00 2001 From: Schneider Roland Date: Wed, 30 Dec 2015 12:12:52 +0100 Subject: [PATCH] show customer photo on reception --- frontend/views/common/_reception_customer.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/views/common/_reception_customer.php b/frontend/views/common/_reception_customer.php index b79b290..2c2b96d 100644 --- a/frontend/views/common/_reception_customer.php +++ b/frontend/views/common/_reception_customer.php @@ -4,6 +4,8 @@ use frontend\model\ReceptionForm; use yii\helpers\Html; use yii\widgets\DetailView; use yii\base\Widget; +use common\components\Image; +use yii\helpers\Url; /* @var $this yii\web\View */ /* @var $model frontend\model\ReceptionForm */ @@ -34,6 +36,12 @@ if ( $model->isCardWithCustomer() ){ 'label' => 'Telefon', 'value' => $model->customer->phone ], + [ + 'label' => 'Fénykép', + 'value' => $model->customer->image1 ? Html::img( Url::base( ) . Image::thumb( $model->customer->image1->path,160,120 )) : 'Nincs kép', + 'format' => 'raw' + + ], ] ])