add change card, add customer tab
This commit is contained in:
@@ -18,7 +18,7 @@ $this->registerJs ( 'new Customer( '. json_encode($options).');' );
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="row">
|
||||
<div class="row" style='margin-top: 12px;' >
|
||||
<div class="col-md-4">
|
||||
<div id="my_camera" class='photo pull-left' style="width: 160px; height: 120px; margin-right: 12px;"></div>
|
||||
<div id="my_result" class='photo pull-left' style="width: 160px; height: 120px;"></div>
|
||||
@@ -26,4 +26,4 @@ $this->registerJs ( 'new Customer( '. json_encode($options).');' );
|
||||
<div class="col-md-4">
|
||||
</div>
|
||||
</div>
|
||||
<a id="snap" class="btn btn-primary">Fénykép</a>
|
||||
<a id="snap" class="btn btn-primary" style="margin-top: 6px;" >Fénykép</a>
|
||||
@@ -19,6 +19,7 @@ use yii\base\Widget;
|
||||
<?php $form = ActiveForm::begin(); ?>
|
||||
|
||||
<?= $form->field($model, 'photo_data')->hiddenInput()->label(false) ?>
|
||||
|
||||
<div class='row'>
|
||||
<div class='col-md-3'>
|
||||
<?php //echo $form->field($model, 'cardNumber')->widget(CardNumberTypeahead::className(),[]) ?>
|
||||
@@ -28,7 +29,7 @@ use yii\base\Widget;
|
||||
</div>
|
||||
</div>
|
||||
<div class='col-md-3'>
|
||||
<?php //echo $form->field($model, 'partnerCardNumber')->textInput() ?>
|
||||
<?php echo $form->field($model, 'replacementCardNumber')->textInput()->label("Csere új kártyára") ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,45 +1,41 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Html;
|
||||
use frontend\components\ReceptionMenuWidget;
|
||||
use frontend\components\ReceptionCardNumberWidget;
|
||||
use frontend\components\ReceptionWidget;
|
||||
use common\assets\WebcamjsAsset;
|
||||
use frontend\assets\CustomerAsset;
|
||||
use common\components\Image;
|
||||
use yii\helpers\Url;
|
||||
use frontend\components\CustomerTabWidget;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $model common\models\Customer */
|
||||
|
||||
|
||||
|
||||
$this->title = Yii::t('common/customer', 'Update customer:' ) . ' ' . $model->name;
|
||||
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/customer', 'Customers'), 'url' => ['index']];
|
||||
$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id_customer]];
|
||||
$this->params['breadcrumbs'][] = Yii::t('common/customer', 'Update');
|
||||
|
||||
$customer = $model;
|
||||
$card = $customer->card;
|
||||
|
||||
$this->title = Yii::t('common/customer', 'Update customer:' ) . ' ' . $model->name;
|
||||
$this->params['breadcrumbs'][] = ['label' => "Recepció", 'url' => ['customer/reception' ,'number' => $card->number]];
|
||||
$this->params['breadcrumbs'][] = Yii::t('common/customer', 'Update');
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<div class="customer-update">
|
||||
|
||||
<?php // echo ReceptionWidget::widget( ['form' => $receptionForm, 'route' => ['customer/reception'] ] )?>
|
||||
|
||||
<?php echo ReceptionWidget::widget( ['form' => $receptionForm, 'route' => ['customer/reception'] ] )?>
|
||||
|
||||
<?php echo CustomerTabWidget::widget(['card' => $card])?>
|
||||
|
||||
<?php echo $this->render('_camera',['model' => $model]); ?>
|
||||
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
|
||||
<div style='margin-top: 12px'>
|
||||
<?php if ( $model->image1 ){
|
||||
echo Html::img( Url::base( ) . Image::thumb( $model->image1->path,160,120 ));
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
<?= $this->render('_form_update', [
|
||||
'model' => $model,
|
||||
]) ?>
|
||||
|
||||
Reference in New Issue
Block a user