add reception customer update changes
This commit is contained in:
42
frontend/views/common/_form_card_number.php
Normal file
42
frontend/views/common/_form_card_number.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\widgets\ActiveForm;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $model common\models\Customer */
|
||||
/* @var $form yii\widgets\ActiveForm */
|
||||
?>
|
||||
|
||||
<?php
|
||||
$customername = "";
|
||||
$number = "";
|
||||
if ( isset($card)){
|
||||
$number = $card->number;
|
||||
}
|
||||
if ( isset($customer) ){
|
||||
$customername = $customer->name;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php $form = ActiveForm::begin([
|
||||
'enableAjaxValidation' => false,
|
||||
'method' => 'get',
|
||||
'action' => $route
|
||||
]); ?>
|
||||
<div class="row" >
|
||||
<div class='col-md-12'>
|
||||
<?php echo Html::textInput("number", $number )?>
|
||||
</div>
|
||||
<div class='col-md-12'>
|
||||
<?php echo $customername; ?>
|
||||
</div>
|
||||
<div class='col-md-12'>
|
||||
<?php echo Html::submitButton("search",[ 'class' => 'btn btn-primary']); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php ActiveForm::end(); ?>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user