Merge branch 'release/v.0.1.22'

This commit is contained in:
Roland Schneider 2020-01-07 20:51:13 +01:00
commit 42bacacd62
6 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,5 @@
-0.1.22
- fix fingerprint frontend gui
-0.1.21 -0.1.21
- add fingerprint frontend gui - add fingerprint frontend gui
-0.1.20 -0.1.20

View File

@ -5,7 +5,7 @@ return [
'supportEmail' => 'rocho02@gmail.com', 'supportEmail' => 'rocho02@gmail.com',
'infoEmail' => 'info@rocho-net.hu', 'infoEmail' => 'info@rocho-net.hu',
'user.passwordResetTokenExpire' => 3600, 'user.passwordResetTokenExpire' => 3600,
'version' => 'v0.1.21', 'version' => 'v0.1.22',
'company' => 'movar',//gyor 'company' => 'movar',//gyor
'company_name' => "Freimann Kft.", 'company_name' => "Freimann Kft.",
'product_visiblity' => 'account',// on reception which products to display. account or global 'product_visiblity' => 'account',// on reception which products to display. account or global

View File

@ -88,6 +88,7 @@ class FingerprintController extends Controller
return $this->redirect(['index', 'FingerprintSearch[id_card]' => $card->id_card]); return $this->redirect(['index', 'FingerprintSearch[id_card]' => $card->id_card]);
} }
return $this->render('create', [ return $this->render('create', [
'card' => $card,
'model' => $model, 'model' => $model,
]); ]);

View File

@ -50,7 +50,7 @@ class FingerprintSearch extends Fingerprint
} }
$this->card = $card; $this->card = $card;
$customer = Customer::findOne($card->customer); $customer = Customer::findOne($card->customer->id_customer);
if ( !isset($customer)){ if ( !isset($customer)){
throw new NotFoundHttpException('Customer not found'); throw new NotFoundHttpException('Customer not found');

View File

@ -1,5 +1,6 @@
<?php <?php
use frontend\components\CustomerTabWidget;
use yii\helpers\Html; use yii\helpers\Html;
use yii\widgets\ActiveForm; use yii\widgets\ActiveForm;
@ -12,6 +13,8 @@ $this->title = 'Ujjlenyomat hozzáadása';
$this->params['breadcrumbs'][] = ['label' => 'Ujjlenyomatok', 'url' => ['index', 'id_customer' => $model->id_customer]]; $this->params['breadcrumbs'][] = ['label' => 'Ujjlenyomatok', 'url' => ['index', 'id_customer' => $model->id_customer]];
$this->params['breadcrumbs'][] = $this->title; $this->params['breadcrumbs'][] = $this->title;
?> ?>
<?php echo CustomerTabWidget::widget(['card' => $card])?>
<div class="fingerprint-create"> <div class="fingerprint-create">
<h1><?= Html::encode($this->title) ?></h1> <h1><?= Html::encode($this->title) ?></h1>

View File

@ -1,10 +1,11 @@
<?php <?php
use frontend\components\CustomerTabWidget;
use yii\grid\GridView; use yii\grid\GridView;
use yii\helpers\Html; use yii\helpers\Html;
?> ?>
<h1>Ujjlenyomatok</h1> <?php echo CustomerTabWidget::widget(['card' => $card])?>
<p> <p>