add city, customer and card model + crud

This commit is contained in:
2015-09-27 21:35:31 +02:00
parent 8ee256314b
commit 7df9800fec
42 changed files with 6765 additions and 2 deletions

View File

@@ -0,0 +1,38 @@
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\models\CustomerSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="customer-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<div class='row'>
<div class='col-md-4'>
<?= $form->field($model, 'cardNumber') ?>
</div>
<div class='col-md-4'>
<?php echo $form->field($model, 'name') ?>
</div>
<div class='col-md-4'>
<?php echo $form->field($model, 'email') ?>
</div>
</div>
<div class="form-group">
<?= Html::submitButton(Yii::t('common/customer', 'Search'), ['class' => 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>