fitness-web/frontend/views/common/_form_card_number.php

43 lines
817 B
PHP

<?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( Yii::t('frontend/card', "Search"),[ 'class' => 'btn btn-primary']); ?>
</div>
</div>
<?php ActiveForm::end(); ?>