diff --git a/common/components/CityZipTypeahead.php b/common/components/CityZipTypeahead.php
index 24397d7..54c5ac8 100644
--- a/common/components/CityZipTypeahead.php
+++ b/common/components/CityZipTypeahead.php
@@ -40,7 +40,7 @@ class CityZipTypeahead extends Typeahead{
'limit' => 10,
'display' => $this->display,
'templates' => [
- 'notFound' => '
Unable to find repositories for selected query.
',
+ 'notFound' => '
+
+
+
+
+
+
+ field($model, 'cardNumber')->widget(CardNumberTypeahead::className(),[]) ?>
+
+
+ customerCardNumber ?>
+
+
+
+ = $form->field($model, 'partnerCardNumber')->textInput() ?>
+
+
+
+
+
+
+ = $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
+
+
+
+
+ = $form->field($model, 'email')->textInput(['maxlength' => true]) ?>
+
+
+
+
+
+
+
+ = $form->field($model, 'password_plain')->passwordInput(['maxlength' => true]) ?>
+
+
+ = $form->field($model, 'password_repeat')->passwordInput(['maxlength' => true]) ?>
+
+
+
+
+
+ = $form->field($model, 'sex')->dropDownList(Customer::sexes()) ?>
+
+
+ field($model, 'birthdate',[ ] )->widget(DatePicker::classname(), [
+ 'value' => Yii::$app->formatter->asDate($model->birthdate),
+ 'pluginOptions' => [
+ 'autoclose'=>true,
+ 'format' => 'yyyy.mm.dd'
+ ]
+ ]) */?>
+ 'CustomerUpdate[birthdate]',
+ 'value' => Yii::$app->formatter->asDate($model->birthdate),
+ 'pluginOptions' => [
+ 'autoclose'=>true,
+ 'format' => 'yyyy.mm.dd'
+ ]
+ ]
+ )
+ ?>
+
+
+
+
+
+ = $form->field($model, 'phone')->textInput(['maxlength' => true]) ?>
+
+
+ = $form->field($model, 'date_stundent_card_expire')->widget(DatePicker::classname(), [
+ 'pluginOptions' => [
+ 'autoclose'=>true,
+ 'format' => 'yyyy.mm.dd'
+ ]
+ ]) ?>
+
+
+
+
+
+ = $form->field($model, 'description')->textarea(['maxlength' => true]) ?>
+
+
+
+
+
+ = $form->field($model, 'tax_number')->textInput(['maxlength' => true]) ?>
+
+
+
+
+ = $form->field($model, 'country')->textInput(['maxlength' => true]) ?>
+
+
+
+
+ = $form->field($model, 'zip')->widget(CityZipTypeahead::className(),[
+ 'pluginEvents' =>[
+ "typeahead:select" => "function(a,b) {
+ $('#customercreate-city').typeahead( 'val', b.name );
+ }",]
+ ])?>
+
+
+ field($model, 'city')->widget(CityNameTypeahead::className(),[
+ 'pluginEvents' =>[
+ "typeahead:select" => "function(a,b) {
+ $('#customercreate-zip').typeahead( 'val', b.zip );
+ }",]
+
+ ])?>
+
+
+
+
+
+
+ = $form->field($model, 'address')->textInput(['maxlength' => true]) ?>
+
+
+ = Html::submitButton($model->isNewRecord ? Yii::t('common/customer', 'Create') : Yii::t('common/customer', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
+
+
+
+
+
diff --git a/frontend/views/customer/reception.php b/frontend/views/customer/reception.php
index 972305a..fefac02 100644
--- a/frontend/views/customer/reception.php
+++ b/frontend/views/customer/reception.php
@@ -1,5 +1,8 @@
-
@@ -8,4 +11,14 @@
-render('_form_reception', [ 'model' => $model ]); ?>
\ No newline at end of file
+render('_form_reception', [ 'model' => $model ]); ?>
+
= Html::encode($this->title) ?>
- = $this->render('_form', [
+
+
+ $customer, 'card' => $card] ) ?>
+
+
+ $customer, 'card' =>$card, 'route' => ['customer/reception'] ] )?>
+
+
+
+
+
+ = $this->render('_form_update', [
'model' => $model,
]) ?>
diff --git a/frontend/views/product/_form.php b/frontend/views/product/_form.php
new file mode 100644
index 0000000..c31f0d4
--- /dev/null
+++ b/frontend/views/product/_form.php
@@ -0,0 +1,41 @@
+
+
+
diff --git a/frontend/views/product/_search.php b/frontend/views/product/_search.php
new file mode 100644
index 0000000..ccf43ab
--- /dev/null
+++ b/frontend/views/product/_search.php
@@ -0,0 +1,53 @@
+
+
+
+
+ ['index'],
+ 'method' => 'get',
+ ]); ?>
+
+ = $form->field($model, 'id_product') ?>
+
+ = $form->field($model, 'id_product_category') ?>
+
+ = $form->field($model, 'id_account') ?>
+
+ = $form->field($model, 'product_number') ?>
+
+ = $form->field($model, 'barcode') ?>
+
+ field($model, 'purchase_price') ?>
+
+ field($model, 'sale_price') ?>
+
+ field($model, 'profit_margins') ?>
+
+ field($model, 'status') ?>
+
+ field($model, 'description') ?>
+
+ field($model, 'created_at') ?>
+
+ field($model, 'updated_at') ?>
+
+ field($model, 'stock') ?>
+
+ field($model, 'name') ?>
+
+
+ = Html::submitButton(Yii::t('frontend/product', 'Search'), ['class' => 'btn btn-primary']) ?>
+ = Html::resetButton(Yii::t('frontend/product', 'Reset'), ['class' => 'btn btn-default']) ?>
+
+
+
+
+
diff --git a/frontend/views/product/create.php b/frontend/views/product/create.php
new file mode 100644
index 0000000..d24804f
--- /dev/null
+++ b/frontend/views/product/create.php
@@ -0,0 +1,21 @@
+title = Yii::t('frontend/product', 'Create Product');
+$this->params['breadcrumbs'][] = ['label' => Yii::t('frontend/product', 'Products'), 'url' => ['index']];
+$this->params['breadcrumbs'][] = $this->title;
+?>
+
+
+
= Html::encode($this->title) ?>
+
+ = $this->render('_form', [
+ 'model' => $model,
+ ]) ?>
+
+
diff --git a/frontend/views/product/index.php b/frontend/views/product/index.php
new file mode 100644
index 0000000..7b36ca2
--- /dev/null
+++ b/frontend/views/product/index.php
@@ -0,0 +1,47 @@
+title = Yii::t('frontend/product', 'Products');
+$this->params['breadcrumbs'][] = $this->title;
+?>
+
+
+
= Html::encode($this->title) ?>
+ render('_search', ['model' => $searchModel]); ?>
+
+
+ = Html::a(Yii::t('frontend/product', 'Create Product'), ['create'], ['class' => 'btn btn-success']) ?>
+
+
+ = GridView::widget([
+ 'dataProvider' => $dataProvider,
+ 'filterModel' => $searchModel,
+ 'columns' => [
+ ['class' => 'yii\grid\SerialColumn'],
+
+ 'id_product',
+ 'id_product_category',
+ 'id_account',
+ 'product_number',
+ 'barcode',
+ // 'purchase_price',
+ // 'sale_price',
+ // 'profit_margins',
+ // 'status',
+ // 'description',
+ // 'created_at',
+ // 'updated_at',
+ // 'stock',
+ // 'name',
+
+ ['class' => 'yii\grid\ActionColumn'],
+ ],
+ ]); ?>
+
+
diff --git a/frontend/views/product/update.php b/frontend/views/product/update.php
new file mode 100644
index 0000000..e8180f7
--- /dev/null
+++ b/frontend/views/product/update.php
@@ -0,0 +1,23 @@
+title = Yii::t('frontend/product', 'Update {modelClass}: ', [
+ 'modelClass' => 'Product',
+]) . ' ' . $model->name;
+$this->params['breadcrumbs'][] = ['label' => Yii::t('frontend/product', 'Products'), 'url' => ['index']];
+$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id_product]];
+$this->params['breadcrumbs'][] = Yii::t('frontend/product', 'Update');
+?>
+
+
+
= Html::encode($this->title) ?>
+
+ = $this->render('_form', [
+ 'model' => $model,
+ ]) ?>
+
+
diff --git a/frontend/views/product/view.php b/frontend/views/product/view.php
new file mode 100644
index 0000000..67e6889
--- /dev/null
+++ b/frontend/views/product/view.php
@@ -0,0 +1,48 @@
+title = $model->name;
+$this->params['breadcrumbs'][] = ['label' => Yii::t('frontend/product', 'Products'), 'url' => ['index']];
+$this->params['breadcrumbs'][] = $this->title;
+?>
+
+
+
= Html::encode($this->title) ?>
+
+
+ = Html::a(Yii::t('frontend/product', 'Update'), ['update', 'id' => $model->id_product], ['class' => 'btn btn-primary']) ?>
+ = Html::a(Yii::t('frontend/product', 'Delete'), ['delete', 'id' => $model->id_product], [
+ 'class' => 'btn btn-danger',
+ 'data' => [
+ 'confirm' => Yii::t('frontend/product', 'Are you sure you want to delete this item?'),
+ 'method' => 'post',
+ ],
+ ]) ?>
+
+
+ = DetailView::widget([
+ 'model' => $model,
+ 'attributes' => [
+ 'id_product',
+ 'id_product_category',
+ 'id_account',
+ 'product_number',
+ 'barcode',
+ 'purchase_price',
+ 'sale_price',
+ 'profit_margins',
+ 'status',
+ 'description',
+ 'created_at',
+ 'updated_at',
+ 'stock',
+ 'name',
+ ],
+ ]) ?>
+
+