<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\Customer */
/* @var $form yii\widgets\ActiveForm */
?>

<style>

.form-card-number input, .form-card-number button{

	margin-top: 6px;
	margin-bottom: 6px;

}

</style>

<?php 
$number = "";
if ( isset($model->card)){
	$number = $model->card->number;
}

?>
    <div class="form-card-number">
	    <?php $form = ActiveForm::begin([
			'enableAjaxValidation' => false,
	    	'method' => 'get',
	    	'action' => $route
	    ]); ?>
			<div  class="row" >
				<div class='col-md-12'>
						<?php echo Html::textInput("number", $number ,['class' => 'form-control', 'placeholder' => 'Kártya/kulcs szám'])?>
				</div>
			</div>
			<div  class="row" >
				<div class='col-md-12'>
					<?php echo Html::submitButton(  Yii::t('frontend/card', "Search"),[ 'class' => 'btn btn-primary btn-block']); ?>
				</div>
			</div>
	    <?php ActiveForm::end(); ?>
</div>



