add default account to frontend
This commit is contained in:
50
frontend/views/common/_reception_form_card_number.php
Normal file
50
frontend/views/common/_reception_form_card_number.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?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'])?>
|
||||
</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>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user