add change card, add customer tab
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
use yii\helpers\Html;
|
||||
use yii\grid\GridView;
|
||||
use yii\helpers\Url;
|
||||
use frontend\components\CustomerTabWidget;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $searchModel frontend\models\KeySearch */
|
||||
@@ -11,13 +12,13 @@ use yii\helpers\Url;
|
||||
$this->title = Yii::t('frontend/key', 'Vendéghez rendelt kulcsok');
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
|
||||
<?php echo CustomerTabWidget::widget(['card' => $searchModel->card])?>
|
||||
|
||||
<div class="key-index">
|
||||
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
|
||||
|
||||
<h2>Vendég: <?php echo $searchModel->card->customer->name ;?></h2>
|
||||
<h2>Kártyaszám: <?php echo $searchModel->card->number ;?></h2>
|
||||
<?= GridView::widget([
|
||||
'dataProvider' => $dataProvider,
|
||||
'columns' => [
|
||||
|
||||
Reference in New Issue
Block a user